![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/DisplayableManager/vtkMRMLCameraDisplayableManager.h>
Public Types | |
enum | { ActiveCameraChangedEvent = 30000 } |
Events. More... | |
typedef vtkMRMLAbstractThreeDViewDisplayableManager | Superclass |
![]() | |
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 |
vtkMRMLCameraNode * | GetCameraNode () |
vtkMRMLCameraWidget * | GetCameraWidget () |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
void | RemoveMRMLObservers () override |
Remove MRML observers. | |
void | UpdateCameraNode () |
![]() | |
vtkMRMLViewNode * | GetMRMLViewNode () |
Get MRML ViewNode. | |
virtual const char * | GetPickedNodeID () |
Get the MRML ID of the picked node, returns empty string if no pick. | |
virtual int | Pick3D (double vtkNotUsed(ras)[3]) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
![]() | |
virtual std::string | GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3]) |
virtual bool | GetGrabFocus () |
Displayable manager can indicate that it would like to get all events (even when mouse pointer is outside the window). | |
vtkMRMLInteractionNode * | GetInteractionNode () |
Convenient method to get the current InteractionNode. | |
virtual bool | GetInteractive () |
Displayable manager can indicate that the window is in interactive mode (faster updates). | |
vtkRenderWindowInteractor * | GetInteractor () |
Convenient method to get the WindowInteractor associated with the Renderer. | |
virtual vtkMRMLLightBoxRendererManagerProxy * | GetLightBoxRendererManagerProxy () |
virtual int | GetMouseCursor () |
Displayable manager returns ID of the mouse cursor shape that should be displayed. | |
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 | SetHasFocus (bool hasFocus, vtkMRMLInteractionEventData *eventData) |
Set if the widget gets/loses focus (interaction events are processed by this displayable manager). | |
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 vtkMRMLCameraDisplayableManager * | New () |
static vtkMRMLCameraDisplayableManager * | SafeDownCast (vtkObject *o) |
![]() | |
static double | GetViewScaleFactorAtPosition (vtkRenderer *renderer, double positionWorld[3], vtkMRMLInteractionEventData *interactionEventData=nullptr) |
Get the view scale factor at a given position in world coordinates for a 3D view renderer. | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractThreeDViewDisplayableManager * | New () |
static vtkMRMLAbstractThreeDViewDisplayableManager * | 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) |
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 33 of file vtkMRMLCameraDisplayableManager.h.
Definition at line 39 of file vtkMRMLCameraDisplayableManager.h.
anonymous enum |
Events.
Enumerator | |
---|---|
ActiveCameraChangedEvent |
Definition at line 49 of file vtkMRMLCameraDisplayableManager.h.
|
protected |
|
overrideprotected |
|
overrideprotectedvirtual |
Sub-class could overload that function and perform additional initialization steps
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
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.
|
overrideprotectedvirtual |
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 from vtkMRMLAbstractDisplayableManager.
vtkMRMLCameraNode * vtkMRMLCameraDisplayableManager::GetCameraNode | ( | ) |
vtkMRMLCameraWidget * vtkMRMLCameraDisplayableManager::GetCameraWidget | ( | ) |
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
|
static |
|
static |
|
overrideprotectedvirtual |
Called after the corresponding MRML event is triggered.
Reimplemented from vtkMRMLAbstractLogic.
|
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::EndRestoreEvent 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.
|
overrideprotectedvirtual |
If vtkMRMLScene::StartImportEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
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.
|
overridevirtual |
Remove MRML observers.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
static |
|
protected |
|
protected |
void vtkMRMLCameraDisplayableManager::UpdateCameraNode | ( | ) |