VTK
9.3.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
23
VTK_ABI_NAMESPACE_BEGIN
24
class
vtkContext2D
;
25
class
vtkLookupTable
;
26
class
vtkTable
;
27
28
class
VTKCHARTSCORE_EXPORT
vtkPlotSurface
:
public
vtkPlot3D
29
{
30
public
:
31
vtkTypeMacro(
vtkPlotSurface
,
vtkPlot3D
);
32
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
33
static
vtkPlotSurface
*
New
();
34
38
bool
Paint
(
vtkContext2D
* painter)
override
;
39
43
void
SetInputData
(
vtkTable
* input)
override
;
44
46
51
void
SetInputData
(
vtkTable
* input,
const
vtkStdString
& xName,
const
vtkStdString
& yName,
52
const
vtkStdString
& zName)
override
;
53
void
SetInputData
(
vtkTable
* input,
const
vtkStdString
& xName,
const
vtkStdString
& yName,
54
const
vtkStdString
& zName,
const
vtkStdString
& colorName)
override
;
55
void
SetInputData
(
56
vtkTable
* input,
vtkIdType
xColumn,
vtkIdType
yColumn,
vtkIdType
zColumn)
override
;
58
65
void
SetXRange(
float
min,
float
max
);
66
73
void
SetYRange(
float
min,
float
max
);
74
75
protected
:
76
vtkPlotSurface
();
77
~
vtkPlotSurface
()
override
;
78
82
void
GenerateSurface();
83
87
void
InsertSurfaceVertex(
float
*
data
,
float
value
,
int
i,
int
j,
int
& pos);
88
92
void
RescaleData();
93
97
float
ColumnToX(
int
columnIndex);
98
102
float
RowToY(
int
rowIndex);
103
107
vtkNew<vtkPoints>
Surface
;
108
112
vtkIdType
NumberOfRows
;
113
117
vtkIdType
NumberOfColumns
;
118
122
vtkIdType
NumberOfVertices
;
123
127
int
ColorComponents
;
128
132
vtkTable
*
InputTable
;
133
137
vtkNew<vtkLookupTable>
LookupTable
;
138
140
143
float
XMinimum
;
144
float
XMaximum
;
145
float
YMinimum
;
146
float
YMaximum
;
148
153
bool
DataHasBeenRescaled
;
154
155
private
:
156
vtkPlotSurface
(
const
vtkPlotSurface
&) =
delete
;
157
void
operator=(
const
vtkPlotSurface
&) =
delete
;
158
};
159
160
VTK_ABI_NAMESPACE_END
161
#endif // vtkPlotSurface_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:28
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:143
vtkLookupTable
map scalar values into colors via a lookup table
Definition:
vtkLookupTable.h:63
vtkPlotSurface::XMaximum
float XMaximum
user-defined data ranges
Definition:
vtkPlotSurface.h:144
vtkPlotSurface::YMaximum
float YMaximum
user-defined data ranges
Definition:
vtkPlotSurface.h:146
vtkIdType
int vtkIdType
Definition:
vtkType.h:315
vtkPlotSurface::Surface
vtkNew< vtkPoints > Surface
Surface to render.
Definition:
vtkPlotSurface.h:107
vtkPlotSurface
3D surface plot.
Definition:
vtkPlotSurface.h:28
vtkPlotSurface::InputTable
vtkTable * InputTable
The input table used to generate the surface.
Definition:
vtkPlotSurface.h:132
vtkPlotSurface::NumberOfVertices
vtkIdType NumberOfVertices
The number of vertices in the surface.
Definition:
vtkPlotSurface.h:122
vtkPlotSurface::YMinimum
float YMinimum
user-defined data ranges
Definition:
vtkPlotSurface.h:145
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:117
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:137
vtkPlotSurface::ColorComponents
int ColorComponents
The number of components used to color the surface.
Definition:
vtkPlotSurface.h:127
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:112
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:58
vtkX3D::value
Definition:
vtkX3D.h:220
vtkNew< vtkPoints >
vtkPlot3D.h
vtkPlot3D
Abstract class for 3D plots.
Definition:
vtkPlot3D.h:34
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:153
Generated on Sun Mar 23 2025 01:21:36 for VTK by
1.8.10