Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkContourModelGLMapper2DBase.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 mitkContourModelGLMapper2DBase_h
14
#define mitkContourModelGLMapper2DBase_h
15
16
#include "
mitkCommon.h
"
17
#include "
mitkMapper.h
"
18
#include "
mitkTextAnnotation2D.h
"
19
#include <
MitkContourModelExports.h
>
20
#include <vtkSmartPointer.h>
21
22
class
vtkContext2D;
23
class
vtkOpenGLContextDevice2D;
24
class
vtkPen;
25
26
namespace
mitk
27
{
28
class
BaseRenderer;
29
class
ContourModel;
30
37
class
MITKCONTOURMODEL_EXPORT
ContourModelGLMapper2DBase
:
public
Mapper
38
{
39
public
:
40
mitkClassMacro
(
ContourModelGLMapper2DBase
,
Mapper
);
41
42
void
ApplyColorAndOpacityProperties(
mitk::BaseRenderer
*renderer, vtkActor * actor =
nullptr
)
override
;
43
44
protected
:
45
typedef
TextAnnotation2D::Pointer
TextAnnotationPointerType
;
46
47
ContourModelGLMapper2DBase
();
48
49
~
ContourModelGLMapper2DBase
()
override
;
50
51
void
DrawContour(
mitk::ContourModel
*contour,
mitk::BaseRenderer
*renderer);
52
53
void
WriteTextWithAnnotation(
54
TextAnnotationPointerType
textAnnotation,
const
char
*text,
float
rgb[3],
Point2D
pt2d,
mitk::BaseRenderer
*);
55
56
virtual
void
InternalDrawContour(
mitk::ContourModel
*renderingContour,
mitk::BaseRenderer
*renderer);
57
58
TextAnnotationPointerType
m_PointNumbersAnnotation
;
59
TextAnnotationPointerType
m_ControlPointNumbersAnnotation
;
60
61
typedef
std::vector<BaseRenderer *>
RendererListType
;
62
RendererListType
m_RendererList
;
63
64
private
:
65
struct
LocalStorage
66
{
67
vtkSmartPointer<vtkOpenGLContextDevice2D>
Device;
68
vtkSmartPointer<vtkContext2D>
Context;
69
};
70
71
LocalStorageHandler<LocalStorage>
m_LocalStorageHandler;
72
};
73
74
}
// namespace mitk
75
76
#endif
mitk::ContourModelGLMapper2DBase::m_ControlPointNumbersAnnotation
TextAnnotationPointerType m_ControlPointNumbersAnnotation
Definition:
mitkContourModelGLMapper2DBase.h:59
mitkTextAnnotation2D.h
vtkSmartPointer< vtkOpenGLContextDevice2D >
mitk::ContourModelGLMapper2DBase::m_PointNumbersAnnotation
TextAnnotationPointerType m_PointNumbersAnnotation
Definition:
mitkContourModelGLMapper2DBase.h:58
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
mitkMapper.h
MitkContourModelExports.h
mitk::LocalStorageHandler< LocalStorage >
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition:
mitkMapper.h:46
mitk::Point< ScalarType, 2 >
mitk::ContourModelGLMapper2DBase::m_RendererList
RendererListType m_RendererList
Definition:
mitkContourModelGLMapper2DBase.h:62
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
mitk::ContourModelGLMapper2DBase::TextAnnotationPointerType
TextAnnotation2D::Pointer TextAnnotationPointerType
Definition:
mitkContourModelGLMapper2DBase.h:45
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::ContourModelGLMapper2DBase::RendererListType
std::vector< BaseRenderer * > RendererListType
Definition:
mitkContourModelGLMapper2DBase.h:61
src
MITK
Modules
ContourModel
Rendering
mitkContourModelGLMapper2DBase.h
Generated on Mon Dec 23 2024 02:13:16 for Medical Imaging Interaction Toolkit by
1.8.17