VTK
dox
Charts
Core
vtkPlotSurface.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPlotSurface.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
25
#ifndef vtkPlotSurface_h
26
#define vtkPlotSurface_h
27
28
#include "vtkChartsCoreModule.h"
// For export macro
29
#include "
vtkNew.h
"
// For vtkNew ivar
30
#include "
vtkPlot3D.h
"
31
32
class
vtkContext2D
;
33
class
vtkLookupTable
;
34
class
vtkTable
;
35
36
class
VTKCHARTSCORE_EXPORT
vtkPlotSurface
:
public
vtkPlot3D
37
{
38
public
:
39
vtkTypeMacro(
vtkPlotSurface
,
vtkPlot3D
);
40
void
PrintSelf
(ostream &os,
vtkIndent
indent) VTK_OVERRIDE;
41
static
vtkPlotSurface
*
New
();
42
46
bool
Paint
(
vtkContext2D
*painter) VTK_OVERRIDE;
47
51
void
SetInputData
(
vtkTable
*input) VTK_OVERRIDE;
52
54
59
void
SetInputData
(
vtkTable
*input,
const
vtkStdString
&xName,
60
const
vtkStdString
&yName,
61
const
vtkStdString
&zName) VTK_OVERRIDE;
62
void
SetInputData
(
vtkTable
*input,
const
vtkStdString
&xName,
63
const
vtkStdString
&yName,
64
const
vtkStdString
&zName,
65
const
vtkStdString
&colorName) VTK_OVERRIDE;
66
void
SetInputData
(
vtkTable
*input,
vtkIdType
xColumn,
67
vtkIdType
yColumn,
vtkIdType
zColumn) VTK_OVERRIDE;
69
76
void
SetXRange(
float
min,
float
max
);
77
84
void
SetYRange(
float
min,
float
max
);
85
86
protected
:
87
vtkPlotSurface
();
88
~
vtkPlotSurface
() VTK_OVERRIDE;
89
93
void
GenerateSurface();
94
98
void
InsertSurfaceVertex(
float
*
data
,
float
value
,
int
i,
int
j,
int
&pos);
99
103
void
RescaleData();
104
108
float
ColumnToX(
int
columnIndex);
109
113
float
RowToY(
int
rowIndex);
114
118
std::
vector
<
vtkVector3f
> Surface;
119
123
vtkIdType
NumberOfRows;
124
128
vtkIdType
NumberOfColumns;
129
133
vtkIdType
NumberOfVertices;
134
138
int
ColorComponents;
139
143
vtkTable
*InputTable;
144
148
vtkNew
<
vtkLookupTable
> LookupTable;
149
151
154
float
XMinimum;
155
float
XMaximum;
156
float
YMinimum;
157
float
YMaximum;
159
164
bool
DataHasBeenRescaled;
165
166
private:
167
vtkPlotSurface
(const
vtkPlotSurface
&) VTK_DELETE_FUNCTION;
168
void
operator=(const
vtkPlotSurface
&) VTK_DELETE_FUNCTION;
169
170
};
171
172
#endif //vtkPlotSurface_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:41
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
vtkVector3f
Definition:
vtkVector.h:368
vtkLookupTable
map scalar values into colors via a lookup table
Definition:
vtkLookupTable.h:68
vtkIdType
int vtkIdType
Definition:
vtkType.h:345
vtkPlotSurface
3D surface plot.
Definition:
vtkPlotSurface.h:36
vtkPlot3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:52
vtkX3D::vector
Definition:
vtkX3D.h:237
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
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:62
vtkX3D::value
Definition:
vtkX3D.h:220
vtkNew
Allocate and hold a VTK object.
Definition:
vtkNew.h:61
vtkPlot3D.h
vtkPlot3D
Abstract class for 3D plots.
Definition:
vtkPlot3D.h:44
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:31
Generated by
1.8.14