Slicer  4.10
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) VTK_OVERRIDE;
12 
13  //--------------------------------------------------------------------------
15  //--------------------------------------------------------------------------
16 
17  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
18 
21  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
22 
25  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
26 
29  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
30 
33  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "PETProceduralColor";}
34 
37  virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE;
38 
42  virtual void SetType(int type) VTK_OVERRIDE;
43 
44  void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData ) VTK_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() VTK_OVERRIDE { return this->PETheat; }
71  int GetLastType() VTK_OVERRIDE { return this->PETMIP; }
72 
73  const char *GetTypeAsString() VTK_OVERRIDE;
74  void SetTypeToHeat();
75  void SetTypeToRainbow();
76  void SetTypeToMIP();
77 
78 protected:
82  void operator=(const vtkMRMLPETProceduralColorNode&);
83 };
84 
85 #endif
virtual const char * GetTypeAsString() VTK_OVERRIDE
return a text string describing the colour look up table type
virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data
static vtkMRMLProceduralColorNode * New()
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
int GetFirstType() VTK_OVERRIDE
Return the lowest and the highest integers, for use in looping.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
MRML node to represent procedurally defined color information.
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
alternative method to propagate events generated in Storage nodes
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138
virtual void SetType(int type)
Set Type to type, then build colours and set names