Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkROIMapper2D.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 mitkROIMapper2D_h
14 #define mitkROIMapper2D_h
15 
18 #include <mitkVtkMapper.h>
19 #include <MitkROIExports.h>
20 
21 namespace mitk
22 {
24  {
25  class LocalStorage : public ROIMapperLocalStorage
26  {
27  public:
28  LocalStorage();
29  ~LocalStorage() override;
30 
31  const PlaneGeometry* GetLastPlaneGeometry() const;
32  void SetLastPlaneGeometry(const PlaneGeometry* planeGeometry);
33 
34  protected:
35  PlaneGeometry::ConstPointer m_LastPlaneGeometry;
36  };
37 
38  public:
39  static void SetDefaultProperties(DataNode* node, BaseRenderer* renderer = nullptr, bool override = false);
40 
42  itkFactorylessNewMacro(Self)
43 
44  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
45 
46  protected:
47  ROIMapper2D();
48  ~ROIMapper2D() override;
49 
50  void GenerateDataForRenderer(BaseRenderer* renderer) override;
51  void ApplyColorAndOpacityProperties(BaseRenderer* renderer, vtkActor* actor) override;
52 
53  private:
54  LocalStorageHandler<LocalStorage> m_LocalStorageHandler;
55  };
56 }
57 
58 #endif
mitkLocalStorageHandler.h
mitk::PlaneGeometry
Describes a two-dimensional, rectangular plane.
Definition: mitkPlaneGeometry.h:78
MitkROIExports.h
itk::SmartPointer< const Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::LocalStorageHandler< LocalStorage >
mitkROIMapperLocalStorage.h
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::VtkMapper
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:47
mitk::ROIMapperLocalStorage
Common base class for both 2-d and 3-d ROI mapper local storages.
Definition: mitkROIMapperLocalStorage.h:27
mitkVtkMapper.h
MITKROI_EXPORT
#define MITKROI_EXPORT
Definition: MitkROIExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::ROIMapper2D
Definition: mitkROIMapper2D.h:23
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::ROIMapperHelper::SetDefaultProperties
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2-d and 3-d ROI mappers.