32 #ifndef __vtkChartXY_h
33 #define __vtkChartXY_h
44 class vtkChartXYPrivate;
85 int GetPlotCorner(
vtkPlot *plot);
88 void SetPlotCorner(
vtkPlot *plot,
int corner);
114 vtkSetMacro(DrawAxesAtOrigin,
bool);
115 vtkGetMacro(DrawAxesAtOrigin,
bool);
116 vtkBooleanMacro(DrawAxesAtOrigin,
bool);
122 vtkSetMacro(AutoAxes,
bool);
123 vtkGetMacro(AutoAxes,
bool);
124 vtkBooleanMacro(AutoAxes,
bool);
129 vtkSetMacro(HiddenAxisBorder,
int);
130 vtkGetMacro(HiddenAxisBorder,
int);
137 vtkSetMacro(ForceAxesToBounds,
bool);
138 vtkGetMacro(ForceAxesToBounds,
bool);
139 vtkBooleanMacro(ForceAxesToBounds,
bool);
149 vtkSetMacro(BarWidthFraction,
float);
150 vtkGetMacro(BarWidthFraction,
float);
193 void RecalculatePlotTransforms();
197 void RecalculatePlotBounds();
207 virtual int GetLegendBorder(
vtkContext2D* painter,
int axisPosition);
211 virtual void SetLegendPosition(
const vtkRectf& rect);
260 vtkChartXYPrivate *ChartPrivate;
264 void CalculateBarPlots();
271 int invokeEvent = -1);
275 bool RemovePlotFromCorners(
vtkPlot *plot);
277 void ZoomInAxes(
vtkAxis *x,
vtkAxis *y,
float *orign,
float *max);
295 #endif //__vtkChartXY_h
Wrapper around vtkstd::string to keep symbols short.
virtual void SetShowLegend(bool visible)
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
virtual vtkIdType GetNumberOfAxes()
virtual void RecalculateBounds()
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void ClearPlots()
Class for drawing 2D primitives to a graphical context.
Factory class for drawing 2D charts.
virtual bool RemovePlot(vtkIdType index)
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
takes care of drawing 2D axes
data structure to represent mouse events.
vtkVector2i ScreenPosition
virtual vtkChartLegend * GetLegend()
a simple class to control print indentation
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
virtual vtkIdType GetNumberOfPlots()
Abstract class for 2D plots.
vtkSmartPointer< vtkChartLegend > Legend
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Factory class for drawing XY charts.
virtual bool Paint(vtkContext2D *painter)=0
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
takes care of drawing the plot grid
virtual bool Hit(const vtkContextMouseEvent &mouse)
virtual vtkPlot * GetPlot(vtkIdType index)
vtkSmartPointer< vtkTooltipItem > Tooltip
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
virtual vtkPlot * AddPlot(int type)
virtual vtkAxis * GetAxis(int axisIndex)