Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkSlicerColorLogic Class Reference

#include <Modules/Loadable/Colors/Logic/vtkSlicerColorLogic.h>

Inheritance diagram for vtkSlicerColorLogic:
Inheritance graph
[legend]
Collaboration diagram for vtkSlicerColorLogic:
Collaboration graph
[legend]

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

virtual std::vector< std::string > FindDefaultColorFiles () VTK_OVERRIDE
 
virtual std::vector< std::string > FindUserColorFiles () VTK_OVERRIDE
 
virtual const char * GetClassName ()
 
virtual const char * GetDefaultChartColorNodeID () VTK_OVERRIDE
 Return a default color node id for the charts. More...
 
virtual const char * GetDefaultEditorColorNodeID () VTK_OVERRIDE
 Return a default color node id for the editor. More...
 
virtual const char * GetDefaultLabelMapColorNodeID () VTK_OVERRIDE
 Return a default color node id for a label map. More...
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_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 * GetDefaultFreeSurferLabelMapColorNodeID ()
 Return a default color node id for a freesurfer label map volume. 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 colour files. More...
 
vtkMRMLColorNodeLoadColorFile (const char *fileName, const char *nodeName=NULL)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void RemoveDefaultColorNodes ()
 Remove default color nodes. More...
 
virtual void SetUserColorFilePaths (const char *)
 
- Public Member Functions inherited from vtkMRMLAbstractLogic
virtual vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state. More...
 
vtkMRMLSceneGetMRMLScene () const
 Return a reference to the current MRML scene. More...
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic)
 
void SetMRMLScene (vtkMRMLScene *newScene)
 Set and observe the MRMLScene. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkSlicerColorLogicNew ()
 The Usual vtk class functions. More...
 
static vtkSlicerColorLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLColorLogic
static vtkMRMLColorTableNodeCopyNode (vtkMRMLColorNode *colorNode, const char *copyName)
 
static vtkMRMLProceduralColorNodeCopyProceduralNode (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 * GetFreeSurferColorNodeID (int type)
 Return the default freesurfer color node id for a given type. More...
 
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 vtkMRMLColorLogicNew ()
 The Usual vtk class functions. More...
 
static vtkMRMLColorLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

std::vector< std::string > FindColorFiles (const std::vector< std::string > &directories)
 
void operator= (const vtkSlicerColorLogic &)
 
 vtkSlicerColorLogic ()
 
 vtkSlicerColorLogic (const vtkSlicerColorLogic &)
 
 ~vtkSlicerColorLogic ()
 
- Protected Member Functions inherited from vtkMRMLColorLogic
void AddDefaultFileNode (int i)
 
void AddDefaultFileNodes ()
 
void AddDefaultProceduralNodes ()
 
void AddDefaultTableNode (int i)
 
void AddDefaultTableNodes ()
 
void AddDGEMRICNode (int type)
 
void AddDGEMRICNodes ()
 
void AddFreeSurferFileNode (vtkMRMLFreeSurferProceduralColorNode *basicFSNode)
 
void AddFreeSurferNode (int type)
 
void AddFreeSurferNodes ()
 
void AddLabelsNode ()
 
void AddPETNode (int type)
 
void AddPETNodes ()
 
void AddUserFileNode (int i)
 
void AddUserFileNodes ()
 
vtkMRMLColorTableNodeCreateDefaultFileNode (const std::string &colorname)
 
vtkMRMLColorTableNodeCreateDefaultTableNode (int type)
 
vtkMRMLdGEMRICProceduralColorNodeCreatedGEMRICColorNode (int type)
 
vtkMRMLColorTableNodeCreateFileNode (const char *fileName)
 
vtkMRMLColorTableNodeCreateFreeSurferFileNode (const char *fileName)
 
vtkMRMLFreeSurferProceduralColorNodeCreateFreeSurferNode (int type)
 
vtkMRMLColorTableNodeCreateLabelsNode ()
 
vtkMRMLPETProceduralColorNodeCreatePETColorNode (int type)
 
vtkMRMLProceduralColorNodeCreateProceduralFileNode (const char *fileName)
 
vtkMRMLProceduralColorNodeCreateRandomNode ()
 
vtkMRMLProceduralColorNodeCreateRedGreenBlueNode ()
 
vtkMRMLColorTableNodeCreateUserFileNode (const std::string &colorname)
 
virtual void OnMRMLSceneNewEvent ()
 
void operator= (const vtkMRMLColorLogic &)
 
std::string RemoveLeadAndTrailSpaces (std::string)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 Reimplemented to listen to specific scene events. More...
 
 vtkMRMLColorLogic ()
 
 vtkMRMLColorLogic (const vtkMRMLColorLogic &)
 
virtual ~vtkMRMLColorLogic ()
 
- Protected Member Functions inherited from vtkMRMLAbstractLogic
int EndModify (bool wasModifying)
 
virtual bool EnterMRMLLogicsCallback () const
 
virtual bool EnterMRMLNodesCallback () const
 
virtual bool EnterMRMLSceneCallback () const
 
bool GetDisableModifiedEvent () const
 
int GetInMRMLLogicsCallbackFlag () const
 
int GetInMRMLNodesCallbackFlag () const
 
int GetInMRMLSceneCallbackFlag () const
 
vtkCallbackCommand * GetMRMLLogicsCallbackCommand ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () const
 
int GetPendingModifiedEventCount () const
 
int GetProcessingMRMLSceneEvent () const
 Return the event id currently processed or 0 if any. More...
 
int InvokePendingModifiedEvent ()
 
virtual void Modified () VTK_OVERRIDE
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *)
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *)
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=0)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

Additional Inherited Members

- 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)
 
- 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
 

Detailed Description

vtkSlicerColorLogic - slicer logic class for color manipulation

This class manages the logic associated with reading, saving, and changing propertied of the colors

Definition at line 22 of file vtkSlicerColorLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 29 of file vtkSlicerColorLogic.h.

Constructor & Destructor Documentation

◆ vtkSlicerColorLogic() [1/2]

vtkSlicerColorLogic::vtkSlicerColorLogic ( )
protected

◆ ~vtkSlicerColorLogic()

vtkSlicerColorLogic::~vtkSlicerColorLogic ( )
protected

◆ vtkSlicerColorLogic() [2/2]

vtkSlicerColorLogic::vtkSlicerColorLogic ( const vtkSlicerColorLogic )
protected

Member Function Documentation

◆ FindColorFiles()

std::vector<std::string> vtkSlicerColorLogic::FindColorFiles ( const std::vector< std::string > &  directories)
protected

◆ FindDefaultColorFiles()

virtual std::vector<std::string> vtkSlicerColorLogic::FindDefaultColorFiles ( )
virtual

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.

◆ FindUserColorFiles()

virtual std::vector<std::string> vtkSlicerColorLogic::FindUserColorFiles ( )
virtual

Reimplemented from vtkMRMLColorLogic.

◆ GetClassName()

virtual const char* vtkSlicerColorLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLColorLogic.

◆ GetDefaultChartColorNodeID()

virtual const char* vtkSlicerColorLogic::GetDefaultChartColorNodeID ( )
virtual

Return a default color node id for the charts.

Reimplemented from vtkMRMLColorLogic.

◆ GetDefaultEditorColorNodeID()

virtual const char* vtkSlicerColorLogic::GetDefaultEditorColorNodeID ( )
virtual

Return a default color node id for the editor.

Reimplemented from vtkMRMLColorLogic.

◆ GetDefaultLabelMapColorNodeID()

virtual const char* vtkSlicerColorLogic::GetDefaultLabelMapColorNodeID ( )
virtual

Return a default color node id for a label map.

Reimplemented from vtkMRMLColorLogic.

◆ IsA()

virtual int vtkSlicerColorLogic::IsA ( const char *  type)
virtual

Reimplemented from vtkMRMLColorLogic.

◆ IsTypeOf()

static int vtkSlicerColorLogic::IsTypeOf ( const char *  type)
static

◆ New()

static vtkSlicerColorLogic* vtkSlicerColorLogic::New ( )
static

The Usual vtk class functions.

◆ operator=()

void vtkSlicerColorLogic::operator= ( const vtkSlicerColorLogic )
protected

◆ PrintSelf()

void vtkSlicerColorLogic::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ SafeDownCast()

static vtkSlicerColorLogic* vtkSlicerColorLogic::SafeDownCast ( vtkObject *  o)
static

The documentation for this class was generated from the following file: