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 | Protected Attributes
vtkMRMLMarkupsDisplayableManager2D Class Reference

#include <Modules/Loadable/Markups/MRMLDM/vtkMRMLMarkupsDisplayableManager2D.h>

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

Public Types

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

vtkAbstractWidget * AddWidget (vtkMRMLMarkupsNode *markupsNode)
 
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)
 
vtkMRMLMarkupsDisplayableManagerHelperGetHelper ()
 
int GetLightboxIndex (vtkMRMLMarkupsNode *node, int markupIndex, int pointIndex)
 
virtual double GetScaleFactor2D ()
 
bool GetWorldCoordinatesChanged (double *worldCoordinates1, double *worldCoordinates2)
 Check if there are real changes between two sets of worldCoordinates. More...
 
virtual void GetWorldToLocalCoordinates (vtkMRMLMarkupsNode *node, double *worldCoordinates, double *localCoordinates)
 Convert world coordinates to local using mrml parent transform. More...
 
virtual int IsA (const char *type)
 
bool IsInLightboxMode ()
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void PropagateMRMLToWidget (vtkMRMLMarkupsNode *node, vtkAbstractWidget *widget)
 Propagate properties of MRML node to widget. More...
 
virtual void PropagateWidgetToMRML (vtkAbstractWidget *widget, vtkMRMLMarkupsNode *node)
 Propagate properties of widget to MRML node. More...
 
bool RestrictDisplayCoordinatesToViewport (double *displayCoordinates)
 
virtual void SetParentTransformToWidget (vtkMRMLMarkupsNode *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...
 
virtual bool UpdateNthMarkupPositionFromWidget (int vtkNotUsed(n), vtkMRMLMarkupsNode *vtkNotUsed(pointsNode), vtkAbstractWidget *vtkNotUsed(widget))
 
virtual bool UpdateNthSeedPositionFromMRML (int vtkNotUsed(n), vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLMarkupsNode *vtkNotUsed(markupsNode))
 
void UpdateWidgetVisibility (vtkMRMLMarkupsNode *node)
 
- Public Member Functions inherited from vtkMRMLAbstractSliceViewDisplayableManager
void ConvertDeviceToXYZ (double x, double y, double xyz[3])
 
void ConvertRASToXYZ (double ras[3], double xyz[3])
 
void ConvertXYZToRAS (double xyz[3], double ras[3])
 
vtkMRMLSliceNodeGetMRMLSliceNode ()
 Get MRML SliceNode. More...
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
- 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 vtkMRMLMarkupsDisplayableManager2DNew ()
 
static vtkMRMLMarkupsDisplayableManager2DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractSliceViewDisplayableManager
static void ConvertDeviceToXYZ (vtkRenderWindowInteractor *interactor, vtkMRMLSliceNode *sliceNode, double x, double y, double xyz[3])
 
static void ConvertRASToXYZ (vtkMRMLSliceNode *sliceNode, double ras[3], double xyz[3])
 
static void ConvertXYZToRAS (vtkMRMLSliceNode *sliceNode, double xyz[3], double ras[3])
 
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractSliceViewDisplayableManagerNew ()
 
static vtkMRMLAbstractSliceViewDisplayableManagerSafeDownCast (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...
 
virtual vtkAbstractWidget * CreateWidget (vtkMRMLMarkupsNode *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 (vtkMRMLMarkupsNode *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)
 
virtual bool IsCorrectDisplayableManager ()
 Check if it is the right displayManager. More...
 
virtual bool IsManageable (vtkMRMLNode *node)
 
virtual bool IsManageable (const char *nodeClassName)
 
virtual bool IsWidgetDisplayableOnSlice (vtkMRMLMarkupsNode *node, int markupIndex=0)
 
virtual void OnClickInRenderWindow (double x, double y, const char *associatedNodeID=NULL)
 Callback for click in RenderWindow. More...
 
void OnClickInRenderWindowGetCoordinates ()
 
virtual void OnInteractorStyleEvent (int eventid) VTK_OVERRIDE
 Respond to interactor style events. More...
 
virtual void OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) VTK_OVERRIDE
 Called after the corresponding MRML View container was modified. More...
 
void OnMRMLMarkupsDisplayNodeModifiedEvent (vtkMRMLNode *node)
 
void OnMRMLMarkupsNodeLockModifiedEvent (vtkMRMLNode *node)
 
virtual void OnMRMLMarkupsNodeMarkupAddedEvent (vtkMRMLMarkupsNode *vtkNotUsed(markupsNode), int vtkNotUsed(n))
 Subclasses need to react to new markups being added to a markups node or modified. More...
 
virtual void OnMRMLMarkupsNodeMarkupRemovedEvent (vtkMRMLMarkupsNode *vtkNotUsed(markupsNode), int vtkNotUsed(n))
 
void OnMRMLMarkupsNodeModifiedEvent (vtkMRMLNode *node)
 Preset functions for certain events. More...
 
virtual void OnMRMLMarkupsNodeNthMarkupModifiedEvent (vtkMRMLMarkupsNode *vtkNotUsed(node), int vtkNotUsed(n))
 
void OnMRMLMarkupsNodeTransformModifiedEvent (vtkMRMLNode *node)
 
void OnMRMLMarkupsPointModifiedEvent (vtkMRMLNode *node, int n)
 
virtual void OnMRMLSceneEndClose () VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSliceNodeModifiedEvent () VTK_OVERRIDE
 Handler for specific SliceView actions, iterate over the widgets in the helper. More...
 
virtual void OnWidgetCreated (vtkAbstractWidget *widget, vtkMRMLMarkupsNode *node)
 Gets called when widget was created. 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 ()
 
virtual void RequestRender ()
 Wrap the superclass render request in a check for batch processing. More...
 
void SetAndObserveNode (vtkMRMLMarkupsNode *markupsNode)
 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...
 
 vtkMRMLMarkupsDisplayableManager2D ()
 
virtual ~vtkMRMLMarkupsDisplayableManager2D ()
 
- Protected Member Functions inherited from vtkMRMLAbstractSliceViewDisplayableManager
 vtkMRMLAbstractSliceViewDisplayableManager ()
 
virtual ~vtkMRMLAbstractSliceViewDisplayableManager ()
 
- 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...
 
virtual void Create ()
 
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 ()
 

Protected Attributes

vtkMRMLMarkupsClickCounterClickCounter
 Counter for clicks in Render Window. More...
 
const char * Focus
 Focus of this displayableManager is set to a specific markups type when inherited. More...
 
vtkMRMLMarkupsDisplayableManagerHelperHelper
 
double LastClickWorldCoordinates [4]
 
int 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 vtkMRMLMarkupsDisplayableManager2D.h.

Member Typedef Documentation

◆ Superclass

Definition at line 47 of file vtkMRMLMarkupsDisplayableManager2D.h.

Constructor & Destructor Documentation

◆ vtkMRMLMarkupsDisplayableManager2D()

vtkMRMLMarkupsDisplayableManager2D::vtkMRMLMarkupsDisplayableManager2D ( )
protected

◆ ~vtkMRMLMarkupsDisplayableManager2D()

virtual vtkMRMLMarkupsDisplayableManager2D::~vtkMRMLMarkupsDisplayableManager2D ( )
protectedvirtual

Member Function Documentation

◆ AddObserversToInteractionNode()

void vtkMRMLMarkupsDisplayableManager2D::AddObserversToInteractionNode ( )
protected

Observe the interaction node.

◆ AddWidget()

vtkAbstractWidget* vtkMRMLMarkupsDisplayableManager2D::AddWidget ( vtkMRMLMarkupsNode markupsNode)

Create a new widget for this markups node and save it to the helper. Returns widget on success, null on failure.

◆ CreateWidget()

virtual vtkAbstractWidget* vtkMRMLMarkupsDisplayableManager2D::CreateWidget ( vtkMRMLMarkupsNode node)
protectedvirtual

Create a widget.

Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager2D.

◆ GetClassName()

virtual const char* vtkMRMLMarkupsDisplayableManager2D::GetClassName ( )
virtual

◆ GetDisableInteractorStyleEventsProcessing()

virtual int vtkMRMLMarkupsDisplayableManager2D::GetDisableInteractorStyleEventsProcessing ( )
protectedvirtual

Accessor for internal flag that disables interactor style event processing.

◆ GetDisplayCoordinatesChanged()

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

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

◆ GetDisplayToViewportCoordinates() [1/2]

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

Convert display to viewport coordinates.

◆ GetDisplayToViewportCoordinates() [2/2]

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

◆ GetDisplayToWorldCoordinates() [1/2]

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

Convert display to world coordinates.

◆ GetDisplayToWorldCoordinates() [2/2]

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

◆ GetHelper()

vtkMRMLMarkupsDisplayableManagerHelper* vtkMRMLMarkupsDisplayableManager2D::GetHelper ( )
inline

Definition at line 92 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ GetLightboxIndex()

int vtkMRMLMarkupsDisplayableManager2D::GetLightboxIndex ( vtkMRMLMarkupsNode node,
int  markupIndex,
int  pointIndex 
)

Gets the world coordinate of the markups node point, transforms it to display coordinates, takes the z element to calculate the light box index. Returns -1 if not in lightbox mode or the indices are out of range.

◆ GetScaleFactor2D()

virtual double vtkMRMLMarkupsDisplayableManager2D::GetScaleFactor2D ( )
virtual

◆ GetSeed()

vtkHandleWidget* vtkMRMLMarkupsDisplayableManager2D::GetSeed ( int  index)
protected

Return the placed seeds.

◆ GetWidget()

vtkAbstractWidget* vtkMRMLMarkupsDisplayableManager2D::GetWidget ( vtkMRMLMarkupsNode node)
protected

Get the widget of a node.

◆ GetWorldCoordinatesChanged()

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

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

◆ GetWorldToDisplayCoordinates() [1/2]

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

Convert display to world coordinates.

◆ GetWorldToDisplayCoordinates() [2/2]

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

◆ GetWorldToLocalCoordinates()

virtual void vtkMRMLMarkupsDisplayableManager2D::GetWorldToLocalCoordinates ( vtkMRMLMarkupsNode node,
double *  worldCoordinates,
double *  localCoordinates 
)
virtual

Convert world coordinates to local using mrml parent transform.

◆ IsA()

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

◆ IsCorrectDisplayableManager()

virtual bool vtkMRMLMarkupsDisplayableManager2D::IsCorrectDisplayableManager ( )
protectedvirtual

Check if it is the right displayManager.

◆ IsInLightboxMode()

bool vtkMRMLMarkupsDisplayableManager2D::IsInLightboxMode ( )

Checks if this 2D displayable manager is in light box mode. Returns true if there is a slice node and it has grid columns or rows greater than 1, and false otherwise.

◆ IsManageable() [1/2]

virtual bool vtkMRMLMarkupsDisplayableManager2D::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 vtkMRMLMarkupsDisplayableManager2D::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 vtkMRMLMarkupsDisplayableManager2D::IsTypeOf ( const char *  type)
static

◆ IsWidgetDisplayableOnSlice()

virtual bool vtkMRMLMarkupsDisplayableManager2D::IsWidgetDisplayableOnSlice ( vtkMRMLMarkupsNode node,
int  markupIndex = 0 
)
protectedvirtual

Check, if the widget is displayable in the current slice geometry for this markup, returns true if a 3d displayable manager

◆ New()

static vtkMRMLMarkupsDisplayableManager2D* vtkMRMLMarkupsDisplayableManager2D::New ( )
static

◆ OnClickInRenderWindow()

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

Callback for click in RenderWindow.

Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager2D.

◆ OnClickInRenderWindowGetCoordinates()

void vtkMRMLMarkupsDisplayableManager2D::OnClickInRenderWindowGetCoordinates ( )
protected

◆ OnInteractorStyleEvent()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnInteractorStyleEvent ( int  eventid)
protectedvirtual

Respond to interactor style events.

Reimplemented from vtkMRMLAbstractDisplayableManager.

Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager2D.

◆ OnMRMLDisplayableNodeModifiedEvent()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnMRMLDisplayableNodeModifiedEvent ( vtkObject *  caller)
protectedvirtual

Called after the corresponding MRML View container was modified.

Reimplemented from vtkMRMLAbstractSliceViewDisplayableManager.

◆ OnMRMLMarkupsDisplayNodeModifiedEvent()

void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsDisplayNodeModifiedEvent ( vtkMRMLNode node)
protected

◆ OnMRMLMarkupsNodeLockModifiedEvent()

void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsNodeLockModifiedEvent ( vtkMRMLNode node)
protected

◆ OnMRMLMarkupsNodeMarkupAddedEvent()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsNodeMarkupAddedEvent ( vtkMRMLMarkupsNode vtkNotUsedmarkupsNode,
int   vtkNotUsed
)
inlineprotectedvirtual

Subclasses need to react to new markups being added to a markups node or modified.

Definition at line 170 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ OnMRMLMarkupsNodeMarkupRemovedEvent()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsNodeMarkupRemovedEvent ( vtkMRMLMarkupsNode vtkNotUsedmarkupsNode,
int   vtkNotUsed
)
inlineprotectedvirtual

Definition at line 171 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ OnMRMLMarkupsNodeModifiedEvent()

void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsNodeModifiedEvent ( vtkMRMLNode node)
protected

Preset functions for certain events.

◆ OnMRMLMarkupsNodeNthMarkupModifiedEvent()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsNodeNthMarkupModifiedEvent ( vtkMRMLMarkupsNode vtkNotUsednode,
int   vtkNotUsed
)
inlineprotectedvirtual

Definition at line 172 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ OnMRMLMarkupsNodeTransformModifiedEvent()

void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsNodeTransformModifiedEvent ( vtkMRMLNode node)
protected

◆ OnMRMLMarkupsPointModifiedEvent()

void vtkMRMLMarkupsDisplayableManager2D::OnMRMLMarkupsPointModifiedEvent ( vtkMRMLNode node,
int  n 
)
protected

◆ OnMRMLSceneEndClose()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnMRMLSceneEndClose ( )
protectedvirtual

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

◆ OnMRMLSceneNodeAdded()

virtual void vtkMRMLMarkupsDisplayableManager2D::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 vtkMRMLMarkupsDisplayableManager2D::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.

◆ OnMRMLSliceNodeModifiedEvent()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnMRMLSliceNodeModifiedEvent ( )
protectedvirtual

Handler for specific SliceView actions, iterate over the widgets in the helper.

Reimplemented from vtkMRMLAbstractSliceViewDisplayableManager.

◆ OnWidgetCreated()

virtual void vtkMRMLMarkupsDisplayableManager2D::OnWidgetCreated ( vtkAbstractWidget *  widget,
vtkMRMLMarkupsNode node 
)
protectedvirtual

Gets called when widget was created.

Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager2D.

◆ PlaceSeed()

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

Place a seed for widgets.

◆ PrintSelf()

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

◆ ProcessMRMLNodesEvents()

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

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 vtkMRMLMarkupsDisplayableManager2D::PropagateMRMLToWidget ( vtkMRMLMarkupsNode node,
vtkAbstractWidget *  widget 
)
virtual

Propagate properties of MRML node to widget.

Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager2D.

◆ PropagateWidgetToMRML()

virtual void vtkMRMLMarkupsDisplayableManager2D::PropagateWidgetToMRML ( vtkAbstractWidget *  widget,
vtkMRMLMarkupsNode node 
)
virtual

Propagate properties of widget to MRML node.

Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager2D.

◆ RemoveMRMLObservers()

virtual void vtkMRMLMarkupsDisplayableManager2D::RemoveMRMLObservers ( )
protectedvirtual

Remove MRML observers.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ RemoveObserversFromInteractionNode()

void vtkMRMLMarkupsDisplayableManager2D::RemoveObserversFromInteractionNode ( )
protected

◆ RequestRender()

virtual void vtkMRMLMarkupsDisplayableManager2D::RequestRender ( )
protectedvirtual

Wrap the superclass render request in a check for batch processing.

◆ RestrictDisplayCoordinatesToViewport()

bool vtkMRMLMarkupsDisplayableManager2D::RestrictDisplayCoordinatesToViewport ( double *  displayCoordinates)

Check if the displayCoordinates are inside the viewport and if not, correct the displayCoordinates. Coordinates are reset if the normalized viewport coordinates are less than 0.001 or greater than 0.999 and are reset to those values. If the coordinates have been reset, return true, otherwise return false.

◆ SafeDownCast()

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

◆ SetAndObserveNode()

void vtkMRMLMarkupsDisplayableManager2D::SetAndObserveNode ( vtkMRMLMarkupsNode markupsNode)
protected

Observe one node.

◆ SetAndObserveNodes()

void vtkMRMLMarkupsDisplayableManager2D::SetAndObserveNodes ( )
protected

Observe all associated nodes.

◆ SetMRMLSceneInternal()

virtual void vtkMRMLMarkupsDisplayableManager2D::SetMRMLSceneInternal ( vtkMRMLScene newScene)
protectedvirtual

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 vtkMRMLMarkupsDisplayableManager2D::SetParentTransformToWidget ( vtkMRMLMarkupsNode vtkNotUsednode,
vtkAbstractWidget *  vtkNotUsedwidget 
)
inlinevirtual

Set mrml parent transform to widgets.

Definition at line 82 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ SetScaleFactor2D()

virtual void vtkMRMLMarkupsDisplayableManager2D::SetScaleFactor2D ( double  )
virtual

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

◆ UpdateFromMRML()

virtual void vtkMRMLMarkupsDisplayableManager2D::UpdateFromMRML ( )
protectedvirtual

Called from RequestRender method if UpdateFromMRMLRequested is true

See also
RequestRender() SetUpdateFromMRMLRequested()

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ UpdateFromMRMLScene()

virtual void vtkMRMLMarkupsDisplayableManager2D::UpdateFromMRMLScene ( )
protectedvirtual

Called after the corresponding MRML event is triggered, from AbstractDisplayableManager

See also
ProcessMRMLSceneEvents

Reimplemented from vtkMRMLAbstractLogic.

◆ UpdateNthMarkupPositionFromWidget()

virtual bool vtkMRMLMarkupsDisplayableManager2D::UpdateNthMarkupPositionFromWidget ( int   vtkNotUsedn,
vtkMRMLMarkupsNode vtkNotUsedpointsNode,
vtkAbstractWidget *  vtkNotUsedwidget 
)
inlinevirtual

Update a single markup position from the seed widget, implemented by the subclasses, return true if the position changed

Definition at line 113 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ UpdateNthSeedPositionFromMRML()

virtual bool vtkMRMLMarkupsDisplayableManager2D::UpdateNthSeedPositionFromMRML ( int   vtkNotUsedn,
vtkAbstractWidget *  vtkNotUsedwidget,
vtkMRMLMarkupsNode vtkNotUsedmarkupsNode 
)
inlinevirtual

Update a single seed from markup position, implemented by the subclasses, return true if the position changed

Definition at line 106 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ UpdatePosition()

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

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

Definition at line 186 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ UpdateWidgetVisibility()

void vtkMRMLMarkupsDisplayableManager2D::UpdateWidgetVisibility ( vtkMRMLMarkupsNode node)

Hide/Show a widget so that the node's display node visibility setting matches that of the widget

Member Data Documentation

◆ ClickCounter

vtkMRMLMarkupsClickCounter* vtkMRMLMarkupsDisplayableManager2D::ClickCounter
protected

Counter for clicks in Render Window.

Definition at line 183 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ Focus

const char* vtkMRMLMarkupsDisplayableManager2D::Focus
protected

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

Definition at line 235 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ Helper

vtkMRMLMarkupsDisplayableManagerHelper* vtkMRMLMarkupsDisplayableManager2D::Helper
protected

Definition at line 244 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ LastClickWorldCoordinates

double vtkMRMLMarkupsDisplayableManager2D::LastClickWorldCoordinates[4]
protected

Definition at line 248 of file vtkMRMLMarkupsDisplayableManager2D.h.

◆ Updating

int vtkMRMLMarkupsDisplayableManager2D::Updating
protected

Disable processing when updating is in progress.

Definition at line 238 of file vtkMRMLMarkupsDisplayableManager2D.h.


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