Slicer  5.0
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 | Protected Attributes
vtkMRMLAnnotationDisplayableManager Class Reference

#include <Modules/Loadable/Annotations/MRMLDM/vtkMRMLAnnotationDisplayableManager.h>

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

Public Types

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

Public Member Functions

bool AddAnnotation (vtkMRMLAnnotationNode *node)
 
bool CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &closestDistance2) override
 
virtual const char * GetClassName ()
 
bool GetDisplayCoordinatesChanged (double *displayCoordinates1, double *displayCoordinates2)
 Check if there are real changes between two sets of displayCoordinates. More...
 
void GetDisplayToWorldCoordinates (double x, double y, double *worldCoordinates)
 Convert display to world coordinates. More...
 
void GetDisplayToWorldCoordinates (double *displayCoordinates, double *worldCoordinates)
 
int GetLightboxIndex (vtkMRMLAnnotationNode *node, int controlPointIndex=0)
 
virtual double GetScaleFactor2D ()
 
vtkMRMLSliceNodeGetSliceNode ()
 Get the sliceNode, if registered. This would mean it is a 2D SliceView displayableManager. More...
 
bool GetWorldCoordinatesChanged (double *worldCoordinates1, double *worldCoordinates2)
 Check if there are real changes between two sets of worldCoordinates. More...
 
virtual void GetWorldToLocalCoordinates (vtkMRMLAnnotationNode *node, double *worldCoordinates, double *localCoordinates)
 Convert world coordinates to local using mrml parent transform. More...
 
virtual bool Is2DDisplayableManager ()
 
virtual int IsA (const char *type)
 
bool IsInLightboxMode ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
bool ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override
 
virtual void PropagateMRMLToWidget (vtkMRMLAnnotationNode *node, vtkAbstractWidget *widget)
 Propagate properties of MRML node to widget. More...
 
virtual void PropagateWidgetToMRML (vtkAbstractWidget *widget, vtkMRMLAnnotationNode *node)
 Propagate properties of widget to MRML node. More...
 
void RestrictDisplayCoordinatesToViewport (double *displayCoordinates)
 Check if the displayCoordinates are inside the viewport and if not, correct the displayCoordinates. More...
 
virtual void SetParentTransformToWidget (vtkMRMLAnnotationNode *vtkNotUsed(node), vtkAbstractWidget *vtkNotUsed(widget))
 Set mrml parent transform to widgets. More...
 
virtual void SetScaleFactor2D (double)
 Set/Get the 2d scale factor to divide 3D scale by to show 2D elements appropriately (usually set to 300) More...
 
- Public Member Functions inherited from vtkMRMLAbstractDisplayableManager
virtual std::string GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3])
 
virtual bool GetGrabFocus ()
 Displayable manager can indicate that it would like to get all events (even when mouse pointer is outside the window). More...
 
vtkMRMLInteractionNodeGetInteractionNode ()
 Convenient method to get the current InteractionNode. More...
 
virtual bool GetInteractive ()
 Displayable manager can indicate that the window is in interactive mode (faster updates). More...
 
vtkRenderWindowInteractor * GetInteractor ()
 Convenient method to get the WindowInteractor associated with the Renderer. More...
 
virtual vtkMRMLLightBoxRendererManagerProxyGetLightBoxRendererManagerProxy ()
 
virtual int GetMouseCursor ()
 Displayable manager returns ID of the mouse cursor shape that should be displayed. More...
 
vtkRenderer * GetRenderer ()
 Get the default renderer for this displayable manager. More...
 
vtkRenderer * GetRenderer (int idx)
 
vtkMRMLSelectionNodeGetSelectionNode ()
 Convenient method to get the current SelectionNode. More...
 
bool IsCreated ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetHasFocus (bool hasFocus, vtkMRMLInteractionEventData *eventData)
 Set if the widget gets/loses focus (interaction events are processed by this displayable manager). More...
 
virtual void SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *)
 
void SetMouseCursor (int cursor)
 
- 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) 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 vtkMRMLAnnotationDisplayableManagerNew ()
 
static vtkMRMLAnnotationDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractDisplayableManager
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractDisplayableManagerNew ()
 
static vtkMRMLAbstractDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

void AddObserversToInteractionNode ()
 Observe the interaction node. More...
 
void AddObserversToSelectionNode ()
 
void Create () override
 
virtual vtkAbstractWidget * CreateWidget (vtkMRMLAnnotationNode *node)
 Create a widget. More...
 
virtual int GetDisableInteractorStyleEventsProcessing ()
 Accessor for internal flag that disables interactor style event processing. More...
 
void GetDisplayToViewportCoordinates (double x, double y, double *viewportCoordinates)
 Convert display to viewport coordinates. More...
 
void GetDisplayToViewportCoordinates (double *displayCoordinates, double *viewportCoordinates)
 
vtkHandleWidget * GetSeed (int index)
 Return the placed seeds. More...
 
vtkAbstractWidget * GetWidget (vtkMRMLAnnotationNode *node)
 Get the widget of a node. More...
 
void GetWorldToDisplayCoordinates (double r, double a, double s, double *displayCoordinates)
 Convert display to world coordinates. More...
 
void GetWorldToDisplayCoordinates (double *worldCoordinates, double *displayCoordinates)
 
bool IsCorrectDisplayableManager ()
 Check if it is the right displayManager. More...
 
virtual bool IsManageable (vtkMRMLNode *node)
 
virtual bool IsManageable (const char *nodeClassName)
 
virtual bool IsWidgetDisplayable (vtkMRMLSliceNode *sliceNode, vtkMRMLAnnotationNode *node)
 Check, if the widget is displayable in the current slice geometry. More...
 
virtual void OnClickInRenderWindow (double x, double y, const char *associatedNodeID=nullptr)
 Callback for click in RenderWindow. More...
 
void OnClickInRenderWindowGetCoordinates ()
 
void OnInteractorStyleEvent (int eventid) override
 Respond to interactor style events. More...
 
virtual void OnMRMLAnnotationControlPointModifiedEvent (vtkMRMLNode *node)
 
virtual void OnMRMLAnnotationDisplayNodeModifiedEvent (vtkMRMLNode *node)
 
virtual void OnMRMLAnnotationNodeLockModifiedEvent (vtkMRMLNode *node)
 
virtual void OnMRMLAnnotationNodeModifiedEvent (vtkMRMLNode *node)
 Preset functions for certain events. More...
 
virtual void OnMRMLAnnotationNodeTransformModifiedEvent (vtkMRMLNode *node)
 
void OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) override
 Called after the corresponding MRML View container was modified. More...
 
void OnMRMLSceneEndClose () override
 
void OnMRMLSceneNodeAdded (vtkMRMLNode *node) override
 
void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) override
 
virtual void OnMRMLSelectionNodeUnitModifiedEvent (vtkMRMLSelectionNode *)
 
virtual void OnMRMLSliceNodeModifiedEvent (vtkMRMLSliceNode *sliceNode)
 Handler for specific SliceView actions. More...
 
virtual void OnWidgetCreated (vtkAbstractWidget *widget, vtkMRMLAnnotationNode *node)
 Gets called when widget was created. More...
 
virtual void PlaceSeed (double x, double y)
 Place a seed for widgets. More...
 
void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) override
 
void RemoveMRMLObservers () override
 Remove MRML observers. More...
 
void RemoveObserversFromInteractionNode ()
 
void RemoveObserversFromSelectionNode ()
 
virtual void RequestRender ()
 wrap the superclass render request in a check for batch processing More...
 
void SetAndObserveNode (vtkMRMLAnnotationNode *annotationNode)
 Observe one node. More...
 
void SetAndObserveNodes ()
 Observe all associated nodes. More...
 
void SetMRMLSceneInternal (vtkMRMLScene *newScene) override
 
void UpdateFromMRML () override
 
void UpdateFromMRMLScene () override
 
virtual void UpdatePosition (vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLNode *vtkNotUsed(node))
 Update just the position for the widget, implemented by subclasses. More...
 
 vtkMRMLAnnotationDisplayableManager ()
 
 ~vtkMRMLAnnotationDisplayableManager () override
 
- Protected Member Functions inherited from vtkMRMLAbstractDisplayableManager
virtual int ActiveInteractionModes ()
 
void AddInteractorObservableEvent (int eventid, float priority=0.0)
 
void AddInteractorStyleObservableEvent (int eventid, float priority=0.0)
 
virtual void AdditionalInitializeStep ()
 
void AddMRMLDisplayableManagerEvent (int eventId)
 Allow to specify additional events that the DisplayableNode will observe. More...
 
void CreateIfPossible ()
 
int GetInteractorAbortFlag ()
 
int GetInteractorStyleAbortFlag ()
 
vtkMRMLDisplayableManagerGroupGetMRMLDisplayableManagerGroup ()
 Get associated DisplayableManager group. More...
 
vtkMRMLNodeGetMRMLDisplayableNode ()
 Get MRML Displayable Node. More...
 
vtkCallbackCommand * GetWidgetsCallbackCommand ()
 Get vtkWidget callbackCommand. More...
 
vtkObserverManagerGetWidgetsObserverManager () const
 Get widget observerManager. More...
 
void InteractorAbortFlagOff ()
 
void InteractorAbortFlagOn ()
 
void InteractorStyleAbortFlagOff ()
 
void InteractorStyleAbortFlagOn ()
 
virtual void OnInteractorEvent (int eventid)
 
virtual void ProcessWidgetsEvents (vtkObject *caller, unsigned long event, void *callData)
 
void RemoveInteractorObservableEvent (int eventid)
 
void RemoveInteractorStyleObservableEvent (int eventid)
 
void RequestRender ()
 
void SetAndObserveMRMLDisplayableNode (vtkMRMLNode *newMRMLDisplayableNode)
 
void SetInteractorAbortFlag (int f)
 Set the Abort flag on the Interactor event callback. More...
 
void SetInteractorStyleAbortFlag (int f)
 Set the Abort flag on the InteractorStyle event callback. More...
 
virtual void SetMRMLDisplayableManagerGroup (vtkMRMLDisplayableManagerGroup *group)
 
virtual void SetRenderer (vtkRenderer *newRenderer)
 
void SetUpdateFromMRMLRequested (bool requested)
 
 vtkMRMLAbstractDisplayableManager ()
 
 ~vtkMRMLAbstractDisplayableManager () override
 
- 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 ()
 
void Modified () override
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
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)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=nullptr)
 
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 ()
 
 ~vtkMRMLAbstractLogic () override
 

Protected Attributes

vtkMRMLAnnotationDisplayableManagerHelperHelper
 
double LastClickWorldCoordinates [4]
 
vtkMRMLAnnotationClickCounterm_ClickCounter
 Counter for clicks in Render Window. More...
 
const char * m_Focus
 Focus of this displayableManager is set to a specific annotation type when inherited. More...
 
int m_Updating
 Disable processing when updating is in progress. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkMRMLAbstractDisplayableManager
static void WidgetsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 WidgetsCallback is a static function to relay modified events from the vtk widgets. More...
 
- 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 vtkMRMLAnnotationDisplayableManager.h.

Member Typedef Documentation

◆ Superclass

Definition at line 48 of file vtkMRMLAnnotationDisplayableManager.h.

Constructor & Destructor Documentation

◆ vtkMRMLAnnotationDisplayableManager()

vtkMRMLAnnotationDisplayableManager::vtkMRMLAnnotationDisplayableManager ( )
protected

◆ ~vtkMRMLAnnotationDisplayableManager()

vtkMRMLAnnotationDisplayableManager::~vtkMRMLAnnotationDisplayableManager ( )
overrideprotected

Member Function Documentation

◆ AddAnnotation()

bool vtkMRMLAnnotationDisplayableManager::AddAnnotation ( vtkMRMLAnnotationNode node)

Set up data structures for an annotation node. Returns false on failure or if it's already set up. Can be called to reinitialise a node's widgets after calling RemoveWidgetAndNode on the Helper

See also
vtkMRMLAnnotationDisplayableManagerHelper::RemoveWidgetAndNode()

◆ AddObserversToInteractionNode()

void vtkMRMLAnnotationDisplayableManager::AddObserversToInteractionNode ( )
protected

Observe the interaction node.

◆ AddObserversToSelectionNode()

void vtkMRMLAnnotationDisplayableManager::AddObserversToSelectionNode ( )
protected

Observe the selection node for:

◆ CanProcessInteractionEvent()

bool vtkMRMLAnnotationDisplayableManager::CanProcessInteractionEvent ( vtkMRMLInteractionEventData eventData,
double &  distance2 
)
overridevirtual

Return true if the displayable manager can process the event. Distance2 is the squared distance in display coordinates from the closest interaction position. The displayable manager with the closest distance will get the chance to process the interaction event.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ Create()

void vtkMRMLAnnotationDisplayableManager::Create ( )
overrideprotectedvirtual

Called after a valid MRML DisplayableNode is set. By default it simulates a ModifiedEvent event on the displayable node so that ProcessMRMLNodesEvents(displayableNode, ModifiedEvent) is called.

Note
GetRenderer() and GetMRMLDisplayableNode() will return valid object

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ CreateWidget()

virtual vtkAbstractWidget* vtkMRMLAnnotationDisplayableManager::CreateWidget ( vtkMRMLAnnotationNode node)
protectedvirtual

◆ GetClassName()

virtual const char* vtkMRMLAnnotationDisplayableManager::GetClassName ( )
virtual

◆ GetDisableInteractorStyleEventsProcessing()

virtual int vtkMRMLAnnotationDisplayableManager::GetDisableInteractorStyleEventsProcessing ( )
protectedvirtual

Accessor for internal flag that disables interactor style event processing.

◆ GetDisplayCoordinatesChanged()

bool vtkMRMLAnnotationDisplayableManager::GetDisplayCoordinatesChanged ( double *  displayCoordinates1,
double *  displayCoordinates2 
)

Check if there are real changes between two sets of displayCoordinates.

◆ GetDisplayToViewportCoordinates() [1/2]

void vtkMRMLAnnotationDisplayableManager::GetDisplayToViewportCoordinates ( double  x,
double  y,
double *  viewportCoordinates 
)
protected

Convert display to viewport coordinates.

◆ GetDisplayToViewportCoordinates() [2/2]

void vtkMRMLAnnotationDisplayableManager::GetDisplayToViewportCoordinates ( double *  displayCoordinates,
double *  viewportCoordinates 
)
protected

◆ GetDisplayToWorldCoordinates() [1/2]

void vtkMRMLAnnotationDisplayableManager::GetDisplayToWorldCoordinates ( double  x,
double  y,
double *  worldCoordinates 
)

Convert display to world coordinates.

◆ GetDisplayToWorldCoordinates() [2/2]

void vtkMRMLAnnotationDisplayableManager::GetDisplayToWorldCoordinates ( double *  displayCoordinates,
double *  worldCoordinates 
)

◆ GetLightboxIndex()

int vtkMRMLAnnotationDisplayableManager::GetLightboxIndex ( vtkMRMLAnnotationNode node,
int  controlPointIndex = 0 
)

Gets the world coordinate of the annotation node, transforms it to display coordinates. Defaults to returning the 0th control point's light box index. Returns -1 if not in lightbox mode.

◆ GetScaleFactor2D()

virtual double vtkMRMLAnnotationDisplayableManager::GetScaleFactor2D ( )
virtual

◆ GetSeed()

vtkHandleWidget* vtkMRMLAnnotationDisplayableManager::GetSeed ( int  index)
protected

Return the placed seeds.

◆ GetSliceNode()

vtkMRMLSliceNode* vtkMRMLAnnotationDisplayableManager::GetSliceNode ( )

Get the sliceNode, if registered. This would mean it is a 2D SliceView displayableManager.

◆ GetWidget()

vtkAbstractWidget* vtkMRMLAnnotationDisplayableManager::GetWidget ( vtkMRMLAnnotationNode node)
protected

Get the widget of a node.

◆ GetWorldCoordinatesChanged()

bool vtkMRMLAnnotationDisplayableManager::GetWorldCoordinatesChanged ( double *  worldCoordinates1,
double *  worldCoordinates2 
)

Check if there are real changes between two sets of worldCoordinates.

◆ GetWorldToDisplayCoordinates() [1/2]

void vtkMRMLAnnotationDisplayableManager::GetWorldToDisplayCoordinates ( double  r,
double  a,
double  s,
double *  displayCoordinates 
)
protected

Convert display to world coordinates.

Convert display to world coordinates

◆ GetWorldToDisplayCoordinates() [2/2]

void vtkMRMLAnnotationDisplayableManager::GetWorldToDisplayCoordinates ( double *  worldCoordinates,
double *  displayCoordinates 
)
protected

◆ GetWorldToLocalCoordinates()

virtual void vtkMRMLAnnotationDisplayableManager::GetWorldToLocalCoordinates ( vtkMRMLAnnotationNode node,
double *  worldCoordinates,
double *  localCoordinates 
)
virtual

Convert world coordinates to local using mrml parent transform.

◆ Is2DDisplayableManager()

virtual bool vtkMRMLAnnotationDisplayableManager::Is2DDisplayableManager ( )
virtual

Check if this is a 2d SliceView displayable manager, returns true if so, false otherwise. Checks return from GetSliceNode for non null, which means it's a 2d displayable manager

◆ IsA()

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

◆ IsCorrectDisplayableManager()

bool vtkMRMLAnnotationDisplayableManager::IsCorrectDisplayableManager ( )
protected

Check if it is the right displayManager.

◆ IsInLightboxMode()

bool vtkMRMLAnnotationDisplayableManager::IsInLightboxMode ( )

Return true if in lightbox mode - there is a slice node that has layout grid columns or rows > 1

◆ IsManageable() [1/2]

virtual bool vtkMRMLAnnotationDisplayableManager::IsManageable ( vtkMRMLNode node)
protectedvirtual

Return true if this displayable manager supports(can manage) that node, false otherwise. Can be reimplemented to add more conditions.

See also
IsManageable(const char*), IsCorrectDisplayableManager()

◆ IsManageable() [2/2]

virtual bool vtkMRMLAnnotationDisplayableManager::IsManageable ( const char *  nodeClassName)
protectedvirtual

Return true if this displayable manager supports(can manage) that node class, false otherwise. Can be reimplemented to add more conditions.

See also
IsManageable(vtkMRMLNode*), IsCorrectDisplayableManager()

◆ IsTypeOf()

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

◆ IsWidgetDisplayable()

virtual bool vtkMRMLAnnotationDisplayableManager::IsWidgetDisplayable ( vtkMRMLSliceNode sliceNode,
vtkMRMLAnnotationNode node 
)
protectedvirtual

Check, if the widget is displayable in the current slice geometry.

Reimplemented in vtkMRMLAnnotationROIDisplayableManager.

◆ New()

static vtkMRMLAnnotationDisplayableManager* vtkMRMLAnnotationDisplayableManager::New ( )
static

◆ OnClickInRenderWindow()

virtual void vtkMRMLAnnotationDisplayableManager::OnClickInRenderWindow ( double  x,
double  y,
const char *  associatedNodeID = nullptr 
)
protectedvirtual

◆ OnClickInRenderWindowGetCoordinates()

void vtkMRMLAnnotationDisplayableManager::OnClickInRenderWindowGetCoordinates ( )
protected

◆ OnInteractorStyleEvent()

void vtkMRMLAnnotationDisplayableManager::OnInteractorStyleEvent ( int  eventid)
overrideprotectedvirtual

Respond to interactor style events.

Reimplemented from vtkMRMLAbstractDisplayableManager.

Reimplemented in vtkMRMLAnnotationFiducialDisplayableManager.

◆ OnMRMLAnnotationControlPointModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLAnnotationControlPointModifiedEvent ( vtkMRMLNode node)
protectedvirtual

◆ OnMRMLAnnotationDisplayNodeModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLAnnotationDisplayNodeModifiedEvent ( vtkMRMLNode node)
protectedvirtual

◆ OnMRMLAnnotationNodeLockModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLAnnotationNodeLockModifiedEvent ( vtkMRMLNode node)
protectedvirtual

◆ OnMRMLAnnotationNodeModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLAnnotationNodeModifiedEvent ( vtkMRMLNode node)
protectedvirtual

Preset functions for certain events.

◆ OnMRMLAnnotationNodeTransformModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLAnnotationNodeTransformModifiedEvent ( vtkMRMLNode node)
protectedvirtual

◆ OnMRMLDisplayableNodeModifiedEvent()

void vtkMRMLAnnotationDisplayableManager::OnMRMLDisplayableNodeModifiedEvent ( vtkObject *  caller)
overrideprotectedvirtual

Called after the corresponding MRML View container was modified.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ OnMRMLSceneEndClose()

void vtkMRMLAnnotationDisplayableManager::OnMRMLSceneEndClose ( )
overrideprotectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartClose

Reimplemented from vtkMRMLAbstractLogic.

Reimplemented in vtkMRMLAnnotationFiducialDisplayableManager.

◆ OnMRMLSceneNodeAdded()

void vtkMRMLAnnotationDisplayableManager::OnMRMLSceneNodeAdded ( vtkMRMLNode )
overrideprotectedvirtual

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

void vtkMRMLAnnotationDisplayableManager::OnMRMLSceneNodeRemoved ( vtkMRMLNode )
overrideprotectedvirtual

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.

Reimplemented in vtkMRMLAnnotationROIDisplayableManager.

◆ OnMRMLSelectionNodeUnitModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLSelectionNodeUnitModifiedEvent ( vtkMRMLSelectionNode )
inlineprotectedvirtual

◆ OnMRMLSliceNodeModifiedEvent()

virtual void vtkMRMLAnnotationDisplayableManager::OnMRMLSliceNodeModifiedEvent ( vtkMRMLSliceNode sliceNode)
protectedvirtual

Handler for specific SliceView actions.

Reimplemented in vtkMRMLAnnotationROIDisplayableManager.

◆ OnWidgetCreated()

virtual void vtkMRMLAnnotationDisplayableManager::OnWidgetCreated ( vtkAbstractWidget *  widget,
vtkMRMLAnnotationNode node 
)
protectedvirtual

◆ PlaceSeed()

virtual void vtkMRMLAnnotationDisplayableManager::PlaceSeed ( double  x,
double  y 
)
protectedvirtual

Place a seed for widgets.

◆ PrintSelf()

void vtkMRMLAnnotationDisplayableManager::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ ProcessInteractionEvent()

bool vtkMRMLAnnotationDisplayableManager::ProcessInteractionEvent ( vtkMRMLInteractionEventData eventData)
overridevirtual

Process an interaction event. Returns true if the event should be aborted (not processed any further by other event observers).

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ ProcessMRMLNodesEvents()

void vtkMRMLAnnotationDisplayableManager::ProcessMRMLNodesEvents ( vtkObject *  caller,
unsigned long  event,
void *  callData 
)
overrideprotectedvirtual

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 vtkMRMLAbstractDisplayableManager.

◆ PropagateMRMLToWidget()

virtual void vtkMRMLAnnotationDisplayableManager::PropagateMRMLToWidget ( vtkMRMLAnnotationNode node,
vtkAbstractWidget *  widget 
)
virtual

◆ PropagateWidgetToMRML()

virtual void vtkMRMLAnnotationDisplayableManager::PropagateWidgetToMRML ( vtkAbstractWidget *  widget,
vtkMRMLAnnotationNode node 
)
virtual

◆ RemoveMRMLObservers()

void vtkMRMLAnnotationDisplayableManager::RemoveMRMLObservers ( )
overrideprotectedvirtual

Remove MRML observers.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ RemoveObserversFromInteractionNode()

void vtkMRMLAnnotationDisplayableManager::RemoveObserversFromInteractionNode ( )
protected

◆ RemoveObserversFromSelectionNode()

void vtkMRMLAnnotationDisplayableManager::RemoveObserversFromSelectionNode ( )
protected

◆ RequestRender()

virtual void vtkMRMLAnnotationDisplayableManager::RequestRender ( )
protectedvirtual

wrap the superclass render request in a check for batch processing

◆ RestrictDisplayCoordinatesToViewport()

void vtkMRMLAnnotationDisplayableManager::RestrictDisplayCoordinatesToViewport ( double *  displayCoordinates)

Check if the displayCoordinates are inside the viewport and if not, correct the displayCoordinates.

◆ SafeDownCast()

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

◆ SetAndObserveNode()

void vtkMRMLAnnotationDisplayableManager::SetAndObserveNode ( vtkMRMLAnnotationNode annotationNode)
protected

Observe one node.

◆ SetAndObserveNodes()

void vtkMRMLAnnotationDisplayableManager::SetAndObserveNodes ( )
protected

Observe all associated nodes.

◆ SetMRMLSceneInternal()

void vtkMRMLAnnotationDisplayableManager::SetMRMLSceneInternal ( vtkMRMLScene newScene)
overrideprotectedvirtual

Called by SetMRMLScene - Used to initialize the Scene Observe all the events of the scene and call OnMRMLSceneEndClose() or OnMRMLSceneEndImport() if the new scene is valid

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ SetParentTransformToWidget()

virtual void vtkMRMLAnnotationDisplayableManager::SetParentTransformToWidget ( vtkMRMLAnnotationNode vtkNotUsednode,
vtkAbstractWidget *  vtkNotUsedwidget 
)
inlinevirtual

Set mrml parent transform to widgets.

Definition at line 81 of file vtkMRMLAnnotationDisplayableManager.h.

◆ SetScaleFactor2D()

virtual void vtkMRMLAnnotationDisplayableManager::SetScaleFactor2D ( double  )
virtual

Set/Get the 2d scale factor to divide 3D scale by to show 2D elements appropriately (usually set to 300)

◆ UpdateFromMRML()

void vtkMRMLAnnotationDisplayableManager::UpdateFromMRML ( )
overrideprotectedvirtual

Called from RequestRender method if UpdateFromMRMLRequested is true

See also
RequestRender() SetUpdateFromMRMLRequested()

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ UpdateFromMRMLScene()

void vtkMRMLAnnotationDisplayableManager::UpdateFromMRMLScene ( )
overrideprotectedvirtual

Called after the corresponding MRML event is triggered, from AbstractDisplayableManager

See also
ProcessMRMLSceneEvents

Reimplemented from vtkMRMLAbstractLogic.

◆ UpdatePosition()

virtual void vtkMRMLAnnotationDisplayableManager::UpdatePosition ( vtkAbstractWidget *  vtkNotUsedwidget,
vtkMRMLNode vtkNotUsednode 
)
inlineprotectedvirtual

Update just the position for the widget, implemented by subclasses.

Definition at line 180 of file vtkMRMLAnnotationDisplayableManager.h.

Member Data Documentation

◆ Helper

vtkMRMLAnnotationDisplayableManagerHelper* vtkMRMLAnnotationDisplayableManager::Helper
protected

Definition at line 241 of file vtkMRMLAnnotationDisplayableManager.h.

◆ LastClickWorldCoordinates

double vtkMRMLAnnotationDisplayableManager::LastClickWorldCoordinates[4]
protected

Definition at line 245 of file vtkMRMLAnnotationDisplayableManager.h.

◆ m_ClickCounter

vtkMRMLAnnotationClickCounter* vtkMRMLAnnotationDisplayableManager::m_ClickCounter
protected

Counter for clicks in Render Window.

Definition at line 177 of file vtkMRMLAnnotationDisplayableManager.h.

◆ m_Focus

const char* vtkMRMLAnnotationDisplayableManager::m_Focus
protected

Focus of this displayableManager is set to a specific annotation type when inherited.

Definition at line 232 of file vtkMRMLAnnotationDisplayableManager.h.

◆ m_Updating

int vtkMRMLAnnotationDisplayableManager::m_Updating
protected

Disable processing when updating is in progress.

Definition at line 235 of file vtkMRMLAnnotationDisplayableManager.h.


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