Medical Imaging Interaction Toolkit  2018.4.99-701c8286
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...
 ~SlicesCoordinator () override
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 41 of file mitkSlicesCoordinator.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ SNCVector

Definition at line 45 of file mitkSlicesCoordinator.h.

◆ Superclass

Definition at line 44 of file mitkSlicesCoordinator.h.

Constructor & Destructor Documentation

◆ SlicesCoordinator()

mitk::SlicesCoordinator::SlicesCoordinator ( )

Default Constructor.

◆ ~SlicesCoordinator()

mitk::SlicesCoordinator::~SlicesCoordinator ( )

clear list of controllers

Member Function Documentation

◆ AddSliceController()

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)

◆ GetClassHierarchy()

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

Definition at line 44 of file mitkSlicesCoordinator.h.

◆ GetClassName()

virtual const char* mitk::SlicesCoordinator::GetClassName ( ) const

◆ GetLinkPlanes()

virtual bool mitk::SlicesCoordinator::GetLinkPlanes ( )

◆ GetStaticNameOfClass()

static const char* mitk::SlicesCoordinator::GetStaticNameOfClass ( )

Definition at line 44 of file mitkSlicesCoordinator.h.

◆ LinkPlanesOff()

virtual void mitk::SlicesCoordinator::LinkPlanesOff ( )

◆ LinkPlanesOn()

virtual void mitk::SlicesCoordinator::LinkPlanesOn ( )

◆ New()

static Pointer mitk::SlicesCoordinator::New ( )

◆ OnSliceControllerAdded()

virtual void mitk::SlicesCoordinator::OnSliceControllerAdded ( SliceNavigationController snc)

for implementation in subclasses

◆ OnSliceControllerRemoved()

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

for implementation in subclasses

◆ RemoveSliceController()

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

Remove one controller from the internal list

◆ ResetMouseCursor()

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.

◆ SetLinkPlanes()

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

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

◆ SetMouseCursor()

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

Sets the specified mouse cursor.

Use this in subclasses instead of using QmitkApplicationCursor directly.

Member Data Documentation

◆ m_LinkPlanes

bool mitk::SlicesCoordinator::m_LinkPlanes

Definition at line 92 of file mitkSlicesCoordinator.h.

◆ m_MouseCursorSet

bool mitk::SlicesCoordinator::m_MouseCursorSet

Definition at line 94 of file mitkSlicesCoordinator.h.

◆ m_SliceNavigationControllers

SNCVector mitk::SlicesCoordinator::m_SliceNavigationControllers

Definition at line 90 of file mitkSlicesCoordinator.h.

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