Slicer
4.10
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 | |
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 char * | GetName () |
virtual vtkMRMLViewNode * | GetViewNode () |
The MRML View node for this View logic. More... | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
void | SetCameraNode (vtkMRMLCameraNode *newCameraNode) |
virtual void | SetName (const char *) |
Set / Get SliceLogic name. More... | |
void | SetViewNode (vtkMRMLViewNode *newViewNode) |
void | StartCameraNodeInteraction (unsigned int parameters) |
void | StartViewNodeInteraction (unsigned int parameters) |
void | UpdateCameraNode () |
Manage and synchronise the CameraNode. More... | |
void | UpdateViewNode () |
Manage and synchronise the ViewNode. More... | |
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 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 |
char * | Name |
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 |
|
protectedvirtual |
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.
|
protectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
void vtkMRMLViewLogic::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
void vtkMRMLViewLogic::SetCameraNode | ( | vtkMRMLCameraNode * | newCameraNode | ) |
|
protectedvirtual |
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 SliceLogic name.
void vtkMRMLViewLogic::SetViewNode | ( | vtkMRMLViewNode * | newViewNode | ) |
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.
void vtkMRMLViewLogic::UpdateCameraNode | ( | ) |
Manage and synchronise the CameraNode.
|
protectedvirtual |
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 |
void vtkMRMLViewLogic::UpdateViewNode | ( | ) |
Manage and synchronise the ViewNode.
|
protected |
Definition at line 121 of file vtkMRMLViewLogic.h.
|
protected |
Definition at line 119 of file vtkMRMLViewLogic.h.
|
protected |
Definition at line 120 of file vtkMRMLViewLogic.h.