VTK  9.1.0
vtkPlotGrid.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPlotGrid.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
27#ifndef vtkPlotGrid_h
28#define vtkPlotGrid_h
29
30#include "vtkChartsCoreModule.h" // For export macro
31#include "vtkContextItem.h"
32
33class vtkStdString;
34class vtkContext2D;
35class vtkPoints2D;
36class vtkAxis;
37
38class VTKCHARTSCORE_EXPORT vtkPlotGrid : public vtkContextItem
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
47 static vtkPlotGrid* New();
48
52 virtual void SetXAxis(vtkAxis* axis);
53
57 virtual void SetYAxis(vtkAxis* axis);
58
62 bool Paint(vtkContext2D* painter) override;
63
64protected:
66 ~vtkPlotGrid() override;
67
69
76
77private:
78 vtkPlotGrid(const vtkPlotGrid&) = delete;
79 void operator=(const vtkPlotGrid&) = delete;
80};
81
82#endif // vtkPlotGrid_h
takes care of drawing 2D axes
Definition: vtkAxis.h:178
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:73
base class for items that are part of a vtkContextScene.
a simple class to control print indentation
Definition: vtkIndent.h:113
takes care of drawing the plot grid
Definition: vtkPlotGrid.h:39
~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:73
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition: vtkPlotGrid.h:74
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:34
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:105