Go to the documentation of this file.
24 #ifndef vtkColorLegend_h
25 #define vtkColorLegend_h
27 #include "vtkChartsCoreModule.h"
57 virtual void GetBounds(
double bounds[4]);
85 virtual void SetPoint(
float x,
float y);
90 virtual void SetTextureSize(
float w,
float h);
98 virtual void SetPosition(
const vtkRectf& pos);
120 vtkGetMacro(Orientation,
int);
137 vtkGetMacro(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();
virtual void Update()
Update the geometry of the axis.
data structure to represent mouse events.
static vtkChartLegend * New()
Creates a 2D Chart object.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
abstract base class for most VTK objects
virtual bool Paint(vtkContext2D *painter)
Paint event for the axis, called whenever the axis needs to be drawn.
Class for drawing 2D primitives to a graphical context.
vtkSmartPointer< vtkCallbackCommand > Callback
vtkScalarsToColors * TransferFunction
virtual vtkRectf GetBoundingRect(vtkContext2D *painter)
Request the space the legend requires to be drawn.
vtkSmartPointer< vtkImageData > ImageData
topologically and geometrically regular array of data
a simple class to control print indentation
Superclass for mapping scalar values to colors.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void SetPoint(float, float)
Set point the legend box is anchored to.
Legend item to display vtkScalarsToColors.
takes care of drawing 2D axes
supports function callbacks
Wrapper around std::string to keep symbols short.
vtkSmartPointer< vtkAxis > Axis
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.