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

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

Inheritance diagram for vtkMRMLSliceLinkLogic:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLSliceLinkLogic:
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

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
- 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 int IsTypeOf (const char *type)
 
static vtkMRMLSliceLinkLogicNew ()
 The Usual VTK class functions. More...
 
static vtkMRMLSliceLinkLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

void BroadcastingEventsOff ()
 
void BroadcastingEventsOn ()
 
void BroadcastSliceCompositeNodeEvent (vtkMRMLSliceCompositeNode *compositeNode)
 Broadcast a slice composite node to other slice composite nodes. More...
 
void BroadcastSliceNodeEvent (vtkMRMLSliceNode *sliceNode)
 Broadcast a slice node to other slice nodes. More...
 
int GetBroadcastingEvents ()
 
bool IsOrientationMatching (vtkMRMLSliceNode *sliceNode1, vtkMRMLSliceNode *sliceNode2, double comparisonTolerance=0.001)
 Returns true if orientation of the slices match. Slice position and scaling is ignored. More...
 
virtual void OnMRMLNodeModified (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneEndBatchProcess () VTK_OVERRIDE
 
virtual void OnMRMLSceneEndImport () VTK_OVERRIDE
 
virtual void OnMRMLSceneEndRestore () VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneStartBatchProcess () VTK_OVERRIDE
 
virtual void OnMRMLSceneStartImport () VTK_OVERRIDE
 
virtual void OnMRMLSceneStartRestore () VTK_OVERRIDE
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 
 vtkMRMLSliceLinkLogic ()
 
virtual ~vtkMRMLSliceLinkLogic ()
 
- 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 OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneStartClose ()
 
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 ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

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

Definition at line 39 of file vtkMRMLSliceLinkLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 45 of file vtkMRMLSliceLinkLogic.h.

Constructor & Destructor Documentation

◆ vtkMRMLSliceLinkLogic()

vtkMRMLSliceLinkLogic::vtkMRMLSliceLinkLogic ( )
protected

◆ ~vtkMRMLSliceLinkLogic()

virtual vtkMRMLSliceLinkLogic::~vtkMRMLSliceLinkLogic ( )
protectedvirtual

Member Function Documentation

◆ BroadcastingEventsOff()

void vtkMRMLSliceLinkLogic::BroadcastingEventsOff ( )
protected

◆ BroadcastingEventsOn()

void vtkMRMLSliceLinkLogic::BroadcastingEventsOn ( )
protected

◆ BroadcastSliceCompositeNodeEvent()

void vtkMRMLSliceLinkLogic::BroadcastSliceCompositeNodeEvent ( vtkMRMLSliceCompositeNode compositeNode)
protected

Broadcast a slice composite node to other slice composite nodes.

◆ BroadcastSliceNodeEvent()

void vtkMRMLSliceLinkLogic::BroadcastSliceNodeEvent ( vtkMRMLSliceNode sliceNode)
protected

Broadcast a slice node to other slice nodes.

◆ GetBroadcastingEvents()

int vtkMRMLSliceLinkLogic::GetBroadcastingEvents ( )
protected

◆ GetClassName()

virtual const char* vtkMRMLSliceLinkLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ IsA()

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

Reimplemented from vtkMRMLAbstractLogic.

◆ IsOrientationMatching()

bool vtkMRMLSliceLinkLogic::IsOrientationMatching ( vtkMRMLSliceNode sliceNode1,
vtkMRMLSliceNode sliceNode2,
double  comparisonTolerance = 0.001 
)
protected

Returns true if orientation of the slices match. Slice position and scaling is ignored.

◆ IsTypeOf()

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

◆ New()

static vtkMRMLSliceLinkLogic* vtkMRMLSliceLinkLogic::New ( )
static

The Usual VTK class functions.

◆ OnMRMLNodeModified()

virtual void vtkMRMLSliceLinkLogic::OnMRMLNodeModified ( vtkMRMLNode )
protectedvirtual

Called after the corresponding MRML event is triggered.

See also
ProcessMRMLNodesEvents

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneEndBatchProcess()

virtual void vtkMRMLSliceLinkLogic::OnMRMLSceneEndBatchProcess ( )
protectedvirtual

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.

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartBatchProcess

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneEndImport()

virtual void vtkMRMLSliceLinkLogic::OnMRMLSceneEndImport ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartImport, OnMRMLSceneNew

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneEndRestore()

virtual void vtkMRMLSliceLinkLogic::OnMRMLSceneEndRestore ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartRestore

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeAdded()

virtual void vtkMRMLSliceLinkLogic::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 vtkMRMLSliceLinkLogic::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.

◆ OnMRMLSceneStartBatchProcess()

virtual void vtkMRMLSliceLinkLogic::OnMRMLSceneStartBatchProcess ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneEndBatchProcess

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneStartImport()

virtual void vtkMRMLSliceLinkLogic::OnMRMLSceneStartImport ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneEndImport, OnMRMLSceneNew

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneStartRestore()

virtual void vtkMRMLSliceLinkLogic::OnMRMLSceneStartRestore ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneEndRestore

Reimplemented from vtkMRMLAbstractLogic.

◆ PrintSelf()

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

◆ SafeDownCast()

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

◆ SetMRMLSceneInternal()

virtual void vtkMRMLSliceLinkLogic::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.


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