VTK
9.3.20240419
Charts
Core
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
21
VTK_ABI_NAMESPACE_BEGIN
22
class
vtkContext2D
;
23
class
vtkPoints2D
;
24
class
vtkAxis
;
25
26
class
VTKCHARTSCORE_EXPORT
vtkPlotGrid
:
public
vtkContextItem
27
{
28
public
:
29
vtkTypeMacro(
vtkPlotGrid
,
vtkContextItem
);
30
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
31
35
static
vtkPlotGrid
*
New
();
36
40
virtual
void
SetXAxis
(
vtkAxis
* axis);
41
45
virtual
void
SetYAxis
(
vtkAxis
* axis);
46
50
bool
Paint
(
vtkContext2D
* painter)
override
;
51
52
protected
:
53
vtkPlotGrid
();
54
~vtkPlotGrid
()
override
;
55
57
61
vtkAxis
*
XAxis
;
62
vtkAxis
*
YAxis
;
64
65
private
:
66
vtkPlotGrid
(
const
vtkPlotGrid
&) =
delete
;
67
void
operator=(
const
vtkPlotGrid
&) =
delete
;
68
};
69
70
VTK_ABI_NAMESPACE_END
71
#endif
// vtkPlotGrid_h
vtkAxis
takes care of drawing 2D axes
Definition:
vtkAxis.h:170
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:69
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition:
vtkContextItem.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:108
vtkPlotGrid
takes care of drawing the plot grid
Definition:
vtkPlotGrid.h:27
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:61
vtkPlotGrid::YAxis
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition:
vtkPlotGrid.h:62
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:27
vtkContextItem.h
Generated on Fri Apr 19 2024 10:37:36 for VTK by
1.9.1