15 #ifndef __vtkMRMLProceduralColorNode_h 16 #define __vtkMRMLProceduralColorNode_h 20 class vtkColorTransferFunction;
32 void PrintSelf(ostream& os, vtkIndent indent)
override;
46 void WriteXML(ostream& of,
int indent)
override;
64 void ProcessMRMLEvents ( vtkObject *caller,
unsigned long event,
void *callData )
override;
75 DisplayModifiedEvent = 20000
81 vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
85 virtual void SetAndObserveColorTransferFunction(vtkColorTransferFunction *ctf);
89 static bool IsColorMapEqual(vtkColorTransferFunction* tf1, vtkColorTransferFunction* tf2);
111 bool GetColor(
int entry,
double color[4])
override;
119 vtkGetMacro(NumberOfTableValues,
unsigned int)
122 vtkSetMacro(NumberOfTableValues,
unsigned int)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
vtkLookupTable * ConvertedCTFtoLUT
virtual bool SetNameFromColor(int index)
Set values in the names vector from the colours in the node
vtkColorTransferFunction * ColorTransferFunction
virtual vtkMRMLStorageNode * CreateDefaultStorageNode()
void operator=(const vtkMRMLColorNode &)
void UpdateScene(vtkMRMLScene *scene) override
virtual int GetNumberOfColors()
Get the number of colours in the table
void ReadXMLAttributes(const char **atts) override
Set node attributes
static vtkMRMLColorNode * New()
unsigned int NumberOfTableValues
A set of MRML Nodes that supports serialization and undo/redo.
void PrintSelf(ostream &os, vtkIndent indent) override
A superclass for other storage nodes.
Abstract MRML node to represent color information.
MRML node to represent procedurally defined color information.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
virtual vtkScalarsToColors * GetScalarsToColors()
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
Abstract Superclass for all specific types of MRML nodes.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
virtual vtkLookupTable * GetLookupTable()
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
Propagate events generated in mrml.
virtual bool GetColor(int ind, double color[4])
virtual const char * GetTypeAsString()
return a text string describing the colour look up table type