Slicer  4.10
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
vtkMRMLAnnotationStickyDisplayableManager Class Reference

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

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

Public Types

typedef vtkMRMLAnnotationDisplayableManager Superclass
 
- Public Types inherited from vtkMRMLAnnotationDisplayableManager
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

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkMRMLAnnotationDisplayableManager
bool AddAnnotation (vtkMRMLAnnotationNode *node)
 
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 ()
 
bool IsInLightboxMode ()
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
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])
 
vtkMRMLInteractionNodeGetInteractionNode ()
 Convenient method to get the current InteractionNode. More...
 
vtkRenderWindowInteractor * GetInteractor ()
 Convenient method to get the WindowInteractor associated with the Renderer. More...
 
virtual vtkMRMLLightBoxRendererManagerProxyGetLightBoxRendererManagerProxy ()
 
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) VTK_OVERRIDE
 
virtual void SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *)
 
- 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 vtkMRMLAnnotationStickyDisplayableManagerNew ()
 
static vtkMRMLAnnotationStickyDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAnnotationDisplayableManager
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

virtual vtkAbstractWidget * CreateWidget (vtkMRMLAnnotationNode *node)
 Create a widget. More...
 
virtual void OnClickInRenderWindow (double x, double y, const char *associatedNodeID)
 Callback for click in RenderWindow. More...
 
virtual void OnWidgetCreated (vtkAbstractWidget *widget, vtkMRMLAnnotationNode *node)
 Gets called when widget was created. More...
 
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...
 
 vtkMRMLAnnotationStickyDisplayableManager ()
 
virtual ~vtkMRMLAnnotationStickyDisplayableManager ()
 
- Protected Member Functions inherited from vtkMRMLAnnotationDisplayableManager
void AddObserversToInteractionNode ()
 Observe the interaction node. More...
 
void AddObserversToSelectionNode ()
 
virtual void Create () VTK_OVERRIDE
 
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...
 
void OnClickInRenderWindowGetCoordinates ()
 
virtual void OnInteractorStyleEvent (int eventid) VTK_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)
 
virtual void OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) VTK_OVERRIDE
 Called after the corresponding MRML View container was modified. More...
 
virtual void OnMRMLSceneEndClose () VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSelectionNodeUnitModifiedEvent (vtkMRMLSelectionNode *)
 
virtual void OnMRMLSliceNodeModifiedEvent (vtkMRMLSliceNode *sliceNode)
 Handler for specific SliceView actions. More...
 
virtual void PlaceSeed (double x, double y)
 Place a seed for widgets. More...
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
 
virtual void RemoveMRMLObservers () VTK_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...
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 
virtual void UpdateFromMRML () VTK_OVERRIDE
 
virtual void UpdateFromMRMLScene () VTK_OVERRIDE
 
virtual void UpdatePosition (vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLNode *vtkNotUsed(node))
 Update just the position for the widget, implemented by subclasses. More...
 
 vtkMRMLAnnotationDisplayableManager ()
 
virtual ~vtkMRMLAnnotationDisplayableManager ()
 
- 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 ()
 
virtual ~vtkMRMLAbstractDisplayableManager ()
 
- 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 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=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 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)
 
- Protected Attributes inherited from vtkMRMLAnnotationDisplayableManager
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...
 

Detailed Description

Definition at line 30 of file vtkMRMLAnnotationStickyDisplayableManager.h.

Member Typedef Documentation

◆ Superclass

Definition at line 37 of file vtkMRMLAnnotationStickyDisplayableManager.h.

Constructor & Destructor Documentation

◆ vtkMRMLAnnotationStickyDisplayableManager()

vtkMRMLAnnotationStickyDisplayableManager::vtkMRMLAnnotationStickyDisplayableManager ( )
inlineprotected

Definition at line 42 of file vtkMRMLAnnotationStickyDisplayableManager.h.

◆ ~vtkMRMLAnnotationStickyDisplayableManager()

virtual vtkMRMLAnnotationStickyDisplayableManager::~vtkMRMLAnnotationStickyDisplayableManager ( )
inlineprotectedvirtual

Definition at line 43 of file vtkMRMLAnnotationStickyDisplayableManager.h.

Member Function Documentation

◆ CreateWidget()

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

Create a widget.

Reimplemented from vtkMRMLAnnotationDisplayableManager.

◆ GetClassName()

virtual const char* vtkMRMLAnnotationStickyDisplayableManager::GetClassName ( )
virtual

◆ IsA()

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

◆ IsTypeOf()

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

◆ New()

static vtkMRMLAnnotationStickyDisplayableManager* vtkMRMLAnnotationStickyDisplayableManager::New ( )
static

◆ OnClickInRenderWindow()

virtual void vtkMRMLAnnotationStickyDisplayableManager::OnClickInRenderWindow ( double  x,
double  y,
const char *  associatedNodeID 
)
protectedvirtual

Callback for click in RenderWindow.

Reimplemented from vtkMRMLAnnotationDisplayableManager.

◆ OnWidgetCreated()

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

Gets called when widget was created.

Reimplemented from vtkMRMLAnnotationDisplayableManager.

◆ PrintSelf()

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

◆ PropagateMRMLToWidget()

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

Propagate properties of MRML node to widget.

Reimplemented from vtkMRMLAnnotationDisplayableManager.

◆ PropagateWidgetToMRML()

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

Propagate properties of widget to MRML node.

Reimplemented from vtkMRMLAnnotationDisplayableManager.

◆ SafeDownCast()

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

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