37 #include "vtkChartsCoreModule.h" 47 class vtkChartXYPrivate;
65 void Update() VTK_OVERRIDE;
91 void ClearPlots() VTK_OVERRIDE;
117 virtual
vtkIdType StackPlotAbove(vtkPlot* plot, vtkPlot* under);
132 virtual
vtkIdType StackPlotUnder(vtkPlot* plot, vtkPlot* above);
137 vtkIdType GetNumberOfPlots() VTK_OVERRIDE;
142 int GetPlotCorner(vtkPlot* plot);
147 void SetPlotCorner(vtkPlot* plot,
int corner);
154 vtkAxis* GetAxis(
int axisIndex) VTK_OVERRIDE;
159 void SetShowLegend(
bool visible) VTK_OVERRIDE;
179 vtkIdType GetNumberOfAxes() VTK_OVERRIDE;
185 void RecalculateBounds() VTK_OVERRIDE;
194 void SetSelectionMethod(
int method) VTK_OVERRIDE;
201 vtkGetMacro(DrawAxesAtOrigin,
bool);
211 vtkGetMacro(AutoAxes,
bool);
220 vtkGetMacro(HiddenAxisBorder,
int);
230 vtkGetMacro(ForceAxesToBounds,
bool);
243 vtkGetMacro(BarWidthFraction,
float);
254 vtkGetMacro(ZoomWithMouseWheel,
bool);
265 vtkGetMacro(AdjustLowerBoundForLogPlot,
bool);
273 vtkIdType segmentIndex = -1);
278 bool Hit(const vtkContextMouseEvent& mouse) VTK_OVERRIDE;
283 bool MouseEnterEvent(const vtkContextMouseEvent& mouse) VTK_OVERRIDE;
288 bool MouseMoveEvent(const vtkContextMouseEvent& mouse) VTK_OVERRIDE;
293 bool MouseLeaveEvent(const vtkContextMouseEvent& mouse) VTK_OVERRIDE;
298 bool MouseButtonPressEvent(const vtkContextMouseEvent& mouse) VTK_OVERRIDE;
303 bool MouseButtonReleaseEvent(const vtkContextMouseEvent& mouse) VTK_OVERRIDE;
308 bool MouseWheelEvent(const vtkContextMouseEvent& mouse,
int delta) VTK_OVERRIDE;
317 ~vtkChartXY() VTK_OVERRIDE;
322 void RecalculatePlotTransforms();
328 void RecalculatePlotBounds();
342 virtual
int GetLegendBorder(
vtkContext2D* painter,
int axisPosition);
348 virtual
void SetLegendPosition(const
vtkRectf& rect);
363 bool PlotTransformValid;
384 bool DrawSelectionPolygon;
389 bool DrawNearestPoint;
396 bool DrawAxesAtOrigin;
406 int HiddenAxisBorder;
412 float BarWidthFraction;
419 bool ForceAxesToBounds;
425 bool ZoomWithMouseWheel;
431 bool AdjustLowerBoundForLogPlot;
434 vtkChartXY(const vtkChartXY&) VTK_DELETE_FUNCTION;
435 void operator=(const vtkChartXY&) VTK_DELETE_FUNCTION;
437 vtkChartXYPrivate* ChartPrivate;
442 void CalculateBarPlots();
449 bool LocatePointInPlots(const vtkContextMouseEvent& mouse,
int invokeEvent = -1);
452 vtkVector2f& plotPos, vtkPlot* plot, vtkIdType& segmentIndex);
457 bool RemovePlotFromCorners(vtkPlot* plot);
464 void TransformBoxOrPolygon(
bool polygonMode,
vtkTransform2D* transform,
484 #endif // vtkChartXY_h Wrapper around std::string to keep symbols short.
data structure to represent key events.
Hold a reference to a vtkObjectBase instance.
Class for drawing 2D primitives to a graphical context.
Factory class for drawing 2D charts.
takes care of drawing 2D axes
data structure to represent mouse events.
vtkVector2i ScreenPosition
a simple class to control print indentation
Some derived classes for the different vectors commonly used.
Abstract class for 2D plots.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Factory class for drawing XY charts.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Small struct used by InvokeEvent to send some information about the point that was clicked on...
takes care of drawing the plot grid
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Update()
Perform any updates to the item that may be necessary before rendering.