Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
28class VTK_MRML_EXPORT vtkMRMLTextStorageNode : public vtkMRMLStorageNode
29{
30public:
31
34
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
50protected:
55
60 int ReadDataInternal(vtkMRMLNode* refNode) override;
61
64
67};
68
69#endif
Abstract Superclass for all specific types of MRML nodes.
A superclass for other storage nodes.
static vtkMRMLTextStorageNode * New()
~vtkMRMLTextStorageNode() override
bool CanWriteFromReferenceNode(vtkMRMLNode *refNode) override
Return true if the node can be written by using the writer.
vtkMRMLTextStorageNode(const vtkMRMLTextStorageNode &)
void InitializeSupportedWriteFileTypes() override
Initialize all the supported write file types.
int ReadDataInternal(vtkMRMLNode *refNode) override
int WriteDataInternal(vtkMRMLNode *refNode) override
void InitializeSupportedReadFileTypes() override
Initialize all the supported write file types.
bool CanReadInReferenceNode(vtkMRMLNode *refNode) override
Return true if the node can be read in.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
void operator=(const vtkMRMLTextStorageNode &)
const char * GetDefaultWriteFileExtension() override
Return a default file extension for writing.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.