21#ifndef __vtkMRMLLayerDMSelectionObserver_h
22#define __vtkMRMLLayerDMSelectionObserver_h
25#include "vtkSlicerLayerDMModuleMRMLExport.h"
29#include <vtkSmartPointer.h>
30#include <vtkWeakPointer.h>
48 void PrintSelf(ostream& os, vtkIndent indent)
override;
94 vtkSmartPointer<vtkMRMLLayerDMObjectEventObserver> Observer;
95 vtkWeakPointer<vtkMRMLScene> Scene;
96 vtkWeakPointer<vtkMRMLInteractionNode> InteractionNode;
97 vtkWeakPointer<vtkMRMLSelectionNode> SelectionNode;
VTK object observer with one callback endpoint when an event is triggered. Can observe multiple objec...
bool SetSelectionNode(vtkMRMLSelectionNode *selectionNode)
bool GetPlaceModePersistence() const
void PrintSelf(ostream &os, vtkIndent indent) override
void SetInteractionMode(int interactionMode) const
void StopPlace() const
Sets the interaction mode to view.
vtkMRMLSelectionNode * GetSelectionNode() const
void UpdateNodesFromApplicationLogic(vtkMRMLApplicationLogic *logic)
Updates selection and interaction nodes from the input application logic Doesn't store the applicatio...
bool SetInteractionNode(vtkMRMLInteractionNode *interactionNode)
void operator=(const vtkMRMLLayerDMSelectionObserver &)=delete
void StartPlace(vtkMRMLNode *node, bool isPersistent)
Starts placing the input node (selection to node ID + interaction in place mode)
~vtkMRMLLayerDMSelectionObserver() override
vtkMRMLLayerDMSelectionObserver(const vtkMRMLLayerDMSelectionObserver &)=delete
bool IsPlacing(vtkMRMLNode *node) const
vtkMRMLLayerDMSelectionObserver()
void UpdateNodesFromScene(vtkMRMLScene *scene)
vtkMRMLInteractionNode * GetInteractionNode() const
std::string GetActivePlaceNodeID() const
void SetScene(vtkMRMLScene *scene)
Updates selection and interaction nodes from the input scene Uses the singleton instances defined in ...
int GetCurrentInteractionMode() const
static vtkMRMLLayerDMSelectionObserver * New()
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node for storing information about the active nodes in the scene.