VTK  9.7.1
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 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkContext2D;
24 class vtkPoints2D;
25 class vtkAxis;
26 
27 class VTKCHARTSCORE_EXPORT VTK_MARSHALAUTO vtkPlotGrid : public vtkContextItem
28 {
29 public:
30  vtkTypeMacro(vtkPlotGrid, vtkContextItem);
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 
53 protected:
54  vtkPlotGrid();
55  ~vtkPlotGrid() override;
56 
58 
65 
66 private:
67  vtkPlotGrid(const vtkPlotGrid&) = delete;
68  void operator=(const vtkPlotGrid&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif // vtkPlotGrid_h
vtkAxis * XAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition: vtkPlotGrid.h:62
base class for items that are part of a vtkContextScene.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition: vtkPlotGrid.h:63
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:49
takes care of drawing 2D axes
Definition: vtkAxis.h:61
a simple class to control print indentation
Definition: vtkIndent.h:28
represent and manipulate 2D points
Definition: vtkPoints2D.h:27
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
takes care of drawing the plot grid
Definition: vtkPlotGrid.h:27
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...