Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkMRMLColorTableStorageNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLColorTableStorageNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.8 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLColorTableStorageNode_h
16 #define __vtkMRMLColorTableStorageNode_h
17 
18 #include "vtkMRMLStorageNode.h"
19 
24 class VTK_MRML_EXPORT vtkMRMLColorTableStorageNode : public vtkMRMLStorageNode
25 {
26  public:
27  static vtkMRMLColorTableStorageNode *New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
31  vtkMRMLNode* CreateNodeInstance() override;
32 
34  const char* GetNodeTagName() override {return "ColorTableStorage";};
35 
37  bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
38 
39 protected:
41  ~vtkMRMLColorTableStorageNode() override;
44 
46  void InitializeSupportedReadFileTypes() override;
47 
49  void InitializeSupportedWriteFileTypes() override;
50 
52  int ReadDataInternal(vtkMRMLNode *refNode) override;
53 
55  int WriteDataInternal(vtkMRMLNode *refNode) override;
56 
59 
60 };
61 
62 #endif
63 
64 
65 
vtkMRMLNode * CreateNodeInstance() override=0
Create instance of the default node. Like New only virtual.
const char * GetNodeTagName() override
Get node XML tag name (like Storage, Model)
virtual int ReadDataInternal(vtkMRMLNode *refNode)
virtual void InitializeSupportedReadFileTypes()
int MaximumColorID
maximum valid number of colors to read in
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)
MRML node for representing a volume storage.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0