15 #ifndef __vtkMRMLColorTableNode_h 16 #define __vtkMRMLColorTableNode_h 31 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
45 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
53 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "ColorTable";}
61 virtual
void SetAndObserveLookupTable(vtkLookupTable *newLookupTable);
66 virtual
void SetLookupTable(vtkLookupTable* newLookupTable)
68 SetAndObserveLookupTable(newLookupTable);
73 void SetType(
int type) VTK_OVERRIDE;
75 void SetTypeToFullRainbow();
78 void SetTypeToRainbow();
79 void SetTypeToOcean();
80 void SetTypeToDesert();
81 void SetTypeToInvGrey();
82 void SetTypeToReverseRainbow();
84 void SetTypeToFMRIPA();
85 void SetTypeToLabels();
86 void SetTypeToRandom();
88 void SetTypeToGreen();
91 void SetTypeToMagenta();
92 void SetTypeToYellow();
93 void SetTypeToWarm1();
94 void SetTypeToWarm2();
95 void SetTypeToWarm3();
96 void SetTypeToCool1();
97 void SetTypeToCool2();
98 void SetTypeToCool3();
99 void SetTypeToWarmShade1();
100 void SetTypeToWarmShade2();
101 void SetTypeToWarmShade3();
102 void SetTypeToCoolShade1();
103 void SetTypeToCoolShade2();
104 void SetTypeToCoolShade3();
105 void SetTypeToWarmTint1();
106 void SetTypeToWarmTint2();
107 void SetTypeToWarmTint3();
108 void SetTypeToCoolTint1();
109 void SetTypeToCoolTint2();
110 void SetTypeToCoolTint3();
113 void ProcessMRMLEvents ( vtkObject *caller,
unsigned long event,
void *callData ) VTK_OVERRIDE;
197 void SetNumberOfColors(
int n);
201 virtual
int GetNumberOfColors() VTK_OVERRIDE;
209 void AddColor(const
char* name,
double r,
double g,
double b,
double a = 1.0);
213 int SetColor(
int entry, const
char* name,
double r,
double g,
double b,
double a = 1.0);
216 int SetColor(
int entry,
double r,
double g,
double b,
double a);
217 int SetColor(
int entry,
double r,
double g,
double b);
218 int SetOpacity(
int entry,
double opacity);
222 virtual
bool GetColor(
int entry,
double color[4]) VTK_OVERRIDE;
230 virtual
void Reset(
vtkMRMLNode* defaultNode) VTK_OVERRIDE;
244 vtkLookupTable *LookupTable;
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
int GetFirstType() VTK_OVERRIDE
Return the lowest and highest integers, for use in looping
static vtkMRMLColorNode * New()
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
alternative method to propagate events generated in Storage nodes
A superclass for other storage nodes.
Abstract MRML node to represent color information.
int GetLastType() VTK_OVERRIDE
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
MRML node to represent discrete color information.
virtual void SetType(int type)
Set Type to type, then build colours and set names
virtual vtkLookupTable * GetLookupTable()
virtual const char * GetTypeAsString()
return a text string describing the colour look up table type