Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLVolumeSequenceStorageNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8 =========================================================================auto=*/
12 
13 #ifndef __vtkMRMLVolumeSequenceStorageNode_h
14 #define __vtkMRMLVolumeSequenceStorageNode_h
15 
16 #include "vtkMRML.h"
17 
18 #include "vtkMRMLNRRDStorageNode.h"
19 #include <string>
20 
23 {
24  public:
25 
28 
29  vtkMRMLNode* CreateNodeInstance() override;
30 
33  const char* GetNodeTagName() override {return "VolumeSequenceStorage";};
34 
36  bool CanReadInReferenceNode(vtkMRMLNode *refNode) override;
37 
39  bool CanWriteFromReferenceNode(vtkMRMLNode* refNode) override;
40 
43 #ifdef NRRD_CHUNK_IO_AVAILABLE
44 #else
49 #endif
52  int WriteDataInternal(vtkMRMLNode *refNode) override;
53 
56  const char* GetDefaultWriteFileExtension() override;
57 
58 protected:
63 
71 #ifdef NRRD_CHUNK_IO_AVAILABLE
72 #endif
75 
76  int ReadDataInternal(vtkMRMLNode* refNode) override;
77 
79  void InitializeSupportedReadFileTypes() override;
80 
82  void InitializeSupportedWriteFileTypes() override;
83 };
84 
85 #endif
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
virtual const char * GetDefaultWriteFileExtension()
Return default file extension for writing.
MRML node for representing a volume storage.
static vtkMRMLNRRDStorageNode * New()
void operator=(const vtkMRMLNRRDStorageNode &)
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
Return true if the node can be read in.
int ReadDataInternal(vtkMRMLNode *refNode) override
Read data and set it in the referenced node.
void InitializeSupportedReadFileTypes() override
Initialize all the supported write file types.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
int WriteDataInternal(vtkMRMLNode *refNode) override
Write data from a referenced node.