![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Markups/MRMLDM/vtkMRMLMarkupsDisplayableManager.h>
Public Types | |
typedef vtkMRMLAbstractDisplayableManager | Superclass |
![]() | |
typedef vtkMRMLAbstractLogic | Superclass |
![]() | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &closestDistance2) override |
void | ConvertDeviceToXYZ (double x, double y, double xyz[3]) |
vtkMRMLMarkupsNode * | GetActiveMarkupsNodeForPlacement () |
virtual const char * | GetClassName () |
int | GetCurrentInteractionMode () |
bool | GetGrabFocus () override |
Displayable manager can indicate that it would like to get all events (even when mouse pointer is outside the window). | |
vtkMRMLMarkupsDisplayableManagerHelper * | GetHelper () |
vtkSlicerMarkupsInteractionWidget * | GetInteractionWidget (vtkMRMLMarkupsDisplayNode *node) |
Get the interaction widget of a node. | |
bool | GetInteractive () override |
Displayable manager can indicate that the window is in interactive mode (faster updates). | |
int | GetMouseCursor () override |
Displayable manager returns ID of the mouse cursor shape that should be displayed. | |
vtkMRMLSliceNode * | GetMRMLSliceNode () |
Get the sliceNode, if registered. This would mean it is a 2D SliceView displayableManager. | |
vtkSlicerMarkupsWidget * | GetWidget (vtkMRMLMarkupsDisplayNode *node) |
Get the widget of a node. | |
vtkSlicerMarkupsWidget * | GetWidgetForPlacement () |
virtual bool | Is2DDisplayableManager () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
void | SetHasFocus (bool hasFocus, vtkMRMLInteractionEventData *eventData) override |
Set if the widget gets/loses focus (interaction events are processed by this displayable manager). | |
![]() | |
virtual std::string | GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3]) |
vtkMRMLInteractionNode * | GetInteractionNode () |
Convenient method to get the current InteractionNode. | |
vtkRenderWindowInteractor * | GetInteractor () |
Convenient method to get the WindowInteractor associated with the Renderer. | |
virtual vtkMRMLLightBoxRendererManagerProxy * | GetLightBoxRendererManagerProxy () |
vtkRenderer * | GetRenderer () |
Get the default renderer for this displayable manager. | |
vtkRenderer * | GetRenderer (int idx) |
vtkMRMLSelectionNode * | GetSelectionNode () |
Convenient method to get the current SelectionNode. | |
bool | IsCreated () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *) |
void | SetMouseCursor (int cursor) |
![]() | |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. | |
vtkMRMLScene * | GetMRMLScene () const |
Return a reference to the current MRML scene. | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMRMLMarkupsDisplayableManager * | New () |
static vtkMRMLMarkupsDisplayableManager * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractDisplayableManager * | New () |
static vtkMRMLAbstractDisplayableManager * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | AddObserversToInteractionNode () |
Observe the interaction node. | |
void | Create () override |
Initialize the displayable manager. | |
vtkSlicerMarkupsInteractionWidget * | CreateInteractionWidget (vtkMRMLMarkupsDisplayNode *node) |
Create an interaction widget. | |
vtkSlicerMarkupsWidget * | CreateWidget (vtkMRMLMarkupsDisplayNode *node) |
Create a widget. | |
vtkMRMLAbstractWidget * | FindClosestWidget (vtkMRMLInteractionEventData *callData, double &closestDistance2) |
virtual int | GetDisableInteractorStyleEventsProcessing () |
Accessor for internal flag that disables interactor style event processing. | |
virtual bool | IsCorrectDisplayableManager () |
Check if it is the right displayManager. | |
virtual bool | IsManageable (const char *nodeClassName) |
virtual bool | IsManageable (vtkMRMLNode *node) |
void | OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) override |
Called after the corresponding MRML View container was modified. | |
void | OnMRMLSceneEndClose () override |
void | OnMRMLSceneEndImport () override |
void | OnMRMLSceneNodeAdded (vtkMRMLNode *node) override |
void | OnMRMLSceneNodeRemoved (vtkMRMLNode *node) override |
virtual void | OnMRMLViewNodeModifiedEvent (vtkMRMLAbstractViewNode *viewNode) |
Update all widgets in response to view node modification. | |
void | ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) override |
void | RemoveObserversFromInteractionNode () |
virtual void | RequestRender () |
Wrap the superclass render request in a check for batch processing. | |
void | SetMRMLSceneInternal (vtkMRMLScene *newScene) override |
void | UpdateFromMRML () override |
void | UpdateFromMRMLScene () override |
vtkMRMLMarkupsDisplayableManager () | |
~vtkMRMLMarkupsDisplayableManager () override | |
![]() | |
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. | |
void | CreateIfPossible () |
vtkMRMLDisplayableManagerGroup * | GetMRMLDisplayableManagerGroup () |
Get associated DisplayableManager group. | |
vtkMRMLNode * | GetMRMLDisplayableNode () |
Get MRML Displayable Node. | |
vtkCallbackCommand * | GetWidgetsCallbackCommand () |
Get vtkWidget callbackCommand. | |
vtkObserverManager * | GetWidgetsObserverManager () const |
Get widget observerManager. | |
virtual void | OnInteractorEvent (int eventid) |
virtual void | OnInteractorStyleEvent (int eventid) |
virtual void | ProcessWidgetsEvents (vtkObject *caller, unsigned long event, void *callData) |
void | RemoveInteractorObservableEvent (int eventid) |
void | RemoveInteractorStyleObservableEvent (int eventid) |
virtual void | RemoveMRMLObservers () |
Remove MRML observers. | |
void | RequestRender () |
void | SetAndObserveMRMLDisplayableNode (vtkMRMLNode *newMRMLDisplayableNode) |
virtual void | SetMRMLDisplayableManagerGroup (vtkMRMLDisplayableManagerGroup *group) |
virtual void | SetRenderer (vtkRenderer *newRenderer) |
void | SetUpdateFromMRMLRequested (bool requested) |
vtkMRMLAbstractDisplayableManager () | |
~vtkMRMLAbstractDisplayableManager () override | |
![]() | |
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. | |
int | InvokePendingModifiedEvent () |
void | Modified () override |
virtual void | ObserveMRMLScene () |
virtual void | OnMRMLNodeModified (vtkMRMLNode *) |
virtual void | OnMRMLSceneEndBatchProcess () |
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 | |
vtkSmartPointer< vtkMRMLMarkupsDisplayableManagerHelper > | Helper |
vtkSmartPointer< vtkRenderer > | InteractionRenderer |
vtkWeakPointer< vtkMRMLAbstractWidget > | LastActiveWidget |
double | LastClickWorldCoordinates [4] |
Friends | |
class | vtkMRMLMarkupsDisplayableManagerHelper |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLLogicCallback is a static function to relay modified events from the logics. | |
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLNodesCallback is a static function to relay modified events from the nodes. | |
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Definition at line 41 of file vtkMRMLMarkupsDisplayableManager.h.
Definition at line 50 of file vtkMRMLMarkupsDisplayableManager.h.
|
protected |
|
overrideprotected |
|
protected |
Observe the interaction node.
|
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.
void vtkMRMLMarkupsDisplayableManager::ConvertDeviceToXYZ | ( | double | x, |
double | y, | ||
double | xyz[3] ) |
Convert device coordinates (display) to XYZ coordinates (viewport). Parameter xyz is double[3]
|
overrideprotectedvirtual |
Initialize the displayable manager.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
Create an interaction widget.
|
protected |
Create a widget.
|
protected |
vtkMRMLMarkupsNode * vtkMRMLMarkupsDisplayableManager::GetActiveMarkupsNodeForPlacement | ( | ) |
|
virtual |
Reimplemented from vtkMRMLAbstractDisplayableManager.
int vtkMRMLMarkupsDisplayableManager::GetCurrentInteractionMode | ( | ) |
|
protectedvirtual |
Accessor for internal flag that disables interactor style event processing.
|
overridevirtual |
Displayable manager can indicate that it would like to get all events (even when mouse pointer is outside the window).
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
inline |
Definition at line 60 of file vtkMRMLMarkupsDisplayableManager.h.
vtkSlicerMarkupsInteractionWidget * vtkMRMLMarkupsDisplayableManager::GetInteractionWidget | ( | vtkMRMLMarkupsDisplayNode * | node | ) |
Get the interaction widget of a node.
|
overridevirtual |
Displayable manager can indicate that the window is in interactive mode (faster updates).
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
overridevirtual |
Displayable manager returns ID of the mouse cursor shape that should be displayed.
Reimplemented from vtkMRMLAbstractDisplayableManager.
vtkMRMLSliceNode * vtkMRMLMarkupsDisplayableManager::GetMRMLSliceNode | ( | ) |
Get the sliceNode, if registered. This would mean it is a 2D SliceView displayableManager.
vtkSlicerMarkupsWidget * vtkMRMLMarkupsDisplayableManager::GetWidget | ( | vtkMRMLMarkupsDisplayNode * | node | ) |
Get the widget of a node.
vtkSlicerMarkupsWidget * vtkMRMLMarkupsDisplayableManager::GetWidgetForPlacement | ( | ) |
|
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
|
virtual |
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protectedvirtual |
Check if it is the right displayManager.
|
protectedvirtual |
Return true if this displayable manager supports(can manage) that node class, false otherwise. Can be reimplemented to add more conditions.
|
protectedvirtual |
Return true if this displayable manager supports(can manage) that node, false otherwise. Can be reimplemented to add more conditions.
|
static |
|
static |
|
overrideprotectedvirtual |
Called after the corresponding MRML View container was modified.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
overrideprotectedvirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::EndImportEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
Update all widgets in response to view node modification.
|
override |
|
overridevirtual |
Process an interaction event. Returns true if the event should be aborted (not processed any further by other event observers).
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
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.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
protected |
|
protectedvirtual |
Wrap the superclass render request in a check for batch processing.
|
static |
|
overridevirtual |
Set if the widget gets/loses focus (interaction events are processed by this displayable manager).
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
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.
|
overrideprotectedvirtual |
Called from RequestRender method if UpdateFromMRMLRequested is true
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
overrideprotectedvirtual |
Called after the corresponding MRML event is triggered, from AbstractDisplayableManager
Reimplemented from vtkMRMLAbstractLogic.
|
friend |
Definition at line 47 of file vtkMRMLMarkupsDisplayableManager.h.
|
protected |
Definition at line 153 of file vtkMRMLMarkupsDisplayableManager.h.
|
protected |
Definition at line 159 of file vtkMRMLMarkupsDisplayableManager.h.
|
protected |
Definition at line 157 of file vtkMRMLMarkupsDisplayableManager.h.
|
protected |
Definition at line 155 of file vtkMRMLMarkupsDisplayableManager.h.