Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkTextAnnotation2D.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 mitkTextAnnotation2D_h
14 #define mitkTextAnnotation2D_h
15 
16 #include "MitkAnnotationExports.h"
18 #include <mitkVtkAnnotation2D.h>
19 #include <vtkSmartPointer.h>
20 
21 class vtkTextActor;
22 class vtkPropAssembly;
23 
24 namespace mitk
25 {
28  {
29  public:
31  {
32  public:
35 
37 
39 
41 
43 
45  itk::TimeStamp m_LastUpdateTime;
46 
48  LocalStorage();
50  ~LocalStorage();
51  };
52 
54  itkFactorylessNewMacro(Self);
55  itkCloneMacro(Self);
56 
57  Annotation::Bounds GetBoundsOnDisplay(BaseRenderer *renderer) const override;
58  void SetBoundsOnDisplay(BaseRenderer *renderer, const Bounds &bounds) override;
59 
60  protected:
63 
64  vtkProp *GetVtkProp(BaseRenderer *renderer) const override;
65  vtkActor2D *GetVtkActor2D(BaseRenderer *renderer) const override;
66  void UpdateVtkAnnotation2D(mitk::BaseRenderer *renderer) override;
67 
69  explicit TextAnnotation2D();
70 
72  ~TextAnnotation2D() override;
73 
74  private:
77 
79  TextAnnotation2D &operator=(const TextAnnotation2D &);
80  };
81 
82 } // namespace mitk
83 #endif
mitk::TextAnnotation2D::LocalStorage::m_STextActor
vtkSmartPointer< vtkTextActor > m_STextActor
Definition: mitkTextAnnotation2D.h:38
mitkLocalStorageHandler.h
mitk::Annotation::Bounds
Container for position and size on the display.
Definition: mitkAnnotation.h:31
mitk::TextAnnotation2D::LocalStorage::m_TextProp
vtkSmartPointer< vtkTextProperty > m_TextProp
Definition: mitkTextAnnotation2D.h:36
vtkSmartPointer< vtkTextActor >
mitk::TextAnnotation2D::LocalStorage::m_Assembly
vtkSmartPointer< vtkPropAssembly > m_Assembly
Definition: mitkTextAnnotation2D.h:42
mitkVtkAnnotation2D.h
mitk::TextAnnotation2D
Displays text on the renderwindow.
Definition: mitkTextAnnotation2D.h:27
MitkAnnotationExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::TextAnnotation2D::LocalStorage::m_LastUpdateTime
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
Definition: mitkTextAnnotation2D.h:45
mitk::LocalStorageHandler< LocalStorage >
MITKANNOTATION_EXPORT
#define MITKANNOTATION_EXPORT
Definition: MitkAnnotationExports.h:15
mitk::TextAnnotation2D::LocalStorage::m_TextActor
vtkSmartPointer< vtkTextActor > m_TextActor
Actor of a 2D render window.
Definition: mitkTextAnnotation2D.h:34
mitk::VtkAnnotation2D
The VtkAnnotation2D class is the basis for all VTK based Annotation which create a vtkActor2D element...
Definition: mitkVtkAnnotation2D.h:29
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::TextAnnotation2D::LocalStorage::m_STextProp
vtkSmartPointer< vtkTextProperty > m_STextProp
Definition: mitkTextAnnotation2D.h:40
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::TextAnnotation2D::m_LSH
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all LocalStorages for the render windows.
Definition: mitkTextAnnotation2D.h:62
mitk::TextAnnotation2D::LocalStorage
Definition: mitkTextAnnotation2D.h:30
mitk::Annotation::BaseLocalStorage
Base class for mapper specific rendering resources.
Definition: mitkAnnotation.h:39