10 #ifndef __vtkMRMLColorLogic_h 11 #define __vtkMRMLColorLogic_h 15 #include "vtkMRMLLogicExport.h" 41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
133 virtual void AddDefaultColorNodes();
138 virtual void RemoveDefaultColorNodes();
141 static const char * GetColorTableNodeID(
int type);
144 static const char * GetFreeSurferColorNodeID(
int type);
147 static const char * GetdGEMRICColorNodeID(
int type);
150 static const char * GetPETColorNodeID(
int type);
155 static const char * GetProceduralColorNodeID(
const char *name);
161 static const char * GetFileColorNodeID(
const char *fileName);
162 static std::string GetFileColorNodeSingletonTag(
const char * fileName);
165 virtual const char * GetDefaultFreeSurferLabelMapColorNodeID();
168 virtual const char * GetDefaultVolumeColorNodeID();
171 virtual const char * GetDefaultLabelMapColorNodeID();
174 virtual const char * GetDefaultEditorColorNodeID();
177 virtual const char * GetDefaultModelColorNodeID();
180 virtual const char * GetDefaultChartColorNodeID();
183 virtual const char * GetDefaultPlotColorNodeID();
186 void AddColorFile(
const char *fileName, std::vector<std::string> *Files);
199 vtkMRMLColorNode* LoadColorFile(
const char *fileName,
const char *nodeName = NULL);
202 vtkGetStringMacro(UserColorFilePaths);
203 vtkSetStringMacro(UserColorFilePaths);
229 virtual void OnMRMLSceneNewEvent();
244 void AddLabelsNode();
245 void AddDefaultTableNode(
int i);
246 void AddDefaultProceduralNodes();
247 void AddFreeSurferNode(
int type);
249 void AddPETNode(
int type);
250 void AddDGEMRICNode(
int type);
251 void AddDefaultFileNode(
int i);
252 void AddUserFileNode(
int i);
254 void AddDefaultTableNodes();
255 void AddFreeSurferNodes();
257 void AddDGEMRICNodes();
258 void AddDefaultFileNodes();
259 void AddUserFileNodes();
261 virtual std::vector<std::string> FindDefaultColorFiles();
262 virtual std::vector<std::string> FindUserColorFiles();
284 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