13 #ifndef mitkColorBarAnnotation_h
14 #define mitkColorBarAnnotation_h
19 #include <vtkLookupTable.h>
20 #include <vtkSmartPointer.h>
22 class vtkScalarBarActor;
55 itkFactorylessNewMacro(Self);
#define MITKANNOTATION_EXPORT
Base class for mapper specific rendering resources.
Organizes the rendering process.
Per-renderer local storage for the scalar bar actor.
~LocalStorage()
Default destructor of the local storage.
vtkSmartPointer< vtkScalarBarActor > m_ScalarBarActor
The vtkScalarBarActor used for rendering.
LocalStorage()
Default constructor of the local storage.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
Displays a configurable color bar (scalar bar) on the render window.
vtkProp * GetVtkProp(BaseRenderer *renderer) const override
Create the VTK prop representing this annotation.
void SetLookupTable(vtkSmartPointer< vtkLookupTable > table)
Set the lookup table used for the color mapping.
void UpdateVtkAnnotation(BaseRenderer *renderer) override
void SetAnnotationTextScaling(bool scale)
Enable or disable text scaling on the annotation.
bool GetDrawAnnotations() const
Query whether text annotations are drawn.
bool GetDrawTickLabels() const
Query whether tick labels are drawn.
void SetOrientationToHorizontal()
Set the color bar orientation to horizontal.
bool GetAnnotationTextScaling() const
Query whether annotation text scaling is enabled.
void SetOrientationToVertical()
Set the color bar orientation to vertical.
mitkClassMacro(ColorBarAnnotation, mitk::VtkAnnotation)
int GetMaxNumberOfColors() const
Get the maximum number of colors.
ColorBarAnnotation()
explicit constructor which disallows implicit conversions
void SetDrawAnnotations(bool annotations)
Enable or disable drawing of text annotations on the color bar.
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all LocalStorages for the render windows.
int GetOrientation() const
Get the current orientation.
void SetOrientation(int orientation)
Set the color bar orientation.
void SetDrawTickLabels(bool ticks)
Enable or disable drawing of tick labels.
vtkSmartPointer< vtkLookupTable > GetLookupTable() const
Get the current lookup table.
void SetNumberOfLabels(int numberOfLabels)
Set the number of labels displayed on the bar.
void SetMaxNumberOfColors(int numberOfColors)
Set the maximum number of colors in the bar.
~ColorBarAnnotation() override
virtual destructor in order to derive from this class
int GetNumberOfLabels() const
Get the number of labels.
Base class for all annotations that use the VTK framework for rendering.
Find image slices visible on a given plane.