10 #ifndef __vtkMRMLColorLogic_h 11 #define __vtkMRMLColorLogic_h 15 #include "vtkMRMLLogicExport.h" 40 void PrintSelf(ostream& os, vtkIndent indent)
override;
131 virtual void AddDefaultColorNodes();
136 virtual void RemoveDefaultColorNodes();
139 static const char * GetColorTableNodeID(
int type);
142 static const char * GetdGEMRICColorNodeID(
int type);
145 static const char * GetPETColorNodeID(
int type);
150 static const char * GetProceduralColorNodeID(
const char *name);
156 static const char * GetFileColorNodeID(
const char *fileName);
157 static std::string GetFileColorNodeSingletonTag(
const char * fileName);
160 virtual const char * GetDefaultVolumeColorNodeID();
163 virtual const char * GetDefaultLabelMapColorNodeID();
166 virtual const char * GetDefaultEditorColorNodeID();
169 virtual const char * GetDefaultModelColorNodeID();
172 virtual const char * GetDefaultChartColorNodeID();
175 virtual const char * GetDefaultPlotColorNodeID();
178 void AddColorFile(
const char *fileName, std::vector<std::string> *Files);
191 vtkMRMLColorNode* LoadColorFile(
const char *fileName,
const char *nodeName =
nullptr);
194 vtkGetStringMacro(UserColorFilePaths);
195 vtkSetStringMacro(UserColorFilePaths);
221 virtual void OnMRMLSceneNewEvent();
234 void AddLabelsNode();
235 void AddDefaultTableNode(
int i);
236 void AddDefaultProceduralNodes();
237 void AddPETNode(
int type);
238 void AddDGEMRICNode(
int type);
239 void AddDefaultFileNode(
int i);
240 void AddUserFileNode(
int i);
242 void AddDefaultTableNodes();
244 void AddDGEMRICNodes();
245 void AddDefaultFileNodes();
246 void AddUserFileNodes();
248 virtual std::vector<std::string> FindDefaultColorFiles();
249 virtual std::vector<std::string> FindUserColorFiles();
271 std::string RemoveLeadAndTrailSpaces(std::string);
Superclass for MRML logic classes.
void PrintSelf(ostream &os, vtkIndent indent) override
std::vector< std::string > UserColorFiles
std::vector< std::string > ColorFiles
MRML logic class for color manipulation.
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