VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Charts
Core
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
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
64
protected
:
65
vtkPlotGrid
();
66
~vtkPlotGrid
()
override
;
67
69
73
vtkAxis
*
XAxis
;
74
vtkAxis
*
YAxis
;
76
77
private
:
78
vtkPlotGrid
(
const
vtkPlotGrid
&) =
delete
;
79
void
operator=(
const
vtkPlotGrid
&) =
delete
;
80
};
81
82
#endif
// vtkPlotGrid_h
vtkAxis
takes care of drawing 2D axes
Definition:
vtkAxis.h:178
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:73
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition:
vtkContextItem.h:53
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkPlotGrid
takes care of drawing the plot grid
Definition:
vtkPlotGrid.h:39
vtkPlotGrid::~vtkPlotGrid
~vtkPlotGrid() override
vtkPlotGrid::New
static vtkPlotGrid * New()
Creates a 2D Chart object.
vtkPlotGrid::SetYAxis
virtual void SetYAxis(vtkAxis *axis)
Set the X axis of the grid.
vtkPlotGrid::XAxis
vtkAxis * XAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition:
vtkPlotGrid.h:73
vtkPlotGrid::YAxis
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition:
vtkPlotGrid.h:74
vtkPlotGrid::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the axis, called whenever the axis needs to be drawn.
vtkPlotGrid::SetXAxis
virtual void SetXAxis(vtkAxis *axis)
Set the X axis of the grid.
vtkPlotGrid::vtkPlotGrid
vtkPlotGrid()
vtkPlotGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:34
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:105
vtkContextItem.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4