Medical Imaging Interaction Toolkit  2016.11.0
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,
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_ContourModelSetGLMapper2D_H_
18 #define MITK_ContourModelSetGLMapper2D_H_
19 
20 #include "mitkBaseRenderer.h"
21 #include "mitkCommon.h"
23 #include "mitkContourModelSet.h"
25 
26 namespace mitk
27 {
28  class BaseRenderer;
29  class ContourModel;
30 
39  {
40  public:
42 
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
45 
48  virtual void Paint(BaseRenderer *renderer) override;
49 
50  static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer = NULL, bool overwrite = false);
51 
53 
54  protected:
56 
57  virtual ~ContourModelSetGLMapper2D();
58 
59  void InternalDrawContour(mitk::ContourModel *contour, mitk::BaseRenderer *renderer) override;
60 
61  private:
65  ContourModelSet *GetInput(void);
66  };
67 
68 } // namespace mitk
69 
70 #endif
LocalStorageHandler< BaseLocalStorage > m_LSH
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
OpenGL-based mapper to display a mitk::ContourModelSet object containing several contours in a 2D ren...
Organizes the rendering process.
#define MITKCONTOURMODEL_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for OpenGL based 2D mappers. Provides functionality to draw a contour. ...
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66