VTK  9.5.20250806
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkContext2D;
24class vtkPoints2D;
25class vtkAxis;
26
27class VTKCHARTSCORE_EXPORT VTK_MARSHALAUTO vtkPlotGrid : public vtkContextItem
28{
29public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
36 static vtkPlotGrid* New();
37
41 virtual void SetXAxis(vtkAxis* axis);
42
46 virtual void SetYAxis(vtkAxis* axis);
47
51 bool Paint(vtkContext2D* painter) override;
52
53protected:
55 ~vtkPlotGrid() override;
56
58
65
66private:
67 vtkPlotGrid(const vtkPlotGrid&) = delete;
68 void operator=(const vtkPlotGrid&) = delete;
69};
70
71VTK_ABI_NAMESPACE_END
72#endif // vtkPlotGrid_h
takes care of drawing 2D axes
Definition vtkAxis.h:171
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:108
takes care of drawing the plot grid
Definition vtkPlotGrid.h:28
~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:62
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition vtkPlotGrid.h:63
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:27
#define VTK_MARSHALAUTO