Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkPlanePositionManager.h>
Public Member Functions | |
PlanePositionManagerService () | |
~PlanePositionManagerService () | |
unsigned int | AddNewPlanePosition (const mitk::PlaneGeometry *plane, unsigned int sliceIndex=0) |
Adds a new plane position to the list. If this geometry is identical to one of the list nothing will be added. More... | |
bool | RemovePlanePosition (unsigned int ID) |
Removes the plane at the position ID from the list. More... | |
void | RemoveAllPlanePositions () |
Clears the complete positionlist. More... | |
mitk::RestorePlanePositionOperation * | GetPlanePosition (unsigned int ID) |
Getter for a specific plane position with a given ID. More... | |
unsigned int | GetNumberOfPlanePositions () |
Getting the number of all stored planes. More... | |
The mitk::PlanePositionManagerService holds and manages a list of certain planepositions. To store a new position you need to specify the first slice of your slicestack and the slicenumber you want to restore in the mitk::PlanePositionManager::AddNewPlanePosition() function.
To restore a position call mitk::PlanePositionManagerService::GetPlanePosition(ID) where ID is the position in the plane positionlist (returned by AddNewPlanePostion). This will give a mitk::RestorePlanePositionOperation which can be executed by the SliceNavigationController of the slicestack.
Definition at line 42 of file mitkPlanePositionManager.h.
mitk::PlanePositionManagerService::PlanePositionManagerService | ( | ) |
Definition at line 19 of file mitkPlanePositionManager.cpp.
mitk::PlanePositionManagerService::~PlanePositionManagerService | ( | ) |
Definition at line 23 of file mitkPlanePositionManager.cpp.
unsigned int mitk::PlanePositionManagerService::AddNewPlanePosition | ( | const mitk::PlaneGeometry * | plane, |
unsigned int | sliceIndex = 0 |
||
) |
Adds a new plane position to the list. If this geometry is identical to one of the list nothing will be added.
plane THE FIRST! slice of the slice stack sliceIndex the slice number of the selected slice
Definition at line 29 of file mitkPlanePositionManager.cpp.
References mitk::Equal(), mitk::BaseGeometry::GetExtent(), mitk::BaseGeometry::GetIndexToWorldTransform(), mitk::BaseGeometry::GetSpacing(), mitk::MatrixEqualElementWise(), mitk::New(), and mitk::OpRESTOREPLANEPOSITION.
Referenced by testAddPlanePosition().
unsigned int mitk::PlanePositionManagerService::GetNumberOfPlanePositions | ( | ) |
Getting the number of all stored planes.
Definition at line 101 of file mitkPlanePositionManager.cpp.
Referenced by testAddPlanePosition(), testRemoveAll(), and testRemovePlanePosition().
mitk::RestorePlanePositionOperation * mitk::PlanePositionManagerService::GetPlanePosition | ( | unsigned int | ID | ) |
Getter for a specific plane position with a given ID.
ID the ID of the plane position
Definition at line 88 of file mitkPlanePositionManager.cpp.
Referenced by testGetPlanePosition(), and testRemoveAll().
void mitk::PlanePositionManagerService::RemoveAllPlanePositions | ( | ) |
Clears the complete positionlist.
Definition at line 106 of file mitkPlanePositionManager.cpp.
Referenced by testRemoveAll().
bool mitk::PlanePositionManagerService::RemovePlanePosition | ( | unsigned int | ID | ) |
Removes the plane at the position ID from the list.
ID the plane ID which should be removed, i.e. its position in the list
Definition at line 74 of file mitkPlanePositionManager.cpp.
References ID.
Referenced by testRemovePlanePosition().