15 #ifndef __vtkMRMLProceduralColorNode_h 16 #define __vtkMRMLProceduralColorNode_h 20 class vtkColorTransferFunction;
32 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
46 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
54 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "ProceduralColor";};
64 void ProcessMRMLEvents ( vtkObject *caller,
unsigned long event,
void *callData ) VTK_OVERRIDE;
75 DisplayModifiedEvent = 20000
81 vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
85 virtual void SetAndObserveColorTransferFunction(vtkColorTransferFunction *ctf);
89 static bool IsColorMapEqual(vtkColorTransferFunction* tf1, vtkColorTransferFunction* tf2);
100 virtual vtkScalarsToColors* GetScalarsToColors() VTK_OVERRIDE;
104 bool SetNameFromColor(
int index) VTK_OVERRIDE;
108 virtual
int GetNumberOfColors() VTK_OVERRIDE;
111 virtual
bool GetColor(
int entry,
double color[4]) VTK_OVERRIDE;
119 vtkGetMacro(NumberOfTableValues,
unsigned int)
124 vtkSetMacro(NumberOfTableValues,
unsigned int)
134 vtkColorTransferFunction *ColorTransferFunction;
139 vtkLookupTable *ConvertedCTFtoLUT;
145 unsigned int NumberOfTableValues;
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
static vtkMRMLColorNode * New()
virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
Abstract MRML node to represent color information.
MRML node to represent procedurally defined color information.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
virtual vtkLookupTable * GetLookupTable()
virtual const char * GetTypeAsString()
return a text string describing the colour look up table type