Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlAxisOverlay.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 __mitkAxisOverlay_h
18 #define __mitkAxisOverlay_h
19 
20 #include <mitkVtkOverlay.h>
22 
23 #include <vtkAxesActor.h>
24 #include <vtkOrientationMarkerWidget.h>
25 #include <vtkPolyDataMapper.h>
26 #include <vtkSphereSource.h>
27 
28 namespace mitk {
29  class AxisOverlay : public mitk::VtkOverlay {
30  public:
32  {
33  public:
35  bool m_initialized = false;
36  vtkSmartPointer<vtkAxesActor> m_axesActor;
37  vtkSmartPointer<vtkOrientationMarkerWidget> m_widget;
38 
39  vtkSmartPointer<vtkActor> m_dummyActor;
40  vtkSmartPointer<vtkPolyDataMapper> m_dummyMapper;
41  vtkSmartPointer<vtkSphereSource> m_dummySource;
42 
44  itk::TimeStamp m_LastUpdateTime;
45 
47  LocalStorage();
49  ~LocalStorage();
50 
51  };
52 
54  itkFactorylessNewMacro(Self)
55  itkCloneMacro(Self)
56 
57  protected:
58 
61 
62  virtual vtkProp* GetVtkProp(BaseRenderer *renderer) const;
63  void UpdateVtkOverlay(mitk::BaseRenderer *renderer);
64 
66  explicit AxisOverlay();
67 
69  virtual ~AxisOverlay();
70 
71  private:
72 
74  AxisOverlay(const AxisOverlay &);
75 
77  AxisOverlay &operator=(const AxisOverlay &);
78 
79  };
80 
81 }
82 
83 #endif
vtkSmartPointer< vtkActor > m_dummyActor
mitkClassMacro(AxisOverlay, mitk::VtkOverlay)
The VtkOverlay class is the base for all Overlays which are using the VTK framework to render the ele...
vtkSmartPointer< vtkAxesActor > m_axesActor
Templated class for management of LocalStorage implementations in Mappers.
Organizes the rendering process.
vtkSmartPointer< vtkOrientationMarkerWidget > m_widget
DataCollection - Class to facilitate loading/accessing structured data.
virtual vtkProp * GetVtkProp(BaseRenderer *renderer) const
This method is implemented by the specific VTKOverlays in order to create the element as a vtkProp...
vtkSmartPointer< vtkSphereSource > m_dummySource
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all LocalStorages for the render windows.
~LocalStorage()
Default deconstructor of the local storage.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
Base class for mapper specific rendering ressources.
Definition: mitkOverlay.h:50
bool m_initialized
Actor of a 2D render window.
vtkSmartPointer< vtkPolyDataMapper > m_dummyMapper
Base class for all overlays.
Definition: mitkOverlay.h:34
LocalStorage()
Default constructor of the local storage.
void UpdateVtkOverlay(mitk::BaseRenderer *renderer)