Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Coordinates a list of SliceNavigationControllers. More...
#include <mitkSlicesCoordinator.h>
Public Types | |
typedef SlicesCoordinator | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
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 |
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.
typedef itk::SmartPointer<const Self> mitk::SlicesCoordinator::ConstPointer |
Definition at line 48 of file mitkSlicesCoordinator.h.
Definition at line 48 of file mitkSlicesCoordinator.h.
Definition at line 48 of file mitkSlicesCoordinator.h.
typedef std::vector<SliceNavigationController *> mitk::SlicesCoordinator::SNCVector |
Definition at line 51 of file mitkSlicesCoordinator.h.
typedef itk::Object mitk::SlicesCoordinator::Superclass |
Definition at line 48 of file mitkSlicesCoordinator.h.
|
protected |
Default Constructor.
Definition at line 23 of file mitkSlicesCoordinator.cpp.
|
protectedvirtual |
clear list of controllers
Definition at line 24 of file mitkSlicesCoordinator.cpp.
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().
|
inlinevirtual |
Definition at line 48 of file mitkSlicesCoordinator.h.
|
virtual |
|
virtual |
|
inlinestatic |
Definition at line 48 of file mitkSlicesCoordinator.h.
|
virtual |
|
virtual |
|
static |
|
protectedvirtual |
for implementation in subclasses
Definition at line 76 of file mitkSlicesCoordinator.cpp.
Referenced by AddSliceController().
|
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 |
Set/Get whether planes should stay linked to each other (by fixing their relative angle)
|
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().
|
protected |
Definition at line 96 of file mitkSlicesCoordinator.h.
|
protected |
Definition at line 98 of file mitkSlicesCoordinator.h.
Referenced by ResetMouseCursor(), and SetMouseCursor().
|
protected |
Definition at line 94 of file mitkSlicesCoordinator.h.
Referenced by AddSliceController(), and RemoveSliceController().