20 #include <vtkScalarBarActor.h>
53 LocalStorage *ls = this->m_LSH.GetLocalStorage(renderer);
61 ls->
m_ScalarBarActor->SetMaximumNumberOfColors(this->GetMaxNumberOfColors());
63 ls->
m_ScalarBarActor->SetAnnotationTextScaling(this->GetAnnotationTextScaling());
65 if (this->GetOrientation() == 1)
82 LocalStorage *ls = this->m_LSH.GetLocalStorage(renderer);
88 SetBoolProperty(
"ColorBarOverlay.DrawAnnotations", annotations);
94 GetPropertyList()->GetBoolProperty(
"ColorBarOverlay.DrawAnnotations", annotations);
102 lut->SetVtkLookupTable(table);
103 prop->SetLookupTable(lut);
104 SetProperty(
"ColorBarOverlay.LookupTable", prop.GetPointer());
112 return lut->GetVtkLookupTable();
117 SetIntProperty(
"ColorBarOverlay.Orientation", orientation);
123 GetPropertyList()->GetIntProperty(
"ColorBarOverlay.Orientation", orientation);
129 SetBoolProperty(
"ColorBarOverlay.DrawTicks", ticks);
135 GetPropertyList()->GetBoolProperty(
"ColorBarOverlay.DrawTicks", ticks);
151 SetIntProperty(
"ColorBarOverlay.MaximumNumberOfColors", numberOfColors);
157 GetPropertyList()->GetIntProperty(
"ColorBarOverlay.MaximumNumberOfColors", numberOfColors);
158 return numberOfColors;
163 SetIntProperty(
"ColorBarOverlay.NumberOfLabels", numberOfLabels);
169 GetPropertyList()->GetIntProperty(
"ColorBarOverlay.NumberOfLabels", numberOfLabels);
170 return numberOfLabels;
175 SetBoolProperty(
"ColorBarOverlay.ScaleAnnotationText", scale);
181 GetPropertyList()->GetBoolProperty(
"ColorBarOverlay.ScaleAnnotationText", scale);
LocalStorage()
Default constructor of the local storage.
void SetDrawAnnotations(bool annotations)
ColorBarOverlay()
explicit constructor which disallows implicit conversions
int GetMaxNumberOfColors() const
Organizes the rendering process.
void SetOrientation(int orientation)
int GetNumberOfLabels() const
void SetAnnotationTextScaling(bool scale)
void SetOrientationToVertical()
void SetMaxNumberOfColors(int numberOfColors)
~LocalStorage()
Default deconstructor of the local storage.
void SetDrawTickLabels(bool ticks)
virtual vtkProp * GetVtkProp(BaseRenderer *renderer) const override
This method is implemented by the specific VTKOverlays in order to create the element as a vtkProp...
The LookupTableProperty class Property to associate mitk::LookupTable to an mitk::DataNode.
vtkSmartPointer< vtkScalarBarActor > m_ScalarBarActor
Actor of a 2D render window.
void SetLookupTable(vtkSmartPointer< vtkLookupTable > table)
void SetNumberOfLabels(int numberOfLabels)
vtkSmartPointer< vtkLookupTable > GetLookupTable() const
bool GetDrawTickLabels() const
void SetOrientationToHorizontal()
bool IsGenerateDataRequired(mitk::BaseRenderer *renderer, mitk::Overlay *overlay)
virtual ~ColorBarOverlay()
virtual destructor in order to derive from this class
int GetOrientation() const
virtual void UpdateVtkOverlay(BaseRenderer *renderer) override
bool GetAnnotationTextScaling() const
bool GetDrawAnnotations() const
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.