Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkContourModelSetMapper2D.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 mitkContourModelSetMapper2D_h
14 #define mitkContourModelSetMapper2D_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 
36  {
37  public:
39 
40  itkFactorylessNewMacro(Self);
41 
42  itkCloneMacro(Self);
43 
49 
55  static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer = nullptr, bool overwrite = false);
56 
59 
60  protected:
62 
64 
65  private:
69  ContourModelSet *GetInput(void);
70  };
71 
72 } // namespace mitk
73 
74 #endif
#define MITKCONTOURMODEL_EXPORT
Organizes the rendering process.
Abstract base class for OpenGL-based 2D contour mappers.
OpenGL-based mapper to display a mitk::ContourModelSet in a 2D render window.
mitkClassMacro(ContourModelSetMapper2D, ContourModelMapper2DBase)
LocalStorageHandler< BaseLocalStorage > m_LSH
Local storage handler for per-renderer data.
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Set default rendering properties for ContourModelSet nodes.
void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override
Render all contour models in the set onto the 2D slice.
A collection of ContourModel instances managed as a single BaseData object.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
RenderType
Enumeration of render pass types.
Find image slices visible on a given plane.