Medical Imaging Interaction Toolkit  2026.06.00
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 {
42  {
43  public:
46 
57  unsigned int AddNewPlanePosition(const mitk::PlaneGeometry *plane, unsigned int sliceIndex = 0);
58 
65  bool RemovePlanePosition(unsigned int ID);
66 
69 
78 
83  unsigned int GetNumberOfPlanePositions();
84 
85  private:
86  // Disable copy constructor and assignment operator.
89 
90  std::vector<mitk::RestorePlanePositionOperation *> m_PositionList;
91  };
92 }
93 MITK_DECLARE_SERVICE_INTERFACE(mitk::PlanePositionManagerService, "org.mitk.PlanePositionManagerService")
94 
95 #endif
#define MITKCORE_EXPORT
Module activator for the MitkCore module.
Describes the geometry of a plane object.
Service that holds and manages a list of stored plane positions.
unsigned int AddNewPlanePosition(const mitk::PlaneGeometry *plane, unsigned int sliceIndex=0)
Add a new plane position to the list.
void RemoveAllPlanePositions()
Remove all plane positions from the list.
bool RemovePlanePosition(unsigned int ID)
Remove the plane position at the given ID from the list.
mitk::RestorePlanePositionOperation * GetPlanePosition(unsigned int ID)
Get a specific plane position by its ID.
unsigned int GetNumberOfPlanePositions()
Get the number of stored plane positions.
Operation to restore a plane position defined by width, height, spacing, direction,...
Provides the MITK_DECLARE_SERVICE_INTERFACE macro for registering C++ interfaces with both the CppMic...
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Declare a C++ interface for use with CppMicroServices (Qt not available).
Find image slices visible on a given plane.