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
28
#ifndef vtkPlotSurface_h
29
#define vtkPlotSurface_h
30
31
#include "vtkChartsCoreModule.h"
// For export macro
32
#include "
vtkNew.h
"
// For vtkNew ivar
33
#include "
vtkPlot3D.h
"
34
35
class
vtkContext2D
;
36
class
vtkLookupTable
;
37
class
vtkTable
;
38
39
class
VTKCHARTSCORE_EXPORT
vtkPlotSurface
:
public
vtkPlot3D
40
{
41
public
:
42
vtkTypeMacro(
vtkPlotSurface
,
vtkPlot3D
);
43
void
PrintSelf
(ostream &os,
vtkIndent
indent) VTK_OVERRIDE;
44
static
vtkPlotSurface
*
New
();
45
49
bool
Paint
(
vtkContext2D
*painter) VTK_OVERRIDE;
50
54
void
SetInputData
(
vtkTable
*input) VTK_OVERRIDE;
55
57
62
void
SetInputData
(
vtkTable
*input,
const
vtkStdString
&xName,
63
const
vtkStdString
&yName,
64
const
vtkStdString
&zName) VTK_OVERRIDE;
65
void
SetInputData
(
vtkTable
*input,
const
vtkStdString
&xName,
66
const
vtkStdString
&yName,
67
const
vtkStdString
&zName,
68
const
vtkStdString
&colorName) VTK_OVERRIDE;
69
void
SetInputData
(
vtkTable
*input,
vtkIdType
xColumn,
70
vtkIdType
yColumn,
vtkIdType
zColumn) VTK_OVERRIDE;
72
79
void
SetXRange(
float
min,
float
max
);
80
87
void
SetYRange(
float
min,
float
max
);
88
89
protected
:
90
vtkPlotSurface
();
91
~
vtkPlotSurface
() VTK_OVERRIDE;
92
96
void
GenerateSurface();
97
101
void
InsertSurfaceVertex(
float
*
data
,
float
value
,
int
i,
int
j,
int
&pos);
102
106
void
RescaleData();
107
111
float
ColumnToX(
int
columnIndex);
112
116
float
RowToY(
int
rowIndex);
117
121
std::
vector
<
vtkVector3f
> Surface;
122
126
vtkIdType
NumberOfRows;
127
131
vtkIdType
NumberOfColumns;
132
136
vtkIdType
NumberOfVertices;
137
141
int
ColorComponents;
142
146
vtkTable
*InputTable;
147
151
vtkNew
<
vtkLookupTable
> LookupTable;
152
154
157
float
XMinimum;
158
float
XMaximum;
159
float
YMinimum;
160
float
YMaximum;
162
167
bool
DataHasBeenRescaled;
168
169
private:
170
vtkPlotSurface
(const
vtkPlotSurface
&) VTK_DELETE_FUNCTION;
171
void
operator=(const
vtkPlotSurface
&) VTK_DELETE_FUNCTION;
172
173
};
174
175
#endif //vtkPlotSurface_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:47
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
vtkVector3f
Definition:
vtkVector.h:371
vtkLookupTable
map scalar values into colors via a lookup table
Definition:
vtkLookupTable.h:74
vtkIdType
int vtkIdType
Definition:
vtkType.h:345
vtkPlotSurface
3D surface plot.
Definition:
vtkPlotSurface.h:39
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:58
vtkX3D::vector
Definition:
vtkX3D.h:237
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
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:68
vtkX3D::value
Definition:
vtkX3D.h:220
vtkNew
Allocate and hold a VTK object.
Definition:
vtkNew.h:67
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.13