Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkContourModelSetGLMapper2D.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 mitkContourModelSetGLMapper2D_h
14 #define mitkContourModelSetGLMapper2D_h
15 
16 #include "mitkBaseRenderer.h"
17 #include "mitkCommon.h"
19 #include "mitkContourModelSet.h"
21 
22 namespace mitk
23 {
24  class BaseRenderer;
25  class ContourModel;
26 
35  {
36  public:
38 
39  itkFactorylessNewMacro(Self);
40 
41  itkCloneMacro(Self);
42 
46  void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override;
47 
48  static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer = nullptr, bool overwrite = false);
49 
51 
52  protected:
54 
55  ~ContourModelSetGLMapper2D() override;
56 
57  private:
61  ContourModelSet *GetInput(void);
62  };
63 
64 } // namespace mitk
65 
66 #endif
mitk::VtkPropRenderer::RenderType
RenderType
Definition: mitkVtkPropRenderer.h:71
mitkContourModelSet.h
mitk::ContourModelGLMapper2DBase
Base class for OpenGL based 2D mappers. Provides functionality to draw a contour.
Definition: mitkContourModelGLMapper2DBase.h:37
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkContourModelExports.h
mitk::LocalStorageHandler< BaseLocalStorage >
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitkCommon.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MITKCONTOURMODEL_EXPORT
#define MITKCONTOURMODEL_EXPORT
Definition: MitkContourModelExports.h:15
mitk::ContourModelSet
Definition: mitkContourModelSet.h:26
mitk::ContourModelSetGLMapper2D
OpenGL-based mapper to display a mitk::ContourModelSet object containing several contours in a 2D ren...
Definition: mitkContourModelSetGLMapper2D.h:34
mitk::ContourModelSetGLMapper2D::m_LSH
LocalStorageHandler< BaseLocalStorage > m_LSH
Definition: mitkContourModelSetGLMapper2D.h:50
mitkBaseRenderer.h
mitkContourModelGLMapper2DBase.h
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.