24 #ifndef vtkColorLegend_h
25 #define vtkColorLegend_h
28 #include "vtkChartsCoreModule.h"
86 void SetPoint(
float x,
float y)
override;
91 virtual void SetTextureSize(
float w,
float h);
99 virtual void SetPosition(
const vtkRectf& pos);
121 vtkGetMacro(Orientation,
int);
137 vtkSetMacro(DrawBorder,
bool);
138 vtkGetMacro(DrawBorder,
bool);
139 vtkBooleanMacro(DrawBorder,
bool);
155 virtual void ComputeTexture();
162 virtual void ScalarsToColorsModified(
vtkObject* caller,
unsigned long eid,
void* calldata);
163 static void OnScalarsToColorsModified(
164 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
170 void UpdateAxisPosition();
Wrapper around std::string to keep symbols short.
void GetBounds(T a, double bds[6])
abstract base class for most VTK objects
virtual vtkRectf GetBoundingRect(vtkContext2D *painter)
Request the space the legend requires to be drawn.
void Update() override
Update the geometry of the axis.
Legend item to display vtkScalarsToColors.
vtkSmartPointer< vtkCallbackCommand > Callback
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
virtual void SetPoint(float, float)
Set point the legend box is anchored to.
vtkScalarsToColors * TransferFunction
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
vtkSmartPointer< vtkImageData > ImageData
bool Paint(vtkContext2D *painter) override
Paint event for the axis, called whenever the axis needs to be drawn.
vtkSmartPointer< vtkAxis > Axis