Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLdGEMRICProceduralColorNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2006 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: vtkMRMLdGEMRICProceduralColorNode.h,v $
10  Date: $Date: 2006/03/19 17:12:28 $
11  Version: $Revision: 1.0 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLdGEMRICProceduralColorNode_h
16 #define __vtkMRMLdGEMRICProceduralColorNode_h
17 
19 
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
31 
32  //--------------------------------------------------------------------------
34  //--------------------------------------------------------------------------
35 
36  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
37 
40  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
41 
44  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
45 
48  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
49 
52  virtual const char* GetNodeTagName() VTK_OVERRIDE {return "dGEMRICProceduralColor";}
53 
56  virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE;
57 
61  virtual void SetType(int type) VTK_OVERRIDE;
62 
63  void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData ) VTK_OVERRIDE;
64 
66  //enum
67  //{
69  //};
70 
72  enum
73  {
74  DisplayModifiedEvent = 20000
75  };
76 
80  {
82  }
83 
87  enum
88  {
89  dGEMRIC15T = 0,
90  dGEMRIC3T = 1
91  };
92 
94  int GetFirstType() VTK_OVERRIDE { return this->dGEMRIC15T; }
95  int GetLastType() VTK_OVERRIDE { return this->dGEMRIC3T; }
96 
97  const char *GetTypeAsString() VTK_OVERRIDE;
98  void SetTypeTo15T();
99  void SetTypeTo3T();
100 
101 protected:
105  void operator=(const vtkMRMLdGEMRICProceduralColorNode&);
106 };
107 
108 #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 vtkMRMLStorageNode * CreateDefaultStorageNode()
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
int GetFirstType() VTK_OVERRIDE
Return the lowest and the highest integers, for use in looping.
A superclass for other storage nodes.
MRML node to represent procedurally defined color information.
virtual vtkMRMLStorageNode * CreateDefaultStorageNode() VTK_OVERRIDE
Create default storage node or NULL if does not have one
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