24 #ifndef vtkColorLegend_h 25 #define vtkColorLegend_h 27 #include "vtkChartsCoreModule.h" 57 virtual void GetBounds(
double bounds[4]);
85 void SetPoint(
float x,
float y)
override;
90 virtual void SetTextureSize(
float w,
float h);
98 virtual void SetPosition(
const vtkRectf& pos);
120 vtkGetMacro(Orientation,
int);
136 vtkSetMacro(DrawBorder,
bool);
137 vtkGetMacro(DrawBorder,
bool);
138 vtkBooleanMacro(DrawBorder,
bool);
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();
Wrapper around std::string to keep symbols short.
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