46 class vtkChartXYPrivate;
109 int GetPlotCorner(
vtkPlot *plot);
112 void SetPlotCorner(
vtkPlot *plot,
int corner);
148 vtkSetMacro(DrawAxesAtOrigin,
bool);
149 vtkGetMacro(DrawAxesAtOrigin,
bool);
150 vtkBooleanMacro(DrawAxesAtOrigin,
bool);
156 vtkSetMacro(AutoAxes,
bool);
157 vtkGetMacro(AutoAxes,
bool);
158 vtkBooleanMacro(AutoAxes,
bool);
163 vtkSetMacro(HiddenAxisBorder,
int);
164 vtkGetMacro(HiddenAxisBorder,
int);
171 vtkSetMacro(ForceAxesToBounds,
bool);
172 vtkGetMacro(ForceAxesToBounds,
bool);
173 vtkBooleanMacro(ForceAxesToBounds,
bool);
183 vtkSetMacro(BarWidthFraction,
float);
184 vtkGetMacro(BarWidthFraction,
float);
230 void RecalculatePlotTransforms();
234 void RecalculatePlotBounds();
244 virtual int GetLegendBorder(
vtkContext2D* painter,
int axisPosition);
248 virtual void SetLegendPosition(
const vtkRectf& rect);
304 vtkChartXYPrivate *ChartPrivate;
308 void CalculateBarPlots();
315 int invokeEvent = -1);
323 bool RemovePlotFromCorners(
vtkPlot *plot);
329 void TransformBoxOrPolygon(
bool polygonMode,
vtkTransform2D *transform,
351 #endif //vtkChartXY_h
Wrapper around std::string to keep symbols short.
data structure to represent key events.
virtual void SetShowLegend(bool visible)
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
vtkContextPolygon SelectionPolygon
virtual vtkIdType GetNumberOfAxes()
virtual void RecalculateBounds()
virtual void PrintSelf(ostream &os, vtkIndent indent)
bool DrawSelectionPolygon
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.
virtual bool KeyPressEvent(const vtkContextKeyEvent &key)
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 void SetSelectionMethod(int method)
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
virtual vtkPlot * AddPlot(int type)
#define VTKCHARTSCORE_EXPORT
virtual vtkAxis * GetAxis(int axisIndex)