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
vtkSlicerMarkupsLogic Class Reference

#include <Modules/Loadable/Markups/Logic/vtkSlicerMarkupsLogic.h>

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

Public Types

typedef vtkSlicerModuleLogic Superclass
 
- Public Types inherited from vtkSlicerModuleLogic
typedef vtkMRMLAbstractLogic Superclass
 
- Public Types inherited from vtkMRMLAbstractLogic
typedef vtkObject Superclass
 
typedef void(vtkMRMLAbstractLogic::* TaskFunctionPointer) (void *clientdata)
 

Public Member Functions

int AddFiducial (double r=0.0, double a=0.0, double s=0.0)
 
std::string AddNewDisplayNodeForMarkupsNode (vtkMRMLNode *mrmlNode)
 
std::string AddNewFiducialNode (const char *name="F", vtkMRMLScene *scene=NULL)
 
void ConvertAnnotationFiducialsToMarkups ()
 
bool CopyNthMarkupToNewList (int n, vtkMRMLMarkupsNode *markupsNode, vtkMRMLMarkupsNode *newMarkupsNode)
 
void FocusCameraOnNthPointInMarkup (const char *cameraNodeID, const char *markupNodeID, int n)
 
void FocusCamerasOnNthPointInMarkup (const char *id, int n)
 
std::string GetActiveListID ()
 
virtual const char * GetClassName ()
 
double * GetDefaultMarkupsDisplayNodeColor ()
 
double GetDefaultMarkupsDisplayNodeGlyphScale ()
 
int GetDefaultMarkupsDisplayNodeGlyphType ()
 set/get the default markups display node settings More...
 
std::string GetDefaultMarkupsDisplayNodeGlyphTypeAsString ()
 
double GetDefaultMarkupsDisplayNodeOpacity ()
 
double * GetDefaultMarkupsDisplayNodeSelectedColor ()
 
int GetDefaultMarkupsDisplayNodeSliceProjection ()
 
double * GetDefaultMarkupsDisplayNodeSliceProjectionColor ()
 
double GetDefaultMarkupsDisplayNodeSliceProjectionOpacity ()
 
double GetDefaultMarkupsDisplayNodeTextScale ()
 
std::string GetSelectionNodeID ()
 
int GetSliceIntersectionsVisibility ()
 
virtual int IsA (const char *type)
 
void JumpSlicesToLocation (double x, double y, double z, bool centered, int viewGroup=-1)
 
void JumpSlicesToNthPointInMarkup (const char *id, int n, bool centered=false, int viewGroup=-1)
 
char * LoadMarkupsFiducials (const char *fileName, const char *fidsName)
 
bool MoveNthMarkupToNewListAtIndex (int n, vtkMRMLMarkupsNode *markupsNode, vtkMRMLMarkupsNode *newMarkupsNode, int newIndex)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
 
void RenameAllMarkupsFromCurrentFormat (vtkMRMLMarkupsNode *markupsNode)
 
void SetActiveListID (vtkMRMLMarkupsNode *markupsNode)
 
void SetAllMarkupsLocked (vtkMRMLMarkupsNode *node, bool flag)
 
void SetAllMarkupsSelected (vtkMRMLMarkupsNode *node, bool flag)
 
void SetAllMarkupsVisibility (vtkMRMLMarkupsNode *node, bool flag)
 Utility methods to operate on all markups in a markups node. More...
 
void SetDefaultMarkupsDisplayNodeColor (double *color)
 
void SetDefaultMarkupsDisplayNodeColor (double r, double g, double b)
 
void SetDefaultMarkupsDisplayNodeGlyphScale (double scale)
 
void SetDefaultMarkupsDisplayNodeGlyphType (int glyphType)
 
void SetDefaultMarkupsDisplayNodeGlyphTypeFromString (const char *glyphType)
 
void SetDefaultMarkupsDisplayNodeOpacity (double opacity)
 
void SetDefaultMarkupsDisplayNodeSelectedColor (double *color)
 
void SetDefaultMarkupsDisplayNodeSelectedColor (double r, double g, double b)
 
void SetDefaultMarkupsDisplayNodeSliceProjection (int projection)
 
void SetDefaultMarkupsDisplayNodeSliceProjectionColor (double *color)
 
void SetDefaultMarkupsDisplayNodeSliceProjectionColor (double r, double g, double b)
 
void SetDefaultMarkupsDisplayNodeSliceProjectionOpacity (double opacity)
 
void SetDefaultMarkupsDisplayNodeTextScale (double scale)
 
void SetDisplayNodeToDefaults (vtkMRMLMarkupsDisplayNode *displayNode)
 utility method to set up a display node from the defaults More...
 
void SetSliceIntersectionsVisibility (bool flag)
 
bool StartPlaceMode (bool persistent)
 
void ToggleAllMarkupsLocked (vtkMRMLMarkupsNode *node)
 
void ToggleAllMarkupsSelected (vtkMRMLMarkupsNode *node)
 
void ToggleAllMarkupsVisibility (vtkMRMLMarkupsNode *node)
 
- Public Member Functions inherited from vtkSlicerModuleLogic
virtual vtkSlicerApplicationLogicGetApplicationLogic ()
 Get access to overall application state. More...
 
std::string GetModuleShareDirectory () const
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
void SetModuleShareDirectory (const std::string &shareDirectory)
 
- 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 vtkSlicerMarkupsLogicNew ()
 
static vtkSlicerMarkupsLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerModuleLogic
static int IsTypeOf (const char *type)
 
static vtkSlicerModuleLogicNew ()
 The Usual vtk class functions. More...
 
static vtkSlicerModuleLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

virtual void ObserveMRMLScene () VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void RegisterNodes () VTK_OVERRIDE
 Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class. More...
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 Initialize listening to MRML events. More...
 
virtual void UpdateFromMRMLScene () VTK_OVERRIDE
 
 vtkSlicerMarkupsLogic ()
 
virtual ~vtkSlicerMarkupsLogic ()
 
- Protected Member Functions inherited from vtkSlicerModuleLogic
 vtkSlicerModuleLogic ()
 
virtual ~vtkSlicerModuleLogic ()
 
- 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 OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
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 ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 41 of file vtkSlicerMarkupsLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 47 of file vtkSlicerMarkupsLogic.h.

Constructor & Destructor Documentation

◆ vtkSlicerMarkupsLogic()

vtkSlicerMarkupsLogic::vtkSlicerMarkupsLogic ( )
protected

◆ ~vtkSlicerMarkupsLogic()

virtual vtkSlicerMarkupsLogic::~vtkSlicerMarkupsLogic ( )
protectedvirtual

Member Function Documentation

◆ AddFiducial()

int vtkSlicerMarkupsLogic::AddFiducial ( double  r = 0.0,
double  a = 0.0,
double  s = 0.0 
)

Add a new fiducial to the currently active list at the given RAS coordinates (default 0,0,0). Will create a list is one is not active. Returns -1 on failure, index of the added fiducial on success.

◆ AddNewDisplayNodeForMarkupsNode()

std::string vtkSlicerMarkupsLogic::AddNewDisplayNodeForMarkupsNode ( vtkMRMLNode mrmlNode)

Create a new display node and observe it on the markups node. On success, return the id, on failure return an empty string. If a display node already exists for this node, return the id of that node.

◆ AddNewFiducialNode()

std::string vtkSlicerMarkupsLogic::AddNewFiducialNode ( const char *  name = "F",
vtkMRMLScene scene = NULL 
)

Create a new markups fiducial node and associated display node, adding both to the scene. If the scene argument is null use the scene set on the logic class, and also make it the active on on the selection node, otherwise add to the passed scene. On success, return the id, on failure return an empty string.

◆ ConvertAnnotationFiducialsToMarkups()

void vtkSlicerMarkupsLogic::ConvertAnnotationFiducialsToMarkups ( )

Searches the scene for annotation fidicual nodes, collecting a list of annotation hierarchy nodes. Then iterates through those heirarchy nodes and moves the fiducials that are under them into new markups nodes. Leaves the top level heirarchy nodes intact as they may be parents to ruler or ROIs but deletes the 1:1 hierarchy nodes.

◆ CopyNthMarkupToNewList()

bool vtkSlicerMarkupsLogic::CopyNthMarkupToNewList ( int  n,
vtkMRMLMarkupsNode markupsNode,
vtkMRMLMarkupsNode newMarkupsNode 
)

utility method to copy a markup from one list to another, adding it to the end of the new list

See also
vtkMRMLMarkupsNode::AddMarkup Returns true on success, false on failure

◆ FocusCameraOnNthPointInMarkup()

void vtkSlicerMarkupsLogic::FocusCameraOnNthPointInMarkup ( const char *  cameraNodeID,
const char *  markupNodeID,
int  n 
)

refocus the camera with the given cameraNodeID on the nth markup in the markups node with id markupNodeID

See also
FocusCamerasOnNthPointInMarkup

◆ FocusCamerasOnNthPointInMarkup()

void vtkSlicerMarkupsLogic::FocusCamerasOnNthPointInMarkup ( const char *  id,
int  n 
)

refocus all of the 3D cameras to the nth markup with the mrml id id

See also
FocusCameraOnNthPointInMarkup

◆ GetActiveListID()

std::string vtkSlicerMarkupsLogic::GetActiveListID ( )

Utility method to return the id of the active place node. Returns an empty string on failure.

See also
SetActiveListID

◆ GetClassName()

virtual const char* vtkSlicerMarkupsLogic::GetClassName ( )
virtual

Reimplemented from vtkSlicerModuleLogic.

◆ GetDefaultMarkupsDisplayNodeColor()

double* vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeColor ( )

◆ GetDefaultMarkupsDisplayNodeGlyphScale()

double vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeGlyphScale ( )

◆ GetDefaultMarkupsDisplayNodeGlyphType()

int vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeGlyphType ( )

set/get the default markups display node settings

◆ GetDefaultMarkupsDisplayNodeGlyphTypeAsString()

std::string vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeGlyphTypeAsString ( )

◆ GetDefaultMarkupsDisplayNodeOpacity()

double vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeOpacity ( )

◆ GetDefaultMarkupsDisplayNodeSelectedColor()

double* vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeSelectedColor ( )

◆ GetDefaultMarkupsDisplayNodeSliceProjection()

int vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeSliceProjection ( )

◆ GetDefaultMarkupsDisplayNodeSliceProjectionColor()

double* vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeSliceProjectionColor ( )

◆ GetDefaultMarkupsDisplayNodeSliceProjectionOpacity()

double vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeSliceProjectionOpacity ( )

◆ GetDefaultMarkupsDisplayNodeTextScale()

double vtkSlicerMarkupsLogic::GetDefaultMarkupsDisplayNodeTextScale ( )

◆ GetSelectionNodeID()

std::string vtkSlicerMarkupsLogic::GetSelectionNodeID ( )

Utility method to return the id of the selection node. Checks the mrml application logic if set, otherwise checks the scene for a singleton selection node. Returns an empty string on failure.

◆ GetSliceIntersectionsVisibility()

int vtkSlicerMarkupsLogic::GetSliceIntersectionsVisibility ( )

Inspect all the slice composite nodes in the scene. Return 1 if all have SliceIntersectionVisibility set to true, 0 if all have it set to false, 2 if it's a combination of true and false, -1 on error

◆ IsA()

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

Reimplemented from vtkSlicerModuleLogic.

◆ IsTypeOf()

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

◆ JumpSlicesToLocation()

void vtkSlicerMarkupsLogic::JumpSlicesToLocation ( double  x,
double  y,
double  z,
bool  centered,
int  viewGroup = -1 
)

jump the slice windows to the given coordinate If viewGroup is -1 then all all slice views are updated, otherwise only those views that are in the specified group.

◆ JumpSlicesToNthPointInMarkup()

void vtkSlicerMarkupsLogic::JumpSlicesToNthPointInMarkup ( const char *  id,
int  n,
bool  centered = false,
int  viewGroup = -1 
)

jump the slice windows to the nth markup with the mrml id id

See also
JumpSlicesToLocation

◆ LoadMarkupsFiducials()

char* vtkSlicerMarkupsLogic::LoadMarkupsFiducials ( const char *  fileName,
const char *  fidsName 
)

Load a markups fiducial list from fileName, return NULL on error, node ID string otherwise. Adds the appropriate storage and display nodes to the scene as well.

◆ MoveNthMarkupToNewListAtIndex()

bool vtkSlicerMarkupsLogic::MoveNthMarkupToNewListAtIndex ( int  n,
vtkMRMLMarkupsNode markupsNode,
vtkMRMLMarkupsNode newMarkupsNode,
int  newIndex 
)

utility method to move a markup from one list to another, trying to insert it at the given new index. If the new index is larger than the number of markups in the list, adds it to the end. If new index is smaller than 0, adds it at the beginning. Otherwise inserts at that index.

See also
vtkMRMLMarkupsNode::InsertMarkup Returns true on success, false on failure

◆ New()

static vtkSlicerMarkupsLogic* vtkSlicerMarkupsLogic::New ( )
static

◆ ObserveMRMLScene()

virtual void vtkSlicerMarkupsLogic::ObserveMRMLScene ( )
protectedvirtual

Called after a scene is set to the logic and nodes are registered (RegisterNodes()). The scene events to observe are already set in SetMRMLSceneInternal(). By default, ObserveMRMLScene() calls UpdateFromMRMLScene(). Overide for a custom behavior.

See also
SetMRMLSceneInternal, RegisterNodes, UnobserveMRMLScene
UpdateFromMRMLScene

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeAdded()

virtual void vtkSlicerMarkupsLogic::OnMRMLSceneNodeAdded ( vtkMRMLNode )
protectedvirtual

If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneNodeRemoved, vtkMRMLScene::NodeAboutToBeAdded

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeRemoved()

virtual void vtkSlicerMarkupsLogic::OnMRMLSceneNodeRemoved ( vtkMRMLNode )
protectedvirtual

If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneNodeAdded, vtkMRMLScene::NodeAboutToBeRemoved

Reimplemented from vtkMRMLAbstractLogic.

◆ PrintSelf()

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

◆ ProcessMRMLNodesEvents()

virtual void vtkSlicerMarkupsLogic::ProcessMRMLNodesEvents ( vtkObject *  caller,
unsigned long  event,
void *  callData 
)
virtual

Receives all the events fired by the nodes. To listen to a node, you can add an observer using GetMRMLNodesCallbackCommand() or use the utility macros vtk[SetAndObserve|Observe]MRMLNode[Event]Macro ProcessMRMLNodesEvents calls OnMRMLNodeModified when event is vtkCommand::ModifiedEvent.

See also
ProcessMRMLSceneEvents, ProcessMRMLLogicsEvents, OnMRMLNodeModified(), vtkSetAndObserveMRMLNodeMacro, vtkObserveMRMLNodeMacro, vtkSetAndObserveMRMLNodeEventMacro

Reimplemented from vtkMRMLAbstractLogic.

◆ RegisterNodes()

virtual void vtkSlicerMarkupsLogic::RegisterNodes ( )
protectedvirtual

Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.

Reimplemented from vtkMRMLAbstractLogic.

◆ RenameAllMarkupsFromCurrentFormat()

void vtkSlicerMarkupsLogic::RenameAllMarkupsFromCurrentFormat ( vtkMRMLMarkupsNode markupsNode)

Iterate over the markups in the list and reset the markup labels using the current MarkupLabelFormat setting. Try to keep current numbering. Will work if there's a d, g or f in the format string, but precision is not handled.

◆ SafeDownCast()

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

◆ SetActiveListID()

void vtkSlicerMarkupsLogic::SetActiveListID ( vtkMRMLMarkupsNode markupsNode)

Utility method to set the active place node from the passed markups node. Does not set the interaction mode to place.

See also
GetActiveListID, StartPlaceMode
vtkMRMLSelectionNode::SetReferenceActivePlaceNodeClassName
vtkMRMLSelectionNode::SetActivePlaceNodeID

◆ SetAllMarkupsLocked()

void vtkSlicerMarkupsLogic::SetAllMarkupsLocked ( vtkMRMLMarkupsNode node,
bool  flag 
)

◆ SetAllMarkupsSelected()

void vtkSlicerMarkupsLogic::SetAllMarkupsSelected ( vtkMRMLMarkupsNode node,
bool  flag 
)

◆ SetAllMarkupsVisibility()

void vtkSlicerMarkupsLogic::SetAllMarkupsVisibility ( vtkMRMLMarkupsNode node,
bool  flag 
)

Utility methods to operate on all markups in a markups node.

◆ SetDefaultMarkupsDisplayNodeColor() [1/2]

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeColor ( double *  color)

◆ SetDefaultMarkupsDisplayNodeColor() [2/2]

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeColor ( double  r,
double  g,
double  b 
)

◆ SetDefaultMarkupsDisplayNodeGlyphScale()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeGlyphScale ( double  scale)

◆ SetDefaultMarkupsDisplayNodeGlyphType()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeGlyphType ( int  glyphType)

◆ SetDefaultMarkupsDisplayNodeGlyphTypeFromString()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeGlyphTypeFromString ( const char *  glyphType)

◆ SetDefaultMarkupsDisplayNodeOpacity()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeOpacity ( double  opacity)

◆ SetDefaultMarkupsDisplayNodeSelectedColor() [1/2]

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeSelectedColor ( double *  color)

◆ SetDefaultMarkupsDisplayNodeSelectedColor() [2/2]

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeSelectedColor ( double  r,
double  g,
double  b 
)

◆ SetDefaultMarkupsDisplayNodeSliceProjection()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeSliceProjection ( int  projection)

◆ SetDefaultMarkupsDisplayNodeSliceProjectionColor() [1/2]

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeSliceProjectionColor ( double *  color)

◆ SetDefaultMarkupsDisplayNodeSliceProjectionColor() [2/2]

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeSliceProjectionColor ( double  r,
double  g,
double  b 
)

◆ SetDefaultMarkupsDisplayNodeSliceProjectionOpacity()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeSliceProjectionOpacity ( double  opacity)

◆ SetDefaultMarkupsDisplayNodeTextScale()

void vtkSlicerMarkupsLogic::SetDefaultMarkupsDisplayNodeTextScale ( double  scale)

◆ SetDisplayNodeToDefaults()

void vtkSlicerMarkupsLogic::SetDisplayNodeToDefaults ( vtkMRMLMarkupsDisplayNode displayNode)

utility method to set up a display node from the defaults

◆ SetMRMLSceneInternal()

virtual void vtkSlicerMarkupsLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)
protectedvirtual

Initialize listening to MRML events.

Reimplemented from vtkMRMLAbstractLogic.

◆ SetSliceIntersectionsVisibility()

void vtkSlicerMarkupsLogic::SetSliceIntersectionsVisibility ( bool  flag)

Set the slice intersections visbility on all the slice composite nodes in the scene

◆ StartPlaceMode()

bool vtkSlicerMarkupsLogic::StartPlaceMode ( bool  persistent)

Put the interaction node into place mode, and set the persistence of place mode according to the persistent flag. Return true on sucessfully going into place mode, false otherwise.

See also
SetActiveIDList

◆ ToggleAllMarkupsLocked()

void vtkSlicerMarkupsLogic::ToggleAllMarkupsLocked ( vtkMRMLMarkupsNode node)

◆ ToggleAllMarkupsSelected()

void vtkSlicerMarkupsLogic::ToggleAllMarkupsSelected ( vtkMRMLMarkupsNode node)

◆ ToggleAllMarkupsVisibility()

void vtkSlicerMarkupsLogic::ToggleAllMarkupsVisibility ( vtkMRMLMarkupsNode node)

◆ UpdateFromMRMLScene()

virtual void vtkSlicerMarkupsLogic::UpdateFromMRMLScene ( )
protectedvirtual

Called everytime the scene has been significantly changed. If the scene BatchProcessState events are observed (in SetMRMLSceneInternal() ), UpdateFromMRMLScene is called after each batch process (Close, Import, Restore...). It is also being called by default when a new scene is set (SetMRMLScene).

See also
SetMRMLSceneInternal, UnobserveMRMLScene, ObserveMRMLScene

Reimplemented from vtkMRMLAbstractLogic.


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