Medical Imaging Interaction Toolkit  2022.04.99-685cdc74
Medical Imaging Interaction Toolkit
mitkTextAnnotation3D.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 TextAnnotation3D_H
14 #define TextAnnotation3D_H
15 
16 #include "MitkAnnotationExports.h"
18 #include <mitkVtkAnnotation3D.h>
19 
20 class vtkFollower;
21 class vtkVectorText;
22 class vtkTextActor3D;
23 
24 namespace mitk
25 {
28  {
29  public:
38  {
39  public:
41  vtkSmartPointer<vtkFollower> m_follower;
42 
43  vtkSmartPointer<vtkVectorText> m_textSource;
44 
46  itk::TimeStamp m_LastUpdateTime;
47 
49  LocalStorage();
51  ~LocalStorage();
52  };
53 
55  itkFactorylessNewMacro(Self);
56  itkCloneMacro(Self);
57 
58  protected :
59 
62 
63  vtkProp *GetVtkProp(BaseRenderer *renderer) const override;
64  void UpdateVtkAnnotation(mitk::BaseRenderer *renderer) override;
65 
67  explicit TextAnnotation3D();
68 
70  ~TextAnnotation3D() override;
71 
72  private:
75 
77  TextAnnotation3D &operator=(const TextAnnotation3D &);
78  };
79 
80 } // namespace mitk
81 #endif // TextAnnotation3D_H
#define MITKANNOTATION_EXPORT
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Base class for mapper specific rendering ressources.
vtkSmartPointer< vtkVectorText > m_textSource
Internal class holding the mapper, actor, etc. for each of the render windows.
vtkSmartPointer< vtkFollower > m_follower
Actor of a 2D render window.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
The VtkAnnotation3D class is the basis for all VTK based Annotation which create any 3D element as a ...
Base class for all Annotation This class is to be implemented in order to create Annotation which are...
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all LocalStorages for the render windows.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
Displays at 3D position, always facing the camera.