24 #ifndef vtkColorLegend_h
25 #define vtkColorLegend_h
27 #include "vtkChartsCoreModule.h"
57 virtual void GetBounds(
double bounds[4]);
64 void Update() VTK_OVERRIDE;
85 void SetPoint(
float x,
float y) VTK_OVERRIDE;
90 virtual
void SetTextureSize(
float w,
float h);
98 virtual
void SetPosition(const
vtkRectf& pos);
120 vtkGetMacro(Orientation,
int);
137 vtkGetMacro(DrawBorder,
bool);
148 ~vtkColorLegend() VTK_OVERRIDE;
154 virtual
void ComputeTexture();
161 virtual
void ScalarsToColorsModified(
vtkObject* caller,
unsigned long eid,
163 static
void OnScalarsToColorsModified(
vtkObject* caller,
unsigned long eid,
164 void *clientdata,
void* calldata);
170 void UpdateAxisPosition();
177 bool CustomPositionSet;
183 vtkColorLegend(const vtkColorLegend &) VTK_DELETE_FUNCTION;
184 void operator=(const vtkColorLegend &) VTK_DELETE_FUNCTION;
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
void Update() override
Update the geometry of the axis.
Legend item to display vtkScalarsToColors.
Hold a reference to a vtkObjectBase instance.
Superclass for mapping scalar values to colors.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Class for drawing 2D primitives to a graphical context.
supports function callbacks
takes care of drawing 2D axes
data structure to represent mouse events.
a simple class to control print indentation
static vtkChartLegend * New()
Creates a 2D Chart object.
topologically and geometrically regular array of data
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.