VTK
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 virtual void PrintSelf(ostream &os, vtkIndent indent);
43
47 static vtkPlotGrid *New();
48
52 virtual void SetXAxis(vtkAxis *axis);
53
57 virtual void SetYAxis(vtkAxis *axis);
58
62 virtual bool Paint(vtkContext2D *painter);
63
64protected:
67
69
76
77private:
78 vtkPlotGrid(const vtkPlotGrid &) VTK_DELETE_FUNCTION;
79 void operator=(const vtkPlotGrid &) VTK_DELETE_FUNCTION;
80
81};
82
83#endif //vtkPlotGrid_h
takes care of drawing 2D axes
Definition: vtkAxis.h:72
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
base class for items that are part of a vtkContextScene.
a simple class to control print indentation
Definition: vtkIndent.h:40
takes care of drawing the plot grid
Definition: vtkPlotGrid.h:39
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
virtual bool Paint(vtkContext2D *painter)
Paint event for the axis, called whenever the axis needs to be drawn.
vtkAxis * YAxis
Definition: vtkPlotGrid.h:74
virtual void SetXAxis(vtkAxis *axis)
Set the X axis of the grid.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 2D points
Definition: vtkPoints2D.h:37
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49