Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Libs
MRML
Core
vtkMRMLTextStorageNode.h
Go to the documentation of this file.
1
/*==============================================================================
2
3
Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4
Queen's University, Kingston, ON, Canada. All Rights Reserved.
5
6
See COPYRIGHT.txt
7
or http://www.slicer.org/copyright/copyright.txt for details.
8
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License.
14
15
This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16
and was supported through CANARIE's Research Software Program, and Cancer
17
Care Ontario.
18
19
==============================================================================*/
20
21
#ifndef __vtkMRMLTextStorageNode_h
22
#define __vtkMRMLTextStorageNode_h
23
24
// MRML includes
25
#include <
vtkMRMLStorageNode.h
>
26
28
class
VTK_MRML_EXPORT
vtkMRMLTextStorageNode
:
public
vtkMRMLStorageNode
29
{
30
public
:
31
32
static
vtkMRMLTextStorageNode
* New();
33
vtkTypeMacro(
vtkMRMLTextStorageNode
,
vtkMRMLStorageNode
);
34
35
vtkMRMLNode
*
CreateNodeInstance
()
override
;
36
38
const
char
*
GetNodeTagName
()
override
{
return
"TextStorage"
; };
39
41
bool
CanReadInReferenceNode
(
vtkMRMLNode
* refNode)
override
;
42
44
bool
CanWriteFromReferenceNode
(
vtkMRMLNode
* refNode)
override
;
45
int
WriteDataInternal
(
vtkMRMLNode
* refNode)
override
;
46
48
const
char
*
GetDefaultWriteFileExtension
()
override
;
49
50
protected
:
51
vtkMRMLTextStorageNode
();
52
~
vtkMRMLTextStorageNode
()
override
;
53
vtkMRMLTextStorageNode
(
const
vtkMRMLTextStorageNode
&);
54
void
operator=
(
const
vtkMRMLTextStorageNode
&);
55
60
int
ReadDataInternal
(
vtkMRMLNode
* refNode)
override
;
61
63
void
InitializeSupportedReadFileTypes
()
override
;
64
66
void
InitializeSupportedWriteFileTypes
()
override
;
67
};
68
69
#endif
vtkMRMLStorageNode::CreateNodeInstance
vtkMRMLNode * CreateNodeInstance() override=0
Create instance of the default node. Like New only virtual.
vtkMRMLStorageNode::ReadDataInternal
virtual int ReadDataInternal(vtkMRMLNode *refNode)
vtkMRMLStorageNode::InitializeSupportedReadFileTypes
virtual void InitializeSupportedReadFileTypes()
vtkMRMLStorageNode::GetDefaultWriteFileExtension
virtual const char * GetDefaultWriteFileExtension()
Return default file extension for writing.
vtkMRMLStorageNode::operator=
void operator=(const vtkMRMLStorageNode &)
vtkMRMLStorageNode.h
vtkMRMLStorageNode::CanWriteFromReferenceNode
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
vtkMRMLTextStorageNode::GetNodeTagName
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
Definition:
vtkMRMLTextStorageNode.h:38
vtkMRMLStorageNode
A superclass for other storage nodes.
Definition:
vtkMRMLStorageNode.h:35
vtkMRMLStorageNode::InitializeSupportedWriteFileTypes
virtual void InitializeSupportedWriteFileTypes()
vtkMRMLTextStorageNode
Definition:
vtkMRMLTextStorageNode.h:28
vtkMRMLStorageNode::WriteDataInternal
virtual int WriteDataInternal(vtkMRMLNode *refNode)
vtkMRMLNode
Abstract Superclass for all specific types of MRML nodes.
Definition:
vtkMRMLNode.h:167
vtkMRMLStorageNode::CanReadInReferenceNode
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0
Generated on Mon May 2 2022 16:14:13 for Slicer by
1.8.14