Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMRMLViewLogic Class Reference

Slicer logic class for view manipulation. More...

#include <Libs/MRML/Logic/vtkMRMLViewLogic.h>

Inheritance diagram for vtkMRMLViewLogic:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLViewLogic:
Collaboration graph
[legend]

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 vtkMRMLCameraNodeGetCameraNode ()
 The MRML camera node for this View logic. More...
 
virtual const char * GetClassName ()
 
virtual char * GetName ()
 
virtual vtkMRMLViewNodeGetViewNode ()
 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 vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state. More...
 
vtkMRMLSceneGetMRMLScene () 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 vtkMRMLCameraNodeGetCameraNode (vtkMRMLScene *scene, const char *layoutName)
 
static vtkMRMLViewNodeGetViewNode (vtkMRMLScene *scene, const char *layoutName)
 
static int IsTypeOf (const char *type)
 
static vtkMRMLViewLogicNew ()
 The Usual VTK class functions. More...
 
static vtkMRMLViewLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 
virtual void UpdateFromMRMLScene () VTK_OVERRIDE
 
void UpdateMRMLNodes ()
 
 vtkMRMLViewLogic ()
 
virtual ~vtkMRMLViewLogic ()
 
- 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 ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () 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 OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLNodesEvents (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 ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

Protected Attributes

vtkMRMLCameraNodeCameraNode
 
char * Name
 
vtkMRMLViewNodeViewNode
 

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)
 

Detailed Description

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.

Member Typedef Documentation

◆ Superclass

Definition at line 60 of file vtkMRMLViewLogic.h.

Constructor & Destructor Documentation

◆ vtkMRMLViewLogic()

vtkMRMLViewLogic::vtkMRMLViewLogic ( )
protected

◆ ~vtkMRMLViewLogic()

virtual vtkMRMLViewLogic::~vtkMRMLViewLogic ( )
protectedvirtual

Member Function Documentation

◆ EndCameraNodeInteraction()

void vtkMRMLViewLogic::EndCameraNodeInteraction ( )

Indicate an interaction with the slice node has been completed.

◆ EndViewNodeInteraction()

void vtkMRMLViewLogic::EndViewNodeInteraction ( )

Indicate an interaction with the view node has been completed.

◆ GetCameraNode() [1/2]

virtual vtkMRMLCameraNode* vtkMRMLViewLogic::GetCameraNode ( )
virtual

The MRML camera node for this View logic.

◆ GetCameraNode() [2/2]

static vtkMRMLCameraNode* vtkMRMLViewLogic::GetCameraNode ( vtkMRMLScene scene,
const char *  layoutName 
)
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

◆ GetClassName()

virtual const char* vtkMRMLViewLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ GetName()

virtual char* vtkMRMLViewLogic::GetName ( )
virtual

◆ GetViewNode() [1/2]

virtual vtkMRMLViewNode* vtkMRMLViewLogic::GetViewNode ( )
virtual

The MRML View node for this View logic.

◆ GetViewNode() [2/2]

static vtkMRMLViewNode* vtkMRMLViewLogic::GetViewNode ( vtkMRMLScene scene,
const char *  layoutName 
)
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

◆ IsA()

virtual int vtkMRMLViewLogic::IsA ( const char *  type)
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ IsTypeOf()

static int vtkMRMLViewLogic::IsTypeOf ( const char *  type)
static

◆ New()

static vtkMRMLViewLogic* vtkMRMLViewLogic::New ( )
static

The Usual VTK class functions.

◆ OnMRMLSceneNodeAdded()

virtual void vtkMRMLViewLogic::OnMRMLSceneNodeAdded ( vtkMRMLNode )
protectedvirtual

If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneNodeRemoved, vtkMRMLScene::NodeAboutToBeAdded

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeRemoved()

virtual void vtkMRMLViewLogic::OnMRMLSceneNodeRemoved ( vtkMRMLNode )
protectedvirtual

If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneNodeAdded, vtkMRMLScene::NodeAboutToBeRemoved

Reimplemented from vtkMRMLAbstractLogic.

◆ PrintSelf()

void vtkMRMLViewLogic::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ SafeDownCast()

static vtkMRMLViewLogic* vtkMRMLViewLogic::SafeDownCast ( vtkObject *  o)
static

◆ SetCameraNode()

void vtkMRMLViewLogic::SetCameraNode ( vtkMRMLCameraNode newCameraNode)

◆ SetMRMLSceneInternal()

virtual void vtkMRMLViewLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)
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.

See also
SetAndObserveMRMLSceneInternal() SetAndObserveMRMLSceneEventsInternal()
UpdateFromMRMLScene()

Reimplemented from vtkMRMLAbstractLogic.

◆ SetName()

virtual void vtkMRMLViewLogic::SetName ( const char *  )
virtual

Set / Get SliceLogic name.

◆ SetViewNode()

void vtkMRMLViewLogic::SetViewNode ( vtkMRMLViewNode newViewNode)

◆ StartCameraNodeInteraction()

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.

◆ StartViewNodeInteraction()

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.

◆ UpdateCameraNode()

void vtkMRMLViewLogic::UpdateCameraNode ( )

Manage and synchronise the CameraNode.

◆ UpdateFromMRMLScene()

virtual void vtkMRMLViewLogic::UpdateFromMRMLScene ( )
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).

See also
SetMRMLSceneInternal, UnobserveMRMLScene, ObserveMRMLScene

Reimplemented from vtkMRMLAbstractLogic.

◆ UpdateMRMLNodes()

void vtkMRMLViewLogic::UpdateMRMLNodes ( )
protected

◆ UpdateViewNode()

void vtkMRMLViewLogic::UpdateViewNode ( )

Manage and synchronise the ViewNode.

Member Data Documentation

◆ CameraNode

vtkMRMLCameraNode* vtkMRMLViewLogic::CameraNode
protected

Definition at line 121 of file vtkMRMLViewLogic.h.

◆ Name

char* vtkMRMLViewLogic::Name
protected

Definition at line 119 of file vtkMRMLViewLogic.h.

◆ ViewNode

vtkMRMLViewNode* vtkMRMLViewLogic::ViewNode
protected

Definition at line 120 of file vtkMRMLViewLogic.h.


The documentation for this class was generated from the following file: