10 #ifndef __vtkMRMLColorLogic_h 11 #define __vtkMRMLColorLogic_h 15 #include "vtkMRMLLogicExport.h" 41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
138 virtual void AddDefaultColorNodes();
143 virtual void RemoveDefaultColorNodes();
146 static const char * GetColorTableNodeID(
int type);
149 static const char * GetFreeSurferColorNodeID(
int type);
152 static const char * GetdGEMRICColorNodeID(
int type);
155 static const char * GetPETColorNodeID(
int type);
160 static const char * GetProceduralColorNodeID(
const char *name);
166 static const char * GetFileColorNodeID(
const char *fileName);
167 static std::string GetFileColorNodeSingletonTag(
const char * fileName);
170 virtual const char * GetDefaultFreeSurferLabelMapColorNodeID();
173 virtual const char * GetDefaultVolumeColorNodeID();
176 virtual const char * GetDefaultLabelMapColorNodeID();
179 virtual const char * GetDefaultEditorColorNodeID();
182 virtual const char * GetDefaultModelColorNodeID();
185 virtual const char * GetDefaultChartColorNodeID();
188 virtual const char * GetDefaultPlotColorNodeID();
191 void AddColorFile(
const char *fileName, std::vector<std::string> *Files);
204 vtkMRMLColorNode* LoadColorFile(
const char *fileName,
const char *nodeName = NULL);
207 vtkGetStringMacro(UserColorFilePaths);
208 vtkSetStringMacro(UserColorFilePaths);
234 virtual void OnMRMLSceneNewEvent();
249 void AddLabelsNode();
250 void AddDefaultTableNode(
int i);
251 void AddDefaultProceduralNodes();
252 void AddFreeSurferNode(
int type);
254 void AddPETNode(
int type);
255 void AddDGEMRICNode(
int type);
256 void AddDefaultFileNode(
int i);
257 void AddUserFileNode(
int i);
259 void AddDefaultTableNodes();
260 void AddFreeSurferNodes();
262 void AddDGEMRICNodes();
263 void AddDefaultFileNodes();
264 void AddUserFileNodes();
266 virtual std::vector<std::string> FindDefaultColorFiles();
267 virtual std::vector<std::string> FindUserColorFiles();
289 std::string RemoveLeadAndTrailSpaces(std::string);
Superclass for MRML logic classes.
std::vector< std::string > UserColorFiles
std::vector< std::string > ColorFiles
MRML logic class for color manipulation.
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.
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
Abstract MRML node to represent color information.
MRML node to represent procedurally defined color information.
MRML node to represent procedurally defined color information.
static std::string TempColorNodeID
MRML node to represent discrete color information.
static vtkMRMLAbstractLogic * New()
char * UserColorFilePaths