Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkBoundingShapeVtkMapper3D.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 mitkBoundingShapeVtkMapper3D_h
14 #define mitkBoundingShapeVtkMapper3D_h
15 
17 #include <mitkVtkMapper.h>
18 
19 namespace mitk
20 {
29  {
30  public:
37  static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer = nullptr, bool overwrite = false);
38 
40 
41  itkFactorylessNewMacro(Self);
42 
43  itkCloneMacro(Self);
44 
46  void ApplyColorAndOpacityProperties(BaseRenderer *renderer, vtkActor *actor) override;
47 
53  void ApplyBoundingShapeProperties(BaseRenderer *renderer, vtkActor *actor);
54 
60  vtkProp *GetVtkProp(BaseRenderer *renderer) override;
61  // virtual void UpdateVtkTransform(mitk::BaseRenderer* renderer) override;
62  protected:
63  void GenerateDataForRenderer(BaseRenderer *renderer) override;
64 
65  private:
67  ~BoundingShapeVtkMapper3D() override;
68 
69  BoundingShapeVtkMapper3D(const Self &);
70  Self &operator=(const Self &);
71 
72  class Impl;
73  Impl *m_Impl;
74  };
75 }
76 
77 #endif
#define MITKBOUNDINGSHAPE_EXPORT
Organizes the rendering process.
VTK-based 3D mapper for rendering bounding shapes as wireframe cubes with handles.
void ApplyBoundingShapeProperties(BaseRenderer *renderer, vtkActor *actor)
Apply bounding-shape-specific visual properties to the actor.
mitkClassMacro(BoundingShapeVtkMapper3D, VtkMapper)
vtkProp * GetVtkProp(BaseRenderer *renderer) override
Get the VTK prop assembly for 3D rendering.
void GenerateDataForRenderer(BaseRenderer *renderer) override
Generate the data needed for rendering into renderer.
void ApplyColorAndOpacityProperties(BaseRenderer *renderer, vtkActor *actor) override
Apply color and opacity properties read from the PropertyList to the given vtkActor.
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=nullptr, bool overwrite=false)
Set default rendering properties for bounding shape 3D visualization.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Base class of all VTK-based Mappers for displaying primitives using VTK functionality.
Definition: mitkVtkMapper.h:53
Find image slices visible on a given plane.