Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLVolumeSequenceStorageNode.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Children's Hospital of Philadelphia, USA. All Rights Reserved.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Csaba Pinter, Ebatinca, funded
17 by the grant GRT-00000485 of Children's Hospital of Philadelphia, USA.
18
19==============================================================================*/
20
23
24#ifndef __vtkMRMLVolumeSequenceStorageNode_h
25#define __vtkMRMLVolumeSequenceStorageNode_h
26
27#include "vtkMRML.h"
28
29#include "vtkMRMLStorageNode.h"
30#include <string>
31
51
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
62 void ReadXMLAttributes(const char** atts) override;
63
65 void WriteXML(ostream& of, int indent) override;
66
68 void Copy(vtkMRMLNode* node) override;
69
71
81
84 const char* GetNodeTagName() override { return "VolumeSequenceStorage"; };
85
87 std::string GetTypeDisplayName() override { return vtkMRMLTr("vtkMRMLVolumeSequenceStorageNode", "Volume Sequence Storage"); };
88
90 bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
91
93 bool CanWriteFromReferenceNode(vtkMRMLNode* refNode) override;
94
99 int WriteDataInternal(vtkMRMLNode* refNode) override;
100
103 const char* GetDefaultWriteFileExtension() override;
104
105protected:
110
118 int ReadDataInternal(vtkMRMLNode* refNode) override;
119
122
125
127};
128
129#endif
std::string GetTypeDisplayName() override
Get node type to be displayed to the user.
static vtkMRMLVolumeSequenceStorageNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
void InitializeSupportedReadFileTypes() override
Initialize all the supported write file types.
void operator=(const vtkMRMLVolumeSequenceStorageNode &)
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
Return true if this class can read the node.
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
int ReadDataInternal(vtkMRMLNode *refNode) override
const char * GetDefaultWriteFileExtension() override
Return a default file extension for writing.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
int WriteDataInternal(vtkMRMLNode *refNode) override
vtkMRMLVolumeSequenceStorageNode(const vtkMRMLVolumeSequenceStorageNode &)
bool CanWriteFromReferenceNode(vtkMRMLNode *refNode) override
Return true if this class can write the node.
#define vtkMRMLTr(context, sourceText)
Translation function used in MRML classes.