15 #ifndef __vtkMRMLFreeSurferProceduralColorNode_h 16 #define __vtkMRMLFreeSurferProceduralColorNode_h 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 "FreeSurferProceduralColor";};
70 void SetType(
int type) VTK_OVERRIDE;
72 void SetTypeToBlueRed();
73 void SetTypeToRedBlue();
74 void SetTypeToRedGreen();
75 void SetTypeToGreenRed();
76 void SetTypeToLabels();
77 void SetTypeToCustom();
79 void ProcessMRMLEvents ( vtkObject *caller,
unsigned long event,
void *callData ) VTK_OVERRIDE;
116 DisplayModifiedEvent = 20000
121 vtkGetStringMacro(LabelsFileName);
122 vtkSetStringMacro(LabelsFileName);
125 virtual
bool GetColor(
int entry,
double color[4]) VTK_OVERRIDE;
129 ~vtkMRMLFreeSurferProceduralColorNode();
130 vtkMRMLFreeSurferProceduralColorNode(const vtkMRMLFreeSurferProceduralColorNode&);
131 void operator=(const vtkMRMLFreeSurferProceduralColorNode&);
136 bool SetNameFromColor(
int index) VTK_OVERRIDE;
142 char *LabelsFileName;
virtual vtkLookupTable * GetLookupTable() VTK_OVERRIDE
virtual const char * GetTypeAsString() VTK_OVERRIDE
return a text string describing the colour look up table type
virtual vtkScalarsToColors * GetScalarsToColors() VTK_OVERRIDE
virtual void UpdateScene(vtkMRMLScene *scene) VTK_OVERRIDE
Finds the storage node and read the data.
int GetLastType() VTK_OVERRIDE
static vtkMRMLProceduralColorNode * New()
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
MRMLNode methods.
MRML node to represent FreeSurfer color information.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
A look up table for FreeSurfer colour scales.
MRML node to represent procedurally defined color information.
virtual int GetNumberOfColors() VTK_OVERRIDE
int GetFirstType() VTK_OVERRIDE
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.
virtual void SetType(int type)
Set Type to type, then build colours and set names.