Class vtkMRMLLayerDMSelectionObserver

Inheritance Relationships

Base Type

  • public vtkObject

Class Documentation

class vtkMRMLLayerDMSelectionObserver : public vtkObject

Inheritance diagram for vtkMRMLLayerDMSelectionObserver:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="vtkObject" tooltip="vtkObject"] "1" [label="vtkMRMLLayerDMSelectionObserver" tooltip="vtkMRMLLayerDMSelectionObserver" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for vtkMRMLLayerDMSelectionObserver:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="vtkObject" tooltip="vtkObject"] "1" [label="vtkMRMLLayerDMSelectionObserver" tooltip="vtkMRMLLayerDMSelectionObserver" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Helper class to observe changes to the interaction / selection singleton pairs. When either selection or interaction change, triggers a modified event.

Provides helper methods to check if a given node is currently in place mode.

Unnamed Group

void SetScene(vtkMRMLScene *scene)

Updates selection and interaction nodes from the input scene Uses the singleton instances defined in the scene. For finer granularity, use the direct setters.

void UpdateNodesFromScene(vtkMRMLScene *scene)

Public Functions

vtkTypeMacro(vtkMRMLLayerDMSelectionObserver, vtkObject)
void UpdateNodesFromApplicationLogic(vtkMRMLApplicationLogic *logic)

Updates selection and interaction nodes from the input application logic Doesn’t store the application logic instance.

bool SetInteractionNode(vtkMRMLInteractionNode *interactionNode)
vtkMRMLInteractionNode *GetInteractionNode() const
bool SetSelectionNode(vtkMRMLSelectionNode *selectionNode)
vtkMRMLSelectionNode *GetSelectionNode() const
bool IsPlacing(vtkMRMLNode *node) const
Returns:

true if the interaction is in place mode and selection active node is the input mrml node

bool IsPlacing() const
Returns:

true if the interaction is in place mode

void StartPlace(vtkMRMLNode *node, bool isPersistent)

Starts placing the input node (selection to node ID + interaction in place mode)

void StopPlace() const

Sets the interaction mode to view.

std::string GetActivePlaceNodeID() const
void SetInteractionMode(int interactionMode) const
int GetCurrentInteractionMode() const
bool GetPlaceModePersistence() const
Returns:

true if currently placing and in persistent mode.

Public Static Functions

static vtkMRMLLayerDMSelectionObserver *New()

Protected Functions

vtkMRMLLayerDMSelectionObserver()
~vtkMRMLLayerDMSelectionObserver() override
vtkMRMLLayerDMSelectionObserver(const vtkMRMLLayerDMSelectionObserver&) = delete
void operator=(const vtkMRMLLayerDMSelectionObserver&) = delete