Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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();
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:
52  ~vtkMRMLTextStorageNode() override;
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
vtkMRMLNode * CreateNodeInstance() override=0
Create instance of the default node. Like New only virtual.
virtual int ReadDataInternal(vtkMRMLNode *refNode)
virtual void InitializeSupportedReadFileTypes()
virtual const char * GetDefaultWriteFileExtension()
Return default file extension for writing.
void operator=(const vtkMRMLStorageNode &)
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
A superclass for other storage nodes.
virtual void InitializeSupportedWriteFileTypes()
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0