Slicer
4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Superclass for displayable manager classes. More...
#include <Libs/MRML/DisplayableManager/vtkMRMLAbstractDisplayableManager.h>
Public Types | |
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 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... | |
virtual int | IsA (const char *type) |
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 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 | |
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 | OnInteractorStyleEvent (int eventid) |
virtual void | OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) |
virtual void | ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE |
virtual void | ProcessWidgetsEvents (vtkObject *caller, unsigned long event, void *callData) |
void | RemoveInteractorObservableEvent (int eventid) |
void | RemoveInteractorStyleObservableEvent (int eventid) |
virtual void | RemoveMRMLObservers () |
Remove MRML observers. More... | |
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 | SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE |
virtual void | SetRenderer (vtkRenderer *newRenderer) |
void | SetUpdateFromMRMLRequested (bool requested) |
virtual void | UpdateFromMRML () |
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 | OnMRMLSceneEndClose () |
virtual void | OnMRMLSceneEndImport () |
virtual void | OnMRMLSceneEndRestore () |
virtual void | OnMRMLSceneNew () |
virtual void | OnMRMLSceneNodeAdded (vtkMRMLNode *) |
virtual void | OnMRMLSceneNodeRemoved (vtkMRMLNode *) |
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 () |
virtual void | UpdateFromMRMLScene () |
vtkMRMLAbstractLogic () | |
virtual | ~vtkMRMLAbstractLogic () |
Static Protected Member Functions | |
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) |
Friends | |
class | vtkInternal |
class | vtkMRMLDisplayableManagerGroup |
Access to SetRenderer, SetMRMLDisplayableNode and CreateIfPossible methods. More... | |
Superclass for displayable manager classes.
A displayable manager is responsible for representing MRML display nodes into a renderer (e.g. 2D view renderer). Displayable managers are the interface between MRML display nodes and vtkRenderer/vtkActors. They are responsible for creating and synchronizing vtkActor, vtkMapper and vtkProperties with MRML display nodes.
Definition at line 46 of file vtkMRMLAbstractDisplayableManager.h.
Definition at line 52 of file vtkMRMLAbstractDisplayableManager.h.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
Subclass can overload this method to specify under which InteractionNode modes this Displayable Manager InteractorStyle events. By default events only arrive when in Place mode (good for annotations) but if you want a continuous read out of, for example, slice positions while the mouse moves set this to include Place and ViewTransform
Reimplemented in vtkMRMLModelDisplayableManager, and vtkMRMLVolumeRenderingDisplayableManager.
|
protected |
Usually used inside AdditionalInitializeStep() Allows to add observer to the current interactor that will call the virtual method OnInteractorEvent accordingly.
|
protected |
Usually used inside AdditionalInitializeStep() Allows to add observer to the current interactor style that will call the virtual method OnInteractorStyleEvent accordingly.
|
inlineprotectedvirtual |
Sub-class could overload that function and perform additional initialization steps
Reimplemented in vtkMRMLModelDisplayableManager, vtkMRMLCameraDisplayableManager, vtkMRMLCrosshairDisplayableManager, vtkMRMLViewDisplayableManager, and vtkMRMLCrosshairDisplayableManager3D.
Definition at line 112 of file vtkMRMLAbstractDisplayableManager.h.
|
protected |
Allow to specify additional events that the DisplayableNode will observe.
|
protectedvirtual |
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.
Reimplemented in vtkMRMLAnnotationDisplayableManager, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLRulerDisplayableManager, vtkMRMLCameraDisplayableManager, vtkMRMLViewDisplayableManager, vtkMRMLVolumeGlyphSliceDisplayableManager, vtkMRMLCrosshairDisplayableManager, vtkMRMLScriptedDisplayableManager, vtkMRMLOrientationMarkerDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, and vtkMRMLCrosshairDisplayableManager3D.
|
protected |
Invoke Create() and set Created flag to True A no-op if IsCreated() return True
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
Reimplemented in vtkMRMLModelDisplayableManager, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager2D, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLAbstractSliceViewDisplayableManager, vtkMRMLViewDisplayableManager, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLAbstractThreeDViewDisplayableManager, vtkMRMLModelSliceDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLCrosshairDisplayableManager, vtkMRMLVolumeGlyphSliceDisplayableManager, vtkMRMLAnnotationRulerDisplayableManager, vtkMRMLMarkupsFiducialDisplayableManager2D, vtkMRMLMarkupsFiducialDisplayableManager3D, vtkMRMLCameraDisplayableManager, vtkMRMLOrientationMarkerDisplayableManager, vtkMRMLRulerDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLAnnotationBidimensionalDisplayableManager, vtkMRMLAnnotationFiducialDisplayableManager, vtkMRMLAnnotationTextDisplayableManager, vtkMRMLAnnotationAngleDisplayableManager, vtkMRMLAnnotationROIDisplayableManager, vtkMRMLAnnotationSplineDisplayableManager, vtkMRMLAnnotationStickyDisplayableManager, vtkMRMLCrosshairDisplayableManager3D, and vtkMRMLScriptedDisplayableManager.
|
inlinevirtual |
Assemble and return info string to display in Data probe for a given viewer XYZ position.
Definition at line 90 of file vtkMRMLAbstractDisplayableManager.h.
vtkMRMLInteractionNode* vtkMRMLAbstractDisplayableManager::GetInteractionNode | ( | ) |
Convenient method to get the current InteractionNode.
vtkRenderWindowInteractor* vtkMRMLAbstractDisplayableManager::GetInteractor | ( | ) |
Convenient method to get the WindowInteractor associated with the Renderer.
|
protected |
|
protected |
|
virtual |
Get the LightBoxRendererManagerProxy if one has been provided
|
protected |
Get associated DisplayableManager group.
|
protected |
Get MRML Displayable Node.
vtkRenderer* vtkMRMLAbstractDisplayableManager::GetRenderer | ( | ) |
Get the default renderer for this displayable manager.
vtkRenderer* vtkMRMLAbstractDisplayableManager::GetRenderer | ( | int | idx | ) |
Get the renderer for the Nth lightbox pane. This method uses the LightBoxRendererManagerProxy if one has been configured for the DisplayableManager. If no LightBoxRendererManagerProxy has been set, this method returns the default renderer by deferring to GetRenderer(),
vtkMRMLSelectionNode* vtkMRMLAbstractDisplayableManager::GetSelectionNode | ( | ) |
Convenient method to get the current SelectionNode.
|
protected |
Get vtkWidget callbackCommand.
|
protected |
Get widget observerManager.
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
Reimplemented in vtkMRMLModelDisplayableManager, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager2D, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLAbstractSliceViewDisplayableManager, vtkMRMLViewDisplayableManager, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLAbstractThreeDViewDisplayableManager, vtkMRMLModelSliceDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLCrosshairDisplayableManager, vtkMRMLVolumeGlyphSliceDisplayableManager, vtkMRMLAnnotationRulerDisplayableManager, vtkMRMLMarkupsFiducialDisplayableManager2D, vtkMRMLMarkupsFiducialDisplayableManager3D, vtkMRMLCameraDisplayableManager, vtkMRMLOrientationMarkerDisplayableManager, vtkMRMLRulerDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLAnnotationBidimensionalDisplayableManager, vtkMRMLAnnotationFiducialDisplayableManager, vtkMRMLAnnotationTextDisplayableManager, vtkMRMLAnnotationAngleDisplayableManager, vtkMRMLAnnotationROIDisplayableManager, vtkMRMLAnnotationSplineDisplayableManager, vtkMRMLAnnotationStickyDisplayableManager, vtkMRMLCrosshairDisplayableManager3D, and vtkMRMLScriptedDisplayableManager.
bool vtkMRMLAbstractDisplayableManager::IsCreated | ( | ) |
Return True if Create() method has been invoked
|
static |
|
static |
|
protectedvirtual |
Called after interactor event specified using AddInteractorObservableEvent are invoked
|
protectedvirtual |
Called after interactor style event specified using AddInteractorStyleObservableEvent are invoked.
Reimplemented in vtkMRMLMarkupsDisplayableManager2D, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLModelDisplayableManager, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLMarkupsFiducialDisplayableManager2D, vtkMRMLMarkupsFiducialDisplayableManager3D, vtkMRMLAnnotationFiducialDisplayableManager, and vtkMRMLScriptedDisplayableManager.
|
protectedvirtual |
ProcessMRMLNodesEvents calls OnMRMLDisplayableNodeModifiedEvent when the displayable node (e.g. vtkMRMLSliceNode, vtkMRMLViewNode) is Modified. Could be overloaded in DisplayableManager subclass.
Reimplemented in vtkMRMLMarkupsDisplayableManager2D, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLAbstractSliceViewDisplayableManager, vtkMRMLRulerDisplayableManager, vtkMRMLViewDisplayableManager, vtkMRMLAbstractThreeDViewDisplayableManager, vtkMRMLScriptedDisplayableManager, and vtkMRMLOrientationMarkerDisplayableManager.
void vtkMRMLAbstractDisplayableManager::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 vtkMRMLAbstractLogic.
Reimplemented in vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager2D, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLCameraDisplayableManager, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLViewDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLVolumeGlyphSliceDisplayableManager, and vtkMRMLScriptedDisplayableManager.
|
protectedvirtual |
Receives all the events fired by any graphical object interacted by the user (typically vtk widgets). A typical use case is to listen to mrml nodes (using GetMRMLNodesCallbackCommand()) and update the graphical objects like mappers, actors, widgets... in ProcessMRMLNodesEvent, and to listen to user interactions (using (using GetWidgetsCallbackCommand()) like widgets and update the mrml nodes in ProcessWidgetsEvents. To listen to a widget (or any vtk Object), you can add an observer using GetWidgetsCallbackCommand(). ProcessWidgetsEvents doesn't do anything by default, you need to reimplement it.
Reimplemented in vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLViewDisplayableManager, and vtkMRMLThreeDReformatDisplayableManager.
|
protected |
|
protected |
|
protectedvirtual |
Remove MRML observers.
Reimplemented in vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager2D, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLScriptedDisplayableManager, and vtkMRMLCameraDisplayableManager.
|
protected |
Invoke vtkCommand::UpdateEvent and then call vtkMRMLThreeDViewDisplayableManagerFactory::RequestRender() which will also invoke vtkCommand::UpdateEvent. An observer can then listen for that event and "compress" the different Render requests to efficiently call RenderWindow->Render()
|
static |
|
protected |
Set MRML DisplayableNode Called by vtkMRMLDisplayableManagerFactory
|
protected |
Set the Abort flag on the Interactor event callback.
|
protected |
Set the Abort flag on the InteractorStyle event callback.
|
virtual |
Set the LightBoxRendererManager proxy. This proxy provides a method GetRenderer(int) that returns the renderer for the Nth lightbox pane. The DisplayableManagers use this method to map coordinates to the proper lightbox pane, e.g. in placing crosshairs or annotations in the proper renderer.
|
protectedvirtual |
|
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 vtkMRMLAbstractLogic.
Reimplemented in vtkMRMLMarkupsDisplayableManager2D, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager3D, and vtkMRMLScriptedDisplayableManager.
|
protectedvirtual |
|
protected |
Specify if UodateFromMRML() should be called
|
inlineprotectedvirtual |
Called from RequestRender method if UpdateFromMRMLRequested is true
Reimplemented in vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager2D, vtkMRMLAnnotationDisplayableManager, vtkMRMLMarkupsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLVolumeRenderingDisplayableManager, and vtkMRMLScriptedDisplayableManager.
Definition at line 192 of file vtkMRMLAbstractDisplayableManager.h.
|
staticprotected |
WidgetsCallback is a static function to relay modified events from the vtk widgets.
|
friend |
Definition at line 261 of file vtkMRMLAbstractDisplayableManager.h.
|
friend |
Access to SetRenderer, SetMRMLDisplayableNode and CreateIfPossible methods.
Definition at line 102 of file vtkMRMLAbstractDisplayableManager.h.