Slicer  4.11
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 
62  enum
63  {
64  PETheat = 0,
65  PETrainbow = 1,
66  PETMIP = 2
67  };
68 
70  int GetFirstType() override { return this->PETheat; }
71  int GetLastType() override { return this->PETMIP; }
72 
73  const char *GetTypeAsString() override;
74  void SetTypeToHeat();
75  void SetTypeToRainbow();
76  void SetTypeToMIP();
77 
78 protected:
83 };
84 
85 #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:61
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 colour 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 colours and set names