Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkPlanePositionManager.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkPlanePositionManager_h
14 #define mitkPlanePositionManager_h
15 
16 #include "mitkCommon.h"
17 #include "mitkDataStorage.h"
19 
20 #include <mitkPlaneGeometry.h>
21 #include <mitkServiceInterface.h>
22 
23 class MitkCoreActivator;
24 
25 namespace mitk
26 {
39  {
40  public:
43 
54  unsigned int AddNewPlanePosition(const mitk::PlaneGeometry *plane, unsigned int sliceIndex = 0);
55 
62  bool RemovePlanePosition(unsigned int ID);
63 
66 
76 
78  unsigned int GetNumberOfPlanePositions();
79 
80  private:
81  // Disable copy constructor and assignment operator.
84 
85  std::vector<mitk::RestorePlanePositionOperation *> m_PositionList;
86  };
87 }
88 MITK_DECLARE_SERVICE_INTERFACE(mitk::PlanePositionManagerService, "org.mitk.PlanePositionManagerService")
89 
90 #endif
#define MITKCORE_EXPORT
Describes a two-dimensional, rectangular plane.
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 ...
void RemoveAllPlanePositions()
Clears the complete positionlist.
bool RemovePlanePosition(unsigned int ID)
Removes the plane at the position ID from the list.
mitk::RestorePlanePositionOperation * GetPlanePosition(unsigned int ID)
Getter for a specific plane position with a given ID.
unsigned int GetNumberOfPlanePositions()
Getting the number of all stored planes.
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.