Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkScaleLegendOverlay.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 SCALELEGENDOVERLAY_H
18 #define SCALELEGENDOVERLAY_H
19 
20 #include "MitkOverlaysExports.h"
22 #include <mitkVtkOverlay.h>
23 #include <vtkSmartPointer.h>
24 
25 class vtkLegendScaleActor;
26 
27 namespace mitk
28 {
31  {
32  public:
34  {
35  public:
37  vtkSmartPointer<vtkLegendScaleActor> m_legendScaleActor;
38 
40  itk::TimeStamp m_LastUpdateTime;
41 
43  LocalStorage();
45  ~LocalStorage();
46  };
47 
49  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
50 
51  void SetRightAxisVisibility(bool visibility);
52  bool GetRightAxisVisibility() const;
53 
54  void SetLeftAxisVisibility(bool visibility);
55  bool GetLeftAxisVisibility() const;
56 
57  void SetTopAxisVisibility(bool visibility);
58  bool GetTopAxisVisibility() const;
59 
60  void SetBottomAxisVisibility(bool visibility);
61  bool GetBottomAxisVisibility() const;
62 
63  void SetLegendVisibility(bool visibility);
64  bool GetLegendVisibility() const;
65 
66  void SetRightBorderOffset(int offset);
67  int GetRightBorderOffset() const;
68 
69  void SetCornerOffsetFactor(float offsetFactor);
70  float GetCornerOffsetFactor() const;
71 
72  protected:
75 
76  virtual vtkProp *GetVtkProp(BaseRenderer *renderer) const override;
77  virtual void UpdateVtkOverlay(BaseRenderer *renderer) override;
78 
80  explicit ScaleLegendOverlay();
81 
83  virtual ~ScaleLegendOverlay();
84 
85  private:
87  ScaleLegendOverlay(const ScaleLegendOverlay &);
88 
90  ScaleLegendOverlay &operator=(const ScaleLegendOverlay &);
91  };
92 
93 } // namespace mitk
94 #endif // SCALELEGENDOVERLAY_H
The VtkOverlay class is the base for all Overlays which are using the VTK framework to render the ele...
Templated class for management of LocalStorage implementations in Mappers.
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Displays configurable scales on the renderwindow. The scale is determined by the image spacing...
static Vector3D offset
vtkSmartPointer< vtkLegendScaleActor > m_legendScaleActor
Actor of a 2D render window.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for mapper specific rendering ressources.
Definition: mitkOverlay.h:50
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
#define MITKOVERLAYS_EXPORT
Base class for all overlays.
Definition: mitkOverlay.h:34