Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkVtkAnnotation3D.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 mitkVtkAnnotation3D_h
14 #define mitkVtkAnnotation3D_h
15 
16 #include <mitkVtkAnnotation.h>
17 #include <MitkAnnotationExports.h>
18 #include <vtkSmartPointer.h>
19 
20 namespace mitk
21 {
31  {
32  public:
37  void SetPosition3D(const Point3D &position3D);
38 
44 
49  void SetOffsetVector(const Point3D &OffsetVector);
50 
56 
58 
59  protected:
60  void UpdateVtkAnnotation(BaseRenderer *renderer) override = 0;
61 
63  explicit VtkAnnotation3D();
64 
66  ~VtkAnnotation3D() override;
67 
68  private:
71 
73  VtkAnnotation3D &operator=(const VtkAnnotation3D &);
74  };
75 
76 } // namespace mitk
77 #endif
#define MITKANNOTATION_EXPORT
Organizes the rendering process.
Base class for VTK-based 3D annotations rendered as vtkProp elements.
void SetOffsetVector(const Point3D &OffsetVector)
Set an offset vector added to the 3D position.
~VtkAnnotation3D() override
virtual destructor in order to derive from this class
void SetPosition3D(const Point3D &position3D)
Set the 3D position in world coordinates.
mitkClassMacro(VtkAnnotation3D, VtkAnnotation)
void UpdateVtkAnnotation(BaseRenderer *renderer) override=0
Point3D GetOffsetVector() const
Get the 3D offset vector.
Point3D GetPosition3D() const
Get the 3D position in world coordinates.
VtkAnnotation3D()
explicit constructor which disallows implicit conversions
Base class for all annotations that use the VTK framework for rendering.
Find image slices visible on a given plane.