23 #ifndef __vtkColorLegend_h
24 #define __vtkColorLegend_h
26 #include "vtkChartsCoreModule.h"
29 #include "vtkVector.h"
45 virtual void GetBounds(
double bounds[4]);
55 virtual bool Paint(vtkContext2D *painter);
60 virtual void SetPosition(
const vtkRectf& pos);
61 virtual vtkRectf GetPosition();
77 virtual void ComputeTexture();
82 virtual void ScalarsToColorsModified(
vtkObject* caller,
unsigned long eid,
84 static void OnScalarsToColorsModified(
vtkObject* caller,
unsigned long eid,
85 void *clientdata,
void* calldata);
abstract base class for most VTK objects
virtual vtkRectf GetBoundingRect(vtkContext2D *painter)
Legend item to display vtkScalarsToColors.
vtkSmartPointer< vtkCallbackCommand > Callback
Superclass for mapping scalar values to colors.
supports function callbacks
takes care of drawing 2D axes
a simple class to control print indentation
static vtkChartLegend * New()
vtkScalarsToColors * TransferFunction
vtkSmartPointer< vtkImageData > ImageData
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual bool Paint(vtkContext2D *painter)
vtkSmartPointer< vtkAxis > Axis