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 
33 class vtkStdString;
34 class vtkContext2D;
35 class vtkPoints2D;
36 class vtkAxis;
37 
38 class VTKCHARTSCORE_EXPORT vtkPlotGrid : public vtkContextItem
39 {
40 public:
41  vtkTypeMacro(vtkPlotGrid, vtkContextItem);
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 
64 protected:
65  vtkPlotGrid();
66  ~vtkPlotGrid();
67 
69 
76 
77 private:
78  vtkPlotGrid(const vtkPlotGrid &) VTK_DELETE_FUNCTION;
79  void operator=(const vtkPlotGrid &) VTK_DELETE_FUNCTION;
80 
81 };
82 
83 #endif //vtkPlotGrid_h
vtkAxis * XAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition: vtkPlotGrid.h:73
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
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:74
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:57
takes care of drawing 2D axes
Definition: vtkAxis.h:71
a simple class to control print indentation
Definition: vtkIndent.h:39
represent and manipulate 2D points
Definition: vtkPoints2D.h:36
takes care of drawing the plot grid
Definition: vtkPlotGrid.h:38
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...