Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkTextOverlay2D.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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef TEXTOVERLAY2D_H
18 #define TEXTOVERLAY2D_H
19 
20 #include "MitkOverlaysExports.h"
22 #include <mitkVtkOverlay2D.h>
23 #include <vtkSmartPointer.h>
24 
25 class vtkTextActor;
26 class vtkPropAssembly;
27 
28 namespace mitk
29 {
32  {
33  public:
35  {
36  public:
38  vtkSmartPointer<vtkTextActor> m_TextActor;
39 
40  vtkSmartPointer<vtkTextProperty> m_TextProp;
41 
42  vtkSmartPointer<vtkTextActor> m_STextActor;
43 
44  vtkSmartPointer<vtkTextProperty> m_STextProp;
45 
46  vtkSmartPointer<vtkPropAssembly> m_Assembly;
47 
49  itk::TimeStamp m_LastUpdateTime;
50 
52  LocalStorage();
54  ~LocalStorage();
55  };
56 
58  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
59 
60  virtual Overlay::Bounds GetBoundsOnDisplay(BaseRenderer *renderer) const override;
61  virtual void SetBoundsOnDisplay(BaseRenderer *renderer, const Bounds &bounds) override;
62 
63  protected:
66 
67  vtkProp *GetVtkProp(BaseRenderer *renderer) const override;
68  virtual vtkActor2D *GetVtkActor2D(BaseRenderer *renderer) const override;
69  void UpdateVtkOverlay2D(mitk::BaseRenderer *renderer) override;
70 
72  explicit TextOverlay2D();
73 
75  virtual ~TextOverlay2D();
76 
77  private:
79  TextOverlay2D(const TextOverlay2D &);
80 
82  TextOverlay2D &operator=(const TextOverlay2D &);
83  };
84 
85 } // namespace mitk
86 #endif // TEXTOVERLAY2D_H
Displays text on the renderwindow.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
Templated class for management of LocalStorage implementations in Mappers.
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
vtkSmartPointer< vtkTextProperty > m_TextProp
vtkSmartPointer< vtkTextActor > m_STextActor
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for mapper specific rendering ressources.
Definition: mitkOverlay.h:50
vtkSmartPointer< vtkPropAssembly > m_Assembly
#define MITKOVERLAYS_EXPORT
vtkSmartPointer< vtkTextProperty > m_STextProp
Base class for all overlays.
Definition: mitkOverlay.h:34
The VtkOverlay2D class is the basis for all VTK based Overlays which create a vtkActor2D element that...
Container for position and size on the display.
Definition: mitkOverlay.h:40
vtkSmartPointer< vtkTextActor > m_TextActor
Actor of a 2D render window.