14 #include <vtkAxisActor2D.h> 15 #include <vtkLegendScaleActor.h> 16 #include <vtkTextProperty.h> 50 m_legendScaleActor = vtkSmartPointer<vtkLegendScaleActor>::New();
84 SetBoolProperty(
"ScaleLegendAnnotation.RightAxisVisibility", visibility);
96 SetBoolProperty(
"ScaleLegendAnnotation.LeftAxisVisibility", visibility);
108 SetBoolProperty(
"ScaleLegendAnnotation.TopAxisVisibility", visibility);
120 SetBoolProperty(
"ScaleLegendAnnotation.BottomAxisVisibility", visibility);
132 SetBoolProperty(
"ScaleLegendAnnotation.SetLegendVisibility", visibility);
144 SetIntProperty(
"ScaleLegendAnnotation.RightBorderOffset", offset);
180 SetIntProperty(
"ScaleLegendAnnotation.BottomBorderOffset", offset);
void SetTopAxisVisibility(bool visibility)
L * GetLocalStorage(mitk::BaseRenderer *forRenderer)
Retrieves a LocalStorage for a specific BaseRenderer.
void UpdateVtkAnnotation(BaseRenderer *renderer) override
vtkProp * GetVtkProp(BaseRenderer *renderer) const override
This method is implemented by the specific VTKAnnotation in order to create the element as a vtkProp...
std::vector< mitk::BaseRenderer * > GetRegisteredBaseRenderer()
bool GetIntProperty(const char *propertyKey, int &intValue) const
Convenience method to access the value of an IntProperty.
~ScaleLegendAnnotation() override
virtual destructor in order to derive from this class
Organizes the rendering process.
bool IsGenerateDataRequired(mitk::BaseRenderer *renderer, mitk::Annotation *Annotation)
vtkSmartPointer< vtkLegendScaleActor > m_legendScaleActor
Actor of a 2D render window.
LocalStorage()
Default constructor of the local storage.
void SetTopBorderOffset(int offset)
void SetLegendVisibility(bool visibility)
void SetFontFactor(double fontFactor)
bool GetBottomAxisVisibility() const
void SetLeftBorderOffset(int offset)
void SetBottomAxisVisibility(bool visibility)
void SetDoubleProperty(const std::string &propertyKey, double doubleValue)
Convenience method for setting int properties (instances of IntProperty)
double GetFontFactor() const
int GetLeftBorderOffset() const
void SetRightAxisVisibility(bool visibility)
bool GetLeftAxisVisibility() const
int GetBottomBorderOffset() const
bool GetTopAxisVisibility() const
void RemoveFromBaseRenderer(BaseRenderer *renderer) override
Removes the Annotation from the specified renderer. It is not visible anymore then.
void SetBoolProperty(const std::string &propertyKey, bool boolValue)
Convenience method for setting int properties (instances of IntProperty)
~LocalStorage()
Default deconstructor of the local storage.
bool GetLegendVisibility() const
int GetRightBorderOffset() const
ScaleLegendAnnotation()
explicit constructor which disallows implicit conversions
void SetCornerOffsetFactor(double offsetFactor)
PropertyList * GetPropertyList() const
void SetRightBorderOffset(int offset)
bool GetBoolProperty(const char *propertyKey, bool &boolValue) const
Convenience method to access the value of a BoolProperty.
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all LocalStorages for the render windows.
double GetCornerOffsetFactor() const
void SetIntProperty(const std::string &propertyKey, int intValue)
Convenience method for setting int properties (instances of IntProperty)
bool GetRightAxisVisibility() const
void SetBottomBorderOffset(int offset)
bool GetDoubleProperty(const char *propertyKey, double &doubleValue) const
Convenience method to access the value of a DoubleProperty.
void SetLeftAxisVisibility(bool visibility)
int GetTopBorderOffset() const