![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/VolumeRendering/MRMLDM/vtkMRMLVolumeRenderingDisplayableManager.h>
Public Types | |
typedef vtkMRMLAbstractThreeDViewDisplayableManager | Superclass |
![]() | |
typedef vtkMRMLAbstractDisplayableManager | Superclass |
![]() | |
typedef vtkMRMLAbstractLogic | Superclass |
![]() | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
virtual const char * | GetClassName () |
const char * | GetPickedNodeID () override |
Get the MRML ID of the picked node, returns empty string if no pick. | |
vtkVolume * | GetVolumeActor (vtkMRMLVolumeNode *volumeNode) |
vtkVolumeMapper * | GetVolumeMapper (vtkMRMLVolumeNode *volumeNode) |
Utility functions mainly used for testing. | |
vtkMRMLVolumeRenderingWindowLevelWidget * | GetVolumeRenderingWindowLevelWidget () |
Get the volume rendering window level widget. | |
virtual int | IsA (const char *type) |
void | OnMRMLSceneEndBatchProcess () override |
void | OnMRMLSceneEndClose () override |
void | OnMRMLSceneEndImport () override |
void | OnMRMLSceneEndRestore () override |
void | OnMRMLSceneNodeAdded (vtkMRMLNode *node) override |
void | OnMRMLSceneNodeRemoved (vtkMRMLNode *node) override |
void | OnMRMLSceneStartClose () override |
int | Pick (int x, int y) |
int | Pick3D (double ras[3]) override |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | UnobserveMRMLScene () override |
void | UpdateFromMRML () override |
Update actors based on volumes in the scene. | |
![]() | |
vtkMRMLViewNode * | GetMRMLViewNode () |
Get MRML ViewNode. | |
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 vtkMRMLVolumeRenderingDisplayableManager * | New () |
static vtkMRMLVolumeRenderingDisplayableManager * | SafeDownCast (vtkObject *o) |
static int | GetMaximum3DTextureSize () |
static void | SetMaximum3DTextureSize (int size) |
![]() | |
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) |
Static Public Attributes | |
static int | DefaultGPUMemorySize |
Protected Member Functions | |
int | ActiveInteractionModes () override |
bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override |
Check if interaction event can be processed. | |
void | Create () override |
Initialize the displayable manager. | |
void | ObserveGraphicalResourcesCreatedEvent () |
Observe graphical resources created event. | |
void | operator= (const vtkMRMLVolumeRenderingDisplayableManager &) |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
Process interaction event. | |
void | ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) override |
vtkMRMLVolumeRenderingDisplayableManager () | |
vtkMRMLVolumeRenderingDisplayableManager (const vtkMRMLVolumeRenderingDisplayableManager &) | |
~vtkMRMLVolumeRenderingDisplayableManager () override | |
![]() | |
void | OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) override |
virtual void | OnMRMLViewNodeModifiedEvent () |
Could be overloaded in DisplayableManager subclass. | |
virtual void | PassThroughInteractorStyleEvent (int eventid) |
vtkMRMLAbstractThreeDViewDisplayableManager () | |
~vtkMRMLAbstractThreeDViewDisplayableManager () override | |
![]() | |
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) |
void | SetMRMLSceneInternal (vtkMRMLScene *newScene) override |
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 | OnMRMLSceneNew () |
virtual void | OnMRMLSceneStartBatchProcess () |
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 | UpdateFromMRMLScene () |
vtkMRMLAbstractLogic () | |
~vtkMRMLAbstractLogic () override | |
Protected Attributes | |
vtkInternal * | Internal |
vtkSlicerVolumeRenderingLogic * | VolumeRenderingLogic { nullptr } |
Static Protected Attributes | |
static int | Maximum3DTextureSize |
Friends | |
class | vtkInternal |
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 38 of file vtkMRMLVolumeRenderingDisplayableManager.h.
typedef vtkMRMLAbstractThreeDViewDisplayableManager vtkMRMLVolumeRenderingDisplayableManager::Superclass |
Definition at line 42 of file vtkMRMLVolumeRenderingDisplayableManager.h.
|
protected |
|
overrideprotected |
|
protected |
|
overrideprotectedvirtual |
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 markups) 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 from vtkMRMLAbstractDisplayableManager.
|
overrideprotectedvirtual |
Check if interaction event can be processed.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
overrideprotectedvirtual |
Initialize the displayable manager.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
|
static |
Experimental function to adjust the maximum 3D texture size. Along each axis, the volume will be split up so that each partition is not larger than this maximum size. Default is 2048 on macOS (as Apple hardware typically is limited to this maximum texture size) and 4096 on other systems (so that most volumes will not be split up by default).
|
overridevirtual |
Get the MRML ID of the picked node, returns empty string if no pick.
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
vtkVolume * vtkMRMLVolumeRenderingDisplayableManager::GetVolumeActor | ( | vtkMRMLVolumeNode * | volumeNode | ) |
vtkVolumeMapper * vtkMRMLVolumeRenderingDisplayableManager::GetVolumeMapper | ( | vtkMRMLVolumeNode * | volumeNode | ) |
Utility functions mainly used for testing.
vtkMRMLVolumeRenderingWindowLevelWidget * vtkMRMLVolumeRenderingDisplayableManager::GetVolumeRenderingWindowLevelWidget | ( | ) |
Get the volume rendering window level widget.
|
virtual |
Reimplemented from vtkMRMLAbstractThreeDViewDisplayableManager.
|
static |
|
static |
|
protected |
Observe graphical resources created event.
|
overridevirtual |
If vtkMRMLScene::EndBatchProcessEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event Internally calls UpdateFromMRMLScene. Can be reimplemented to change the default behavior.
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
If vtkMRMLScene::EndImportEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
If vtkMRMLScene::EndRestoreEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
If vtkMRMLScene::StartCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
int vtkMRMLVolumeRenderingDisplayableManager::Pick | ( | int | x, |
int | y ) |
Pick volume at display coordinates (x, y)
|
override |
Find display node managed by the displayable manager at a specified world RAS position.
|
override |
|
overrideprotectedvirtual |
Process interaction event.
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.
|
static |
|
static |
|
overridevirtual |
Called anytime a scene is not set to the logic anymore (e.g. a new or no scene is set) Reimplement the method to delete all the scene specific information such as a node IDs, pointers...
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
Update actors based on volumes in the scene.
Reimplemented from vtkMRMLAbstractDisplayableManager.
|
friend |
Definition at line 117 of file vtkMRMLVolumeRenderingDisplayableManager.h.
|
static |
Definition at line 85 of file vtkMRMLVolumeRenderingDisplayableManager.h.
|
protected |
Definition at line 116 of file vtkMRMLVolumeRenderingDisplayableManager.h.
|
staticprotected |
Definition at line 109 of file vtkMRMLVolumeRenderingDisplayableManager.h.
|
protected |
Definition at line 108 of file vtkMRMLVolumeRenderingDisplayableManager.h.