Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkContourModelGLMapper2D.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 mitkContourModelGLMapper2D_h
14 #define mitkContourModelGLMapper2D_h
15 
16 #include "mitkCommon.h"
17 #include "mitkContourModel.h"
20 
21 namespace mitk
22 {
23  class BaseRenderer;
24  class ContourModel;
25 
33  {
34  public:
36 
37  itkFactorylessNewMacro(Self);
38 
39  itkCloneMacro(Self);
40 
44  void MitkRender(BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override;
45 
46  static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer = nullptr, bool overwrite = false);
47 
49 
50  protected:
52 
53  ~ContourModelGLMapper2D() override;
54 
57 
58  private:
62  ContourModel *GetInput(void);
63  };
64 
65 } // namespace mitk
66 
67 #endif
mitk::VtkPropRenderer::RenderType
RenderType
Definition: mitkVtkPropRenderer.h:71
mitk::ContourModelGLMapper2D::m_LSH
LocalStorageHandler< BaseLocalStorage > m_LSH
Definition: mitkContourModelGLMapper2D.h:48
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
mitk::ContourModelGLMapper2D
OpenGL-based mapper to display a mitk::Contour object in a 2D render window.
Definition: mitkContourModelGLMapper2D.h:32
mitkContourModel.h
MitkContourModelExports.h
mitk::LocalStorageHandler< BaseLocalStorage >
mitk::ContourModelGLMapper2D::m_InitSubdivisionCurve
bool m_InitSubdivisionCurve
Definition: mitkContourModelGLMapper2D.h:56
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::ContourModel
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Definition: mitkContourModel.h:47
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::BaseData::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:46
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.
mitk::ContourModelGLMapper2D::m_SubdivisionContour
mitk::ContourModel::Pointer m_SubdivisionContour
Definition: mitkContourModelGLMapper2D.h:55