Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Colors/Logic/vtkSlicerColorLogic.h>
Public Types | |
typedef vtkMRMLColorLogic | Superclass |
Public Types inherited from vtkMRMLColorLogic | |
typedef vtkMRMLAbstractLogic | Superclass |
Public Types inherited from vtkMRMLAbstractLogic | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
std::vector< std::string > | FindDefaultColorFiles () override |
std::vector< std::string > | FindUserColorFiles () override |
virtual const char * | GetClassName () |
const char * | GetDefaultChartColorNodeID () override |
Return a default color node id for the charts. More... | |
const char * | GetDefaultEditorColorNodeID () override |
Return a default color node id for the editor. More... | |
const char * | GetDefaultLabelMapColorNodeID () override |
Return a default color node id for a label map. More... | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Public Member Functions inherited from vtkMRMLColorLogic | |
void | AddColorFile (const char *fileName, std::vector< std::string > *Files) |
Add a file to the input list Files, checking first for null, duplicates. More... | |
virtual void | AddDefaultColorNodes () |
Add default color nodes. More... | |
virtual const char * | GetDefaultModelColorNodeID () |
Return a default color node id for a model. More... | |
virtual const char * | GetDefaultPlotColorNodeID () |
Return a default color node id for a plot. More... | |
virtual const char * | GetDefaultVolumeColorNodeID () |
Return a default color node id for a volume. More... | |
virtual char * | GetUserColorFilePaths () |
Get/Set the user defined paths where to look for extra color files. More... | |
vtkMRMLColorNode * | LoadColorFile (const char *fileName, const char *nodeName=nullptr) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | RemoveDefaultColorNodes () |
Remove default color nodes. More... | |
virtual void | SetUserColorFilePaths (const char *) |
Public Member Functions inherited from vtkMRMLAbstractLogic | |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () const |
Return a reference to the current MRML scene. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. More... | |
Static Public Member Functions | |
static vtkMRMLColorLegendDisplayNode * | AddDefaultColorLegendDisplayNode (vtkMRMLDisplayableNode *displayableNode) |
static vtkMRMLColorLegendDisplayNode * | AddDefaultColorLegendDisplayNode (vtkMRMLDisplayNode *displayNode) |
static vtkMRMLColorLegendDisplayNode * | GetColorLegendDisplayNode (vtkMRMLDisplayableNode *displayableNode) |
static vtkMRMLColorLegendDisplayNode * | GetColorLegendDisplayNode (vtkMRMLDisplayNode *displayNode) |
static vtkMRMLColorLegendDisplayNode * | GetNthColorLegendDisplayNode (vtkMRMLDisplayableNode *displayableNode, int n) |
static int | GetNumberOfColorLegendDisplayNodes (vtkMRMLDisplayableNode *displayableNode) |
static int | IsTypeOf (const char *type) |
static vtkSlicerColorLogic * | New () |
The Usual vtk class functions. More... | |
static vtkSlicerColorLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLColorLogic | |
static vtkMRMLColorTableNode * | CopyNode (vtkMRMLColorNode *colorNode, const char *copyName) |
static vtkMRMLProceduralColorNode * | CopyProceduralNode (vtkMRMLColorNode *colorNode, const char *copyName) |
static const char * | GetColorTableNodeID (int type) |
Return the default color table node id for a given type. More... | |
static const char * | GetdGEMRICColorNodeID (int type) |
Return the default dGEMRIC color node id for a given type. More... | |
static const char * | GetFileColorNodeID (const char *fileName) |
Return a default color node id for a file based node, based on the file name. More... | |
static std::string | GetFileColorNodeSingletonTag (const char *fileName) |
static const char * | GetPETColorNodeID (int type) |
Return the default PET color node id for a given type. More... | |
static const char * | GetProceduralColorNodeID (const char *name) |
Return a default color node id for a procedural color node. More... | |
static int | IsTypeOf (const char *type) |
static vtkMRMLColorLogic * | New () |
The Usual vtk class functions. More... | |
static vtkMRMLColorLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractLogic | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Static Protected Member Functions | |
static vtkMRMLDisplayNode * | GetFirstNonColorLegendDisplayNode (vtkMRMLDisplayableNode *displayableNode) |
Static Protected Member Functions inherited from vtkMRMLColorLogic | |
static const char * | GetColorNodeID (vtkMRMLColorNode *colorNode) |
Static Protected Member Functions inherited from vtkMRMLAbstractLogic | |
static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLLogicCallback is a static function to relay modified events from the logics. More... | |
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLNodesCallback is a static function to relay modified events from the nodes. More... | |
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Additional Inherited Members | |
Protected Attributes inherited from vtkMRMLColorLogic | |
std::vector< std::string > | ColorFiles |
char * | UserColorFilePaths |
std::vector< std::string > | UserColorFiles |
Static Protected Attributes inherited from vtkMRMLColorLogic | |
static std::string | TempColorNodeID |
Definition at line 26 of file vtkSlicerColorLogic.h.
Definition at line 33 of file vtkSlicerColorLogic.h.
|
protected |
|
overrideprotected |
|
protected |
|
static |
Create a color legend display node for a displayable node and observe it. If there is already a color legend display node for the first (non-color-legend) display node then that is returned.
displayableNode | - displayable node for which color legend should be created. |
|
static |
Create a color legend display node for a display node and observe it. If there is already a color legend display node for that display node then a new node is not created but the existing node is returned.
displayNode | - display node for which color legend should be created |
|
protected |
|
overridevirtual |
look for color files in the Base/Logic/Resources/ColorFiles directory and put their names in the ColorFiles list. Look in any user defined color files paths and put them in the UserColorFiles list.
Reimplemented from vtkMRMLColorLogic.
|
overridevirtual |
Reimplemented from vtkMRMLColorLogic.
|
virtual |
Reimplemented from vtkMRMLColorLogic.
|
static |
Get color legend node corresponding to the first valid display node of the input displayable node. Valid display node is any non-color-legend display node. If not found then nullptr is returned.
|
static |
Get color legend node corresponding to a display node. If the displayable node has a designated primary display node then the corresponding color legend display node will be returned. Otherwise the first color legend display node will be returned that does not have any designated primary display node.
|
overridevirtual |
Return a default color node id for the charts.
Reimplemented from vtkMRMLColorLogic.
|
overridevirtual |
Return a default color node id for the editor.
Reimplemented from vtkMRMLColorLogic.
|
overridevirtual |
Return a default color node id for a label map.
Reimplemented from vtkMRMLColorLogic.
|
staticprotected |
|
static |
Return n-th color legend display node.
displayableNode | displayable node with color legend display nodes |
n | color legend node index |
|
static |
Return number of color legend display nodes.
|
virtual |
Reimplemented from vtkMRMLColorLogic.
|
static |
|
static |
The Usual vtk class functions.
|
protected |
|
override |
|
overrideprotectedvirtual |
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.
Reimplemented from vtkMRMLAbstractLogic.
|
static |