Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::SlicesCoordinator Class Reference

Coordinates a list of SliceNavigationControllers. More...

#include <mitkSlicesCoordinator.h>

Inheritance diagram for mitk::SlicesCoordinator:
Collaboration diagram for mitk::SlicesCoordinator:

Public Types

typedef SlicesCoordinator Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::vector< SliceNavigationController * > SNCVector
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
void AddSliceController (SliceNavigationController *snc)
 
void RemoveSliceController (SliceNavigationController *snc)
 
virtual void SetLinkPlanes (bool _arg)
 
virtual bool GetLinkPlanes ()
 
virtual void LinkPlanesOn ()
 
virtual void LinkPlanesOff ()
 
void ResetMouseCursor ()
 Resets the mouse cursor (if modified by the SlicesCoordinator) to its original state. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 

Protected Member Functions

 SlicesCoordinator ()
 Default Constructor. More...
 
virtual ~SlicesCoordinator ()
 
void SetMouseCursor (const char *xpm[], int hotspotX, int hotspotY)
 Sets the specified mouse cursor. More...
 
virtual void OnSliceControllerAdded (SliceNavigationController *snc)
 
virtual void OnSliceControllerRemoved (SliceNavigationController *snc)
 

Protected Attributes

SNCVector m_SliceNavigationControllers
 
bool m_LinkPlanes
 
bool m_MouseCursorSet
 

Detailed Description

Coordinates a list of SliceNavigationControllers.

Each SliceNavigationController can select one slice from a TimeGeometry. This class (SlicesCoordinator) coordinates several SliceNavigationControllers to facilitate e.g. rotation of slices. A new class is needed, because for rotation one has to know an axis of rotation. Such an axis is most easily determined from the "other slices", which are not known by a SliceNavigationController.

Definition at line 45 of file mitkSlicesCoordinator.h.

Member Typedef Documentation

Definition at line 51 of file mitkSlicesCoordinator.h.

Definition at line 48 of file mitkSlicesCoordinator.h.

Constructor & Destructor Documentation

mitk::SlicesCoordinator::SlicesCoordinator ( )
protected

Default Constructor.

Definition at line 23 of file mitkSlicesCoordinator.cpp.

mitk::SlicesCoordinator::~SlicesCoordinator ( )
protectedvirtual

clear list of controllers

Definition at line 24 of file mitkSlicesCoordinator.cpp.

Member Function Documentation

void mitk::SlicesCoordinator::AddSliceController ( SliceNavigationController snc)

Add to list of managed slices. Check if CreatedWorldGeometry of SNC is managable (i.e. there is basically only one planegeometry)

Definition at line 25 of file mitkSlicesCoordinator.cpp.

References m_SliceNavigationControllers, and OnSliceControllerAdded().

virtual std::vector<std::string> mitk::SlicesCoordinator::GetClassHierarchy ( ) const
inlinevirtual

Definition at line 48 of file mitkSlicesCoordinator.h.

virtual const char* mitk::SlicesCoordinator::GetClassName ( ) const
virtual
virtual bool mitk::SlicesCoordinator::GetLinkPlanes ( )
virtual
static const char* mitk::SlicesCoordinator::GetStaticNameOfClass ( )
inlinestatic

Definition at line 48 of file mitkSlicesCoordinator.h.

virtual void mitk::SlicesCoordinator::LinkPlanesOff ( )
virtual
virtual void mitk::SlicesCoordinator::LinkPlanesOn ( )
virtual
static Pointer mitk::SlicesCoordinator::New ( )
static
void mitk::SlicesCoordinator::OnSliceControllerAdded ( SliceNavigationController snc)
protectedvirtual

for implementation in subclasses

Definition at line 76 of file mitkSlicesCoordinator.cpp.

Referenced by AddSliceController().

void mitk::SlicesCoordinator::OnSliceControllerRemoved ( SliceNavigationController snc)
protectedvirtual

for implementation in subclasses

Definition at line 81 of file mitkSlicesCoordinator.cpp.

Referenced by RemoveSliceController().

void mitk::SlicesCoordinator::RemoveSliceController ( SliceNavigationController snc)

Remove one controller from the internal list

Definition at line 35 of file mitkSlicesCoordinator.cpp.

References m_SliceNavigationControllers, and OnSliceControllerRemoved().

void mitk::SlicesCoordinator::ResetMouseCursor ( )

Resets the mouse cursor (if modified by the SlicesCoordinator) to its original state.

Should be used by subclasses and from external application instead of using QmitkApplicationCursor directly to avoid conflicts.

Definition at line 55 of file mitkSlicesCoordinator.cpp.

References mitk::ApplicationCursor::GetInstance(), m_MouseCursorSet, and mitk::ApplicationCursor::PopCursor().

virtual void mitk::SlicesCoordinator::SetLinkPlanes ( bool  _arg)
virtual

Set/Get whether planes should stay linked to each other (by fixing their relative angle)

void mitk::SlicesCoordinator::SetMouseCursor ( const char *  xpm[],
int  hotspotX,
int  hotspotY 
)
protected

Sets the specified mouse cursor.

Use this in subclasses instead of using QmitkApplicationCursor directly.

Definition at line 64 of file mitkSlicesCoordinator.cpp.

References mitk::ApplicationCursor::GetInstance(), m_MouseCursorSet, mitk::ApplicationCursor::PopCursor(), and mitk::ApplicationCursor::PushCursor().

Member Data Documentation

bool mitk::SlicesCoordinator::m_LinkPlanes
protected

Definition at line 96 of file mitkSlicesCoordinator.h.

bool mitk::SlicesCoordinator::m_MouseCursorSet
protected

Definition at line 98 of file mitkSlicesCoordinator.h.

Referenced by ResetMouseCursor(), and SetMouseCursor().

SNCVector mitk::SlicesCoordinator::m_SliceNavigationControllers
protected

Definition at line 94 of file mitkSlicesCoordinator.h.

Referenced by AddSliceController(), and RemoveSliceController().


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