35 #include "vtkChartsCoreModule.h"
36 #include "vtkContextItem.h"
44 class vtkContextMapper2D;
52 class VTKCHARTSCORE_EXPORT
vtkPlot :
public vtkContextItem
56 virtual void PrintSelf(ostream &os,
vtkIndent indent);
64 virtual bool PaintLegend(vtkContext2D *painter,
const vtkRectf& rect,
77 virtual void SetTooltipLabelFormat(
const vtkStdString &label);
83 virtual void SetTooltipNotation(
int notation);
84 virtual int GetTooltipNotation();
89 virtual void SetTooltipPrecision(
int precision);
90 virtual int GetTooltipPrecision();
97 virtual vtkStdString GetTooltipLabel(
const vtkVector2f &plotPos,
106 virtual vtkIdType GetNearestPoint(
const vtkVector2f& point,
107 const vtkVector2f& tolerance,
108 vtkVector2f* location);
112 virtual bool SelectPoints(
const vtkVector2f& min,
const vtkVector2f& max);
122 virtual void SetColor(
unsigned char r,
unsigned char g,
unsigned char b,
124 virtual void SetColor(
double r,
double g,
double b);
125 virtual void GetColor(
double rgb[3]);
126 void GetColor(
unsigned char rgb[3]);
130 virtual void SetWidth(
float width);
133 virtual float GetWidth();
138 void SetPen(vtkPen *pen);
144 void SetBrush(vtkBrush *brush);
145 vtkBrush* GetBrush();
164 virtual int GetNumberOfLabels();
179 vtkContextMapper2D* GetData();
185 vtkGetMacro(UseIndexForXSeries,
bool);
192 vtkSetMacro(UseIndexForXSeries,
bool);
198 virtual void SetInputData(vtkTable *table);
199 virtual void SetInputData(vtkTable *table,
const vtkStdString &xColumn,
205 virtual vtkTable* GetInput();
210 virtual void SetInputArray(
int index,
const vtkStdString &name);
217 vtkGetObjectMacro(XAxis,
vtkAxis);
218 virtual void SetXAxis(
vtkAxis* axis);
223 vtkGetObjectMacro(YAxis,
vtkAxis);
224 virtual void SetYAxis(
vtkAxis* axis);
231 { bounds[0] = bounds[1] = bounds[2] = bounds[3] = 0.0; }
253 return this->GetBounds(bounds);
320 void operator=(
const vtkPlot &);
Wrapper around std::string to keep symbols short.
vtkSmartPointer< vtkStringArray > IndexedLabels
vtkSmartPointer< vtkBrush > Brush
virtual void GetBounds(double bounds[4])
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
A atomic type representing the union of many types.
vtkStdString TooltipDefaultLabelFormat
vtkIdTypeArray * Selection
takes care of drawing 2D axes
a simple class to control print indentation
vtkSmartPointer< vtkContextMapper2D > Data
Abstract class for 2D plots.
vtkSmartPointer< vtkStringArray > Labels
vtkSmartPointer< vtkStringArray > AutoLabels
virtual void GetUnscaledInputBounds(double bounds[4])
vtkStdString TooltipLabelFormat
vtkSmartPointer< vtkPen > Pen