VTK
9.7.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Charts
Core
vtkPlotSurface.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
16
#ifndef vtkPlotSurface_h
17
#define vtkPlotSurface_h
18
19
#include "vtkChartsCoreModule.h"
// For export macro
20
#include "
vtkNew.h
"
// For vtkNew ivar
21
#include "
vtkPlot3D.h
"
22
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
23
24
VTK_ABI_NAMESPACE_BEGIN
25
class
vtkContext2D
;
26
class
vtkLookupTable
;
27
class
vtkTable
;
28
29
class
VTKCHARTSCORE_EXPORT
VTK_MARSHALAUTO
vtkPlotSurface
:
public
vtkPlot3D
30
{
31
public
:
32
vtkTypeMacro(
vtkPlotSurface
,
vtkPlot3D
);
33
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
34
static
vtkPlotSurface
*
New
();
35
39
bool
Paint
(
vtkContext2D
* painter)
override
;
40
44
void
SetInputData
(
vtkTable
* input)
override
;
45
47
52
void
SetInputData
(
vtkTable
* input,
const
vtkStdString
& xName,
const
vtkStdString
& yName,
53
const
vtkStdString
& zName)
override
;
54
void
SetInputData
(
vtkTable
* input,
const
vtkStdString
& xName,
const
vtkStdString
& yName,
55
const
vtkStdString
& zName,
const
vtkStdString
& colorName)
override
;
56
void
SetInputData
(
57
vtkTable
* input,
vtkIdType
xColumn,
vtkIdType
yColumn,
vtkIdType
zColumn)
override
;
59
66
void
SetXRange(
float
min,
float
max
);
67
74
void
SetYRange(
float
min,
float
max
);
75
76
protected
:
77
vtkPlotSurface
();
78
~
vtkPlotSurface
()
override
;
79
83
void
GenerateSurface();
84
88
void
InsertSurfaceVertex(
float
*
data
,
float
value
,
int
i,
int
j,
int
& pos);
89
93
void
RescaleData();
94
98
float
ColumnToX(
int
columnIndex);
99
103
float
RowToY(
int
rowIndex);
104
108
vtkNew<vtkPoints>
Surface
;
109
113
vtkIdType
NumberOfRows
;
114
118
vtkIdType
NumberOfColumns
;
119
123
vtkIdType
NumberOfVertices
;
124
128
int
ColorComponents
;
129
133
vtkTable
*
InputTable
;
134
138
vtkNew<vtkLookupTable>
LookupTable
;
139
141
144
float
XMinimum
;
145
float
XMaximum
;
146
float
YMinimum
;
147
float
YMaximum
;
149
154
bool
DataHasBeenRescaled
;
155
156
private
:
157
vtkPlotSurface
(
const
vtkPlotSurface
&) =
delete
;
158
void
operator=(
const
vtkPlotSurface
&) =
delete
;
159
};
160
161
VTK_ABI_NAMESPACE_END
162
#endif // vtkPlotSurface_h
vtkX3D::data
Definition:
vtkX3D.h:316
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:27
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
vtkPlotSurface::XMinimum
float XMinimum
user-defined data ranges
Definition:
vtkPlotSurface.h:144
vtkWrappingHints.h
vtkLookupTable
map scalar values into colors via a lookup table
Definition:
vtkLookupTable.h:64
vtkPlotSurface::XMaximum
float XMaximum
user-defined data ranges
Definition:
vtkPlotSurface.h:145
vtkPlotSurface::YMaximum
float YMaximum
user-defined data ranges
Definition:
vtkPlotSurface.h:147
vtkIdType
int vtkIdType
Definition:
vtkType.h:363
vtkPlotSurface::Surface
vtkNew< vtkPoints > Surface
Surface to render.
Definition:
vtkPlotSurface.h:108
vtkPlotSurface
3D surface plot.
Definition:
vtkPlotSurface.h:29
vtkPlotSurface::InputTable
vtkTable * InputTable
The input table used to generate the surface.
Definition:
vtkPlotSurface.h:133
vtkPlotSurface::NumberOfVertices
vtkIdType NumberOfVertices
The number of vertices in the surface.
Definition:
vtkPlotSurface.h:123
vtkPlotSurface::YMinimum
float YMinimum
user-defined data ranges
Definition:
vtkPlotSurface.h:146
vtkPlot3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPlotSurface::NumberOfColumns
vtkIdType NumberOfColumns
The number of columns in the input table.
Definition:
vtkPlotSurface.h:118
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:49
vtkPlotSurface::LookupTable
vtkNew< vtkLookupTable > LookupTable
The lookup table used to color the surface by height (Z dimension).
Definition:
vtkPlotSurface.h:138
vtkPlotSurface::ColorComponents
int ColorComponents
The number of components used to color the surface.
Definition:
vtkPlotSurface.h:128
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:28
vtkPlotSurface::NumberOfRows
vtkIdType NumberOfRows
The number of rows in the input table.
Definition:
vtkPlotSurface.h:113
vtkPlot3D::SetInputData
virtual void SetInputData(vtkTable *input)
Set the input to the plot.
vtkNew.h
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:59
vtkX3D::value
Definition:
vtkX3D.h:221
vtkNew< vtkPoints >
vtkPlot3D.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition:
vtkWrappingHints.h:75
vtkPlot3D
Abstract class for 3D plots.
Definition:
vtkPlot3D.h:35
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
max
#define max(a, b)
Definition:
vtkX3DExporterFIWriterHelper.h:19
vtkPlotSurface::DataHasBeenRescaled
bool DataHasBeenRescaled
true if user-defined data scaling has already been applied, false otherwise.
Definition:
vtkPlotSurface.h:154
Generated on Tue Oct 20 2026 10:47:33 for VTK by
1.8.10