|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Service that holds and manages a list of stored plane positions. More...
#include <mitkPlanePositionManager.h>
Public Member Functions | |
| PlanePositionManagerService () | |
| ~PlanePositionManagerService () | |
| unsigned int | AddNewPlanePosition (const mitk::PlaneGeometry *plane, unsigned int sliceIndex=0) |
| Add a new plane position to the list. More... | |
| bool | RemovePlanePosition (unsigned int ID) |
| Remove the plane position at the given ID from the list. More... | |
| void | RemoveAllPlanePositions () |
| Remove all plane positions from the list. More... | |
| mitk::RestorePlanePositionOperation * | GetPlanePosition (unsigned int ID) |
| Get a specific plane position by its ID. More... | |
| unsigned int | GetNumberOfPlanePositions () |
| Get the number of stored plane positions. More... | |
Service that holds and manages a list of stored plane positions.
To store a new position, specify the first slice of your slice stack and the slice number you want to restore via AddNewPlanePosition().
To restore a position, call GetPlanePosition(ID) where ID is the position in the plane position list (returned by AddNewPlanePosition()). This returns a mitk::RestorePlanePositionOperation which can be executed by the SliceNavigationController of the slice stack.
Definition at line 41 of file mitkPlanePositionManager.h.
| mitk::PlanePositionManagerService::PlanePositionManagerService | ( | ) |
| mitk::PlanePositionManagerService::~PlanePositionManagerService | ( | ) |
| unsigned int mitk::PlanePositionManagerService::AddNewPlanePosition | ( | const mitk::PlaneGeometry * | plane, |
| unsigned int | sliceIndex = 0 |
||
| ) |
Add a new plane position to the list.
If a geometrically identical plane position already exists in the list, nothing is added and the existing ID is returned.
| plane | The first slice of the slice stack (its PlaneGeometry). |
| sliceIndex | The slice number of the selected slice. |
| unsigned int mitk::PlanePositionManagerService::GetNumberOfPlanePositions | ( | ) |
Get the number of stored plane positions.
| mitk::RestorePlanePositionOperation* mitk::PlanePositionManagerService::GetPlanePosition | ( | unsigned int | ID | ) |
Get a specific plane position by its ID.
| ID | The ID of the plane position to retrieve. |
| void mitk::PlanePositionManagerService::RemoveAllPlanePositions | ( | ) |
Remove all plane positions from the list.
| bool mitk::PlanePositionManagerService::RemovePlanePosition | ( | unsigned int | ID | ) |
Remove the plane position at the given ID from the list.
| ID | The plane ID to remove (its position in the list). |