Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Slicer logic class for view manipulation. More...
#include <Libs/MRML/Logic/vtkMRMLViewLogic.h>
Public Types | |
typedef vtkMRMLAbstractLogic | Superclass |
Public Types inherited from vtkMRMLAbstractLogic | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
vtkMRMLViewNode * | AddViewNode (const char *layoutName) |
Convenience function for adding a view node and setting it in this logic. More... | |
void | EndCameraNodeInteraction () |
Indicate an interaction with the slice node has been completed. More... | |
void | EndViewNodeInteraction () |
Indicate an interaction with the view node has been completed. More... | |
virtual vtkMRMLCameraNode * | GetCameraNode () |
The MRML camera node for this View logic. More... | |
virtual const char * | GetClassName () |
virtual const char * | GetName () const |
virtual vtkMRMLViewNode * | GetViewNode () |
The MRML View node for this View logic. More... | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetName (const char *name) |
Set/Get layout name. This is used for finding the camera and view node in the scene. More... | |
void | StartCameraNodeInteraction (unsigned int parameters) |
void | StartViewNodeInteraction (unsigned int parameters) |
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) override |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. More... | |
Static Public Member Functions | |
static vtkMRMLCameraNode * | GetCameraNode (vtkMRMLScene *scene, const char *layoutName) |
static vtkMRMLViewNode * | GetViewNode (vtkMRMLScene *scene, const char *layoutName) |
static int | IsTypeOf (const char *type) |
static vtkMRMLViewLogic * | New () |
The Usual VTK class functions. More... | |
static vtkMRMLViewLogic * | 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 Attributes | |
vtkMRMLCameraNode * | CameraNode |
std::string | Name |
bool | UpdatingMRMLNodes |
vtkMRMLViewNode * | ViewNode |
Additional Inherited Members | |
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) |
Slicer logic class for view manipulation.
This class manages the logic associated with display of view windows (but not the GUI). Features of the class include: – manage the linking of the 3D View linking.
Definition at line 55 of file vtkMRMLViewLogic.h.
Definition at line 60 of file vtkMRMLViewLogic.h.
|
protected |
|
overrideprotected |
vtkMRMLViewNode* vtkMRMLViewLogic::AddViewNode | ( | const char * | layoutName | ) |
Convenience function for adding a view node and setting it in this logic.
void vtkMRMLViewLogic::EndCameraNodeInteraction | ( | ) |
Indicate an interaction with the slice node has been completed.
void vtkMRMLViewLogic::EndViewNodeInteraction | ( | ) |
Indicate an interaction with the view node has been completed.
|
virtual |
The MRML camera node for this View logic.
|
static |
Convenient method to get the camera node from scene and name of the Logic. The name of the Logic is the same of the widget one to which it is associated
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
|
virtual |
|
virtual |
The MRML View node for this View logic.
|
static |
Convenient method to get the view node from scene and name of the Logic. The name of the Logic is the same of the widget one to which it is associated
|
virtual |
Reimplemented from vtkMRMLAbstractLogic.
|
static |
|
static |
The Usual VTK class functions.
|
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.
|
override |
|
static |
|
protected |
|
overrideprotectedvirtual |
Called each time a new scene is set. Can be reimplemented in derivated classes. Doesn't observe the scene by default, that means that UpdateFromMRMLScene() won't be called by default when a scene is imported, closed or restored, only when a new scene is set.
Reimplemented from vtkMRMLAbstractLogic.
|
virtual |
Set/Get layout name. This is used for finding the camera and view node in the scene.
|
protected |
void vtkMRMLViewLogic::StartCameraNodeInteraction | ( | unsigned int | parameters | ) |
Indicate an interaction with the camera node is beginning. The parameters of the camera node being manipulated are passed as a bitmask. See vtkMRMLViewNode::InteractionFlagType.
void vtkMRMLViewLogic::StartViewNodeInteraction | ( | unsigned int | parameters | ) |
Indicate an interaction with the view node is beginning. The parameters of the view node being manipulated are passed as a bitmask. See vtkMRMLViewNode::InteractionFlagType.
|
overrideprotectedvirtual |
Called every time the scene has been significantly changed. If the scene BatchProcessState events are observed (in SetMRMLSceneInternal() ), UpdateFromMRMLScene is called after each batch process (Close, Import, Restore...). It is also being called by default when a new scene is set (SetMRMLScene).
Reimplemented from vtkMRMLAbstractLogic.
|
protected |
|
protected |
Definition at line 120 of file vtkMRMLViewLogic.h.
|
protected |
Definition at line 117 of file vtkMRMLViewLogic.h.
|
protected |
Definition at line 121 of file vtkMRMLViewLogic.h.
|
protected |
Definition at line 119 of file vtkMRMLViewLogic.h.