Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLShaderPropertyStorageNode.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
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 Simon Drouin, Brigham and Women's
17  Hospital, Boston, MA.
18 
19 ==============================================================================*/
23 
24 #ifndef __vtkMRMLShaderPropertyStorageNode_h
25 #define __vtkMRMLShaderPropertyStorageNode_h
26 
27 // VolumeRendering includes
28 #include "vtkSlicerVolumeRenderingModuleMRMLExport.h"
29 
30 // MRML includes
31 #include "vtkMRMLStorageNode.h"
32 
33 class vtkImageData;
34 
35 class VTK_SLICER_VOLUMERENDERING_MODULE_MRML_EXPORT vtkMRMLShaderPropertyStorageNode
36  : public vtkMRMLStorageNode
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
43  vtkMRMLNode* CreateNodeInstance() override;
44 
47  const char* GetNodeTagName() override {return "ShaderPropertyStorage";}
48 
50  bool CanReadInReferenceNode(vtkMRMLNode *refNode) override;
51 
52 protected:
57 
59  void InitializeSupportedReadFileTypes() override;
60 
62  void InitializeSupportedWriteFileTypes() override;
63 
65  int ReadDataInternal(vtkMRMLNode *refNode) override;
66 
68  int WriteDataInternal(vtkMRMLNode *refNode) override;
69 
70 };
71 
72 #endif
vtkMRMLNode * CreateNodeInstance() override=0
Create instance of the default node. Like New only virtual.
virtual int ReadDataInternal(vtkMRMLNode *refNode)
virtual void InitializeSupportedReadFileTypes()
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Transform)
void operator=(const vtkMRMLStorageNode &)
void PrintSelf(ostream &os, vtkIndent indent) override
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