Slicer
4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Markups/MRMLDM/vtkMRMLMarkupsDisplayableManager3D.h>
Public Types | |
typedef vtkMRMLAbstractThreeDViewDisplayableManager | Superclass |
Public Types inherited from vtkMRMLAbstractThreeDViewDisplayableManager | |
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) |
virtual vtkMRMLMarkupsDisplayableManagerHelper * | GetHelper () |
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) |
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... | |
virtual void | SetParentTransformToWidget (vtkMRMLMarkupsNode *vtkNotUsed(node), vtkAbstractWidget *vtkNotUsed(widget)) |
Set mrml parent transform to widgets. More... | |
void | UpdateWidgetVisibility (vtkMRMLMarkupsNode *node) |
Public Member Functions inherited from vtkMRMLAbstractThreeDViewDisplayableManager | |
vtkMRMLViewNode * | GetMRMLViewNode () |
Get MRML ViewNode. More... | |
virtual const char * | GetPickedNodeID () |
Get the MRML ID of the picked node, returns empty string if no pick. More... | |
virtual int | Pick3D (double vtkNotUsed(ras)[3]) |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
Public Member Functions inherited from vtkMRMLAbstractDisplayableManager | |
virtual std::string | GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3]) |
vtkMRMLInteractionNode * | GetInteractionNode () |
Convenient method to get the current InteractionNode. More... | |
vtkRenderWindowInteractor * | GetInteractor () |
Convenient method to get the WindowInteractor associated with the Renderer. More... | |
virtual vtkMRMLLightBoxRendererManagerProxy * | GetLightBoxRendererManagerProxy () |
vtkRenderer * | GetRenderer () |
Get the default renderer for this displayable manager. More... | |
vtkRenderer * | GetRenderer (int idx) |
vtkMRMLSelectionNode * | GetSelectionNode () |
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 vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () 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 vtkMRMLMarkupsDisplayableManager3D * | New () |
static vtkMRMLMarkupsDisplayableManager3D * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractThreeDViewDisplayableManager | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractThreeDViewDisplayableManager * | New () |
static vtkMRMLAbstractThreeDViewDisplayableManager * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractDisplayableManager | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractDisplayableManager * | New () |
static vtkMRMLAbstractDisplayableManager * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractLogic | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (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 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)) |
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 | 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 bool | UpdateNthSeedPositionFromMRML (int vtkNotUsed(n), vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLMarkupsNode *vtkNotUsed(markupsNode)) |
virtual void | UpdatePosition (vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLNode *vtkNotUsed(node)) |
Update just the position for the widget, implemented by subclasses. More... | |
vtkMRMLMarkupsDisplayableManager3D () | |
virtual | ~vtkMRMLMarkupsDisplayableManager3D () |
Protected Member Functions inherited from vtkMRMLAbstractThreeDViewDisplayableManager | |
virtual void | OnMRMLViewNodeModifiedEvent () |
Could be overloaded in DisplayableManager subclass. More... | |
virtual void | PassThroughInteractorStyleEvent (int eventid) |
vtkMRMLAbstractThreeDViewDisplayableManager () | |
virtual | ~vtkMRMLAbstractThreeDViewDisplayableManager () |
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 () |
vtkMRMLDisplayableManagerGroup * | GetMRMLDisplayableManagerGroup () |
Get associated DisplayableManager group. More... | |
vtkMRMLNode * | GetMRMLDisplayableNode () |
Get MRML Displayable Node. More... | |
vtkCallbackCommand * | GetWidgetsCallbackCommand () |
Get vtkWidget callbackCommand. More... | |
vtkObserverManager * | GetWidgetsObserverManager () 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 () |
vtkObserverManager * | GetMRMLLogicsObserverManager () const |
vtkCallbackCommand * | GetMRMLNodesCallbackCommand () |
vtkObserverManager * | GetMRMLNodesObserverManager () const |
vtkCallbackCommand * | GetMRMLSceneCallbackCommand () |
vtkObserverManager * | GetMRMLSceneObserverManager () 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 | |
vtkMRMLMarkupsClickCounter * | ClickCounter |
Counter for clicks in Render Window. More... | |
const char * | Focus |
Focus of this displayableManager is set to a specific markups type when inherited. More... | |
vtkMRMLMarkupsDisplayableManagerHelper * | Helper |
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) |
Definition at line 41 of file vtkMRMLMarkupsDisplayableManager3D.h.
Definition at line 47 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
|
protectedvirtual |
|
protected |
Observe the interaction node.
vtkAbstractWidget* vtkMRMLMarkupsDisplayableManager3D::AddWidget | ( | vtkMRMLMarkupsNode * | markupsNode | ) |
Create a new widget for this markups node and save it to the helper. Returns widget on success, null on failure.
|
protectedvirtual |
Create a widget.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protectedvirtual |
Accessor for internal flag that disables interactor style event processing.
bool vtkMRMLMarkupsDisplayableManager3D::GetDisplayCoordinatesChanged | ( | double * | displayCoordinates1, |
double * | displayCoordinates2 | ||
) |
Check if there are real changes between two sets of displayCoordinates.
|
protected |
Convert display to viewport coordinates.
|
protected |
void vtkMRMLMarkupsDisplayableManager3D::GetDisplayToWorldCoordinates | ( | double | x, |
double | y, | ||
double * | worldCoordinates | ||
) |
Convert display to world coordinates.
void vtkMRMLMarkupsDisplayableManager3D::GetDisplayToWorldCoordinates | ( | double * | displayCoordinates, |
double * | worldCoordinates | ||
) |
|
virtual |
|
protected |
Return the placed seeds.
|
protected |
Get the widget of a node.
bool vtkMRMLMarkupsDisplayableManager3D::GetWorldCoordinatesChanged | ( | double * | worldCoordinates1, |
double * | worldCoordinates2 | ||
) |
Check if there are real changes between two sets of worldCoordinates.
|
protected |
Convert display to world coordinates.
|
protected |
|
virtual |
Convert world coordinates to local using mrml parent transform.
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protectedvirtual |
Check if it is the right displayManager.
|
protectedvirtual |
Return true if this displayable manager supports(can manage) that node, false otherwise. Can be reimplemented to add more conditions.
|
protectedvirtual |
Return true if this displayable manager supports(can manage) that node class, false otherwise. Can be reimplemented to add more conditions.
|
static |
|
static |
|
protectedvirtual |
Callback for click in RenderWindow.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protected |
|
protectedvirtual |
Respond to interactor style events.
Reimplemented from vtkMRMLAbstractDisplayableManager.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protectedvirtual |
Called after the corresponding MRML View container was modified.
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
|
protected |
|
protected |
|
inlineprotectedvirtual |
Subclasses need to react to new markups being added to or removed from a markups node or modified
Definition at line 131 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
inlineprotectedvirtual |
Definition at line 132 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
Preset functions for certain events.
|
inlineprotectedvirtual |
Definition at line 133 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
|
protected |
|
protectedvirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
Gets called when widget was created.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protectedvirtual |
Place a seed for widgets.
void vtkMRMLMarkupsDisplayableManager3D::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
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.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
virtual |
Propagate properties of MRML node to widget.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
virtual |
Propagate properties of widget to MRML node.
Reimplemented in vtkMRMLMarkupsFiducialDisplayableManager3D.
|
protectedvirtual |
Remove MRML observers.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
|
protectedvirtual |
Wrap the superclass render request in a check for batch processing.
|
static |
|
protected |
Observe one node.
|
protected |
Observe all associated nodes.
|
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.
|
inlinevirtual |
Set mrml parent transform to widgets.
Definition at line 74 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protectedvirtual |
Called from RequestRender method if UpdateFromMRMLRequested is true
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protectedvirtual |
Called after the corresponding MRML event is triggered, from AbstractDisplayableManager
Reimplemented from vtkMRMLAbstractLogic.
|
inlineprotectedvirtual |
Update a single seed from markup position, implemented by the subclasses, return true if the position changed
Definition at line 148 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
inlineprotectedvirtual |
Update just the position for the widget, implemented by subclasses.
Definition at line 153 of file vtkMRMLMarkupsDisplayableManager3D.h.
void vtkMRMLMarkupsDisplayableManager3D::UpdateWidgetVisibility | ( | vtkMRMLMarkupsNode * | node | ) |
Hide/Show a widget so that the node's display node visibility setting matches that of the widget
|
protected |
Counter for clicks in Render Window.
Definition at line 144 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
Focus of this displayableManager is set to a specific markups type when inherited.
Definition at line 202 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
Definition at line 211 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
Definition at line 215 of file vtkMRMLMarkupsDisplayableManager3D.h.
|
protected |
Disable processing when updating is in progress.
Definition at line 205 of file vtkMRMLMarkupsDisplayableManager3D.h.