Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTextOverlay3D.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 TextOverlay3D_H
18 #define TextOverlay3D_H
19 
20 #include "MitkOverlaysExports.h"
22 #include <mitkVtkOverlay3D.h>
23 
24 class vtkFollower;
25 class vtkVectorText;
26 class vtkTextActor3D;
27 
28 namespace mitk
29 {
32  {
33  public:
42  {
43  public:
45  vtkSmartPointer<vtkFollower> m_follower;
46 
47  vtkSmartPointer<vtkVectorText> m_textSource;
48 
50  itk::TimeStamp m_LastUpdateTime;
51 
53  LocalStorage();
55  ~LocalStorage();
56  };
57 
59  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
60 
61  protected :
62 
65 
66  virtual vtkProp *GetVtkProp(BaseRenderer *renderer) const override;
67  void UpdateVtkOverlay(mitk::BaseRenderer *renderer) override;
68 
70  explicit TextOverlay3D();
71 
73  virtual ~TextOverlay3D();
74 
75  private:
77  TextOverlay3D(const TextOverlay3D &);
78 
80  TextOverlay3D &operator=(const TextOverlay3D &);
81  };
82 
83 } // namespace mitk
84 #endif // TextOverlay3D_H
Templated class for management of LocalStorage implementations in Mappers.
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Internal class holding the mapper, actor, etc. for each of the render windows.
The VtkOverlay3D class is the basis for all VTK based Overlays which create any 3D element as a vtkPr...
vtkSmartPointer< vtkVectorText > m_textSource
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for mapper specific rendering ressources.
Definition: mitkOverlay.h:50
Displays at 3D position, always facing the camera.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
#define MITKOVERLAYS_EXPORT
vtkSmartPointer< vtkFollower > m_follower
Actor of a 2D render window.
Base class for all overlays.
Definition: mitkOverlay.h:34