VTK
9.5.20250806
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
21
22
VTK_ABI_NAMESPACE_BEGIN
23
class
vtkContext2D
;
24
class
vtkPoints2D
;
25
class
vtkAxis
;
26
27
class
VTKCHARTSCORE_EXPORT
VTK_MARSHALAUTO
vtkPlotGrid
:
public
vtkContextItem
28
{
29
public
:
30
vtkTypeMacro(
vtkPlotGrid
,
vtkContextItem
);
31
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
32
36
static
vtkPlotGrid
*
New
();
37
41
virtual
void
SetXAxis
(
vtkAxis
* axis);
42
46
virtual
void
SetYAxis
(
vtkAxis
* axis);
47
51
bool
Paint
(
vtkContext2D
* painter)
override
;
52
53
protected
:
54
vtkPlotGrid
();
55
~vtkPlotGrid
()
override
;
56
58
62
vtkAxis
*
XAxis
;
63
vtkAxis
*
YAxis
;
65
66
private
:
67
vtkPlotGrid
(
const
vtkPlotGrid
&) =
delete
;
68
void
operator=(
const
vtkPlotGrid
&) =
delete
;
69
};
70
71
VTK_ABI_NAMESPACE_END
72
#endif
// vtkPlotGrid_h
vtkAxis
takes care of drawing 2D axes
Definition
vtkAxis.h:171
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:46
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkPlotGrid
takes care of drawing the plot grid
Definition
vtkPlotGrid.h:28
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:62
vtkPlotGrid::YAxis
vtkAxis * YAxis
The vtkAxis objects are used to figure out where the grid lines should be drawn.
Definition
vtkPlotGrid.h:63
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
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:60
Generated on Wed Aug 6 2025 14:56:40 for VTK by
1.9.7