VTK  9.3.0
vtkPlotGrid.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
15#ifndef vtkPlotGrid_h
16#define vtkPlotGrid_h
17
18#include "vtkChartsCoreModule.h" // For export macro
19#include "vtkContextItem.h"
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkContext2D;
23class vtkPoints2D;
24class vtkAxis;
25
26class VTKCHARTSCORE_EXPORT vtkPlotGrid : public vtkContextItem
27{
28public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
35 static vtkPlotGrid* New();
36
40 virtual void SetXAxis(vtkAxis* axis);
41
45 virtual void SetYAxis(vtkAxis* axis);
46
50 bool Paint(vtkContext2D* painter) override;
51
52protected:
54 ~vtkPlotGrid() override;
55
57
64
65private:
66 vtkPlotGrid(const vtkPlotGrid&) = delete;
67 void operator=(const vtkPlotGrid&) = delete;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif // vtkPlotGrid_h
takes care of drawing 2D axes
Definition vtkAxis.h:61
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
a simple class to control print indentation
Definition vtkIndent.h:29
takes care of drawing the plot grid
Definition vtkPlotGrid.h:27
~vtkPlotGrid() override
static vtkPlotGrid * New()
Creates a 2D Chart object.
virtual void SetYAxis(vtkAxis *axis)
Set the X axis of the grid.
vtkAxis * XAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition vtkPlotGrid.h:61
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition vtkPlotGrid.h:62
bool Paint(vtkContext2D *painter) override
Paint event for the axis, called whenever the axis needs to be drawn.
virtual void SetXAxis(vtkAxis *axis)
Set the X axis of the grid.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 2D points
Definition vtkPoints2D.h:26