Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITK_ContourModelGLMapper2DBase_H_
18 #define MITK_ContourModelGLMapper2DBase_H_
19 
20 #include "mitkCommon.h"
21 #include "mitkGLMapper.h"
22 #include "mitkTextOverlay2D.h"
24 
25 namespace mitk
26 {
27  class BaseRenderer;
28  class ContourModel;
29 
37  {
38  public:
40 
41  protected:
43 
45 
46  virtual ~ContourModelGLMapper2DBase();
47 
48  void DrawContour(mitk::ContourModel *contour, mitk::BaseRenderer *renderer);
49 
50  void WriteTextWithOverlay(
51  TextOverlayPointerType textOverlay, const char *text, float rgb[3], Point2D pt2d, mitk::BaseRenderer *renderer);
52 
53  virtual void InternalDrawContour(mitk::ContourModel *renderingContour, mitk::BaseRenderer *renderer);
54 
55  TextOverlayPointerType m_PointNumbersOverlay;
56  TextOverlayPointerType m_ControlPointNumbersOverlay;
57 
58  typedef std::vector<BaseRenderer *> RendererListType;
59  RendererListType m_RendererList;
60  };
61 
62 } // namespace mitk
63 
64 #endif
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
std::vector< BaseRenderer * > RendererListType
Organizes the rendering process.
#define MITKCONTOURMODEL_EXPORT
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:45
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for OpenGL based 2D mappers. Provides functionality to draw a contour. ...