Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLPETProceduralColorNode.h
Go to the documentation of this file.
1 #ifndef __vtkMRMLPETProceduralColorNode_h
2 #define __vtkMRMLPETProceduralColorNode_h
3 
5 
7 {
8 public:
11  void PrintSelf(ostream& os, vtkIndent indent) override;
12 
13  //--------------------------------------------------------------------------
15  //--------------------------------------------------------------------------
16 
17  vtkMRMLNode* CreateNodeInstance() override;
18 
21  void ReadXMLAttributes( const char** atts) override;
22 
25  void WriteXML(ostream& of, int indent) override;
26 
29  void Copy(vtkMRMLNode *node) override;
30 
33  const char* GetNodeTagName() override {return "PETProceduralColor";}
34 
37  void UpdateScene(vtkMRMLScene *scene) override;
38 
42  void SetType(int type) override;
43 
44  void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData ) override;
45 
47  //enum
48  //{
50  //};
51 
53  enum
54  {
55  DisplayModifiedEvent = 20000
56  };
57 
67  enum
68  {
69  PETheat = 0,
70  PETrainbow = 1,
71  PETrainbow2 = 2,
72  PETDICOM = 3,
73  PEThotMetalBlue = 4,
74  PETMIP = 5
75  };
76 
78  int GetFirstType() override { return this->PETheat; }
79  int GetLastType() override { return this->PETMIP; }
80 
81  const char *GetTypeAsString() override;
82  void SetTypeToHeat();
83  void SetTypeToRainbow();
84  void SetTypeToRainbow2();
85  void SetTypeToMIP();
86  void SetTypeToDICOM();
87  void SetTypeToHotMetalBlue();
88 
89 protected:
94 };
95 
96 #endif
void ReadXMLAttributes(const char **atts) override
Set node attributes
int GetFirstType() override
Return the lowest and the highest integers, for use in looping.
void UpdateScene(vtkMRMLScene *scene) override
static vtkMRMLProceduralColorNode * New()
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void PrintSelf(ostream &os, vtkIndent indent) override
MRML node to represent procedurally defined color information.
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
Propagate events generated in mrml.
const char * GetTypeAsString() override
return a text string describing the color look up table type
void operator=(const vtkMRMLProceduralColorNode &)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
virtual void SetType(int type)
Set Type to type, then build colors and set names