VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
27
#ifndef __vtkPlotSurface_h
28
#define __vtkPlotSurface_h
29
30
#include "
vtkChartsCoreModule.h
"
// For export macro
31
#include "
vtkNew.h
"
// For vtkNew ivar
32
#include "
vtkPlot3D.h
"
33
34
class
vtkContext2D
;
35
class
vtkLookupTable
;
36
class
vtkTable
;
37
38
class
VTKCHARTSCORE_EXPORT
vtkPlotSurface
:
public
vtkPlot3D
39
{
40
public
:
41
vtkTypeMacro(
vtkPlotSurface
,
vtkPlot3D
);
42
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
43
static
vtkPlotSurface
*
New
();
44
47
virtual
bool
Paint
(
vtkContext2D
*painter);
48
50
virtual
void
SetInputData
(
vtkTable
*
input
);
51
53
55
virtual
void
SetInputData
(
vtkTable
*
input
,
const
vtkStdString
&xName,
56
const
vtkStdString
&yName,
57
const
vtkStdString
&zName);
58
virtual
void
SetInputData
(
vtkTable
*
input
,
const
vtkStdString
&xName,
59
const
vtkStdString
&yName,
60
const
vtkStdString
&zName,
61
const
vtkStdString
&colorName);
62
virtual
void
SetInputData
(
vtkTable
*
input
,
vtkIdType
xColumn,
63
vtkIdType
yColumn,
vtkIdType
zColumn);
65
70
void
SetXRange(
float
min,
float
max
);
71
76
void
SetYRange(
float
min,
float
max
);
77
78
//BTX
79
protected
:
80
vtkPlotSurface
();
81
~
vtkPlotSurface
();
82
84
void
GenerateSurface();
85
87
void
InsertSurfaceVertex(
float
*
data
,
float
value
,
int
i,
int
j,
int
&pos);
88
90
void
RescaleData();
91
93
float
ColumnToX(
int
columnIndex);
94
96
float
RowToY(
int
rowIndex);
97
99
std::vector<vtkVector3f>
Surface
;
100
102
vtkIdType
NumberOfRows
;
103
105
vtkIdType
NumberOfColumns
;
106
108
vtkIdType
NumberOfVertices
;
109
111
vtkNew<vtkUnsignedCharArray>
Colors
;
112
114
int
ColorComponents
;
115
117
vtkTable
*
InputTable
;
118
120
vtkNew<vtkLookupTable>
LookupTable
;
121
123
124
float
XMinimum
;
125
float
XMaximum
;
126
float
YMinimum
;
127
float
YMaximum
;
129
132
bool
DataHasBeenRescaled
;
133
134
private
:
135
vtkPlotSurface
(
const
vtkPlotSurface
&);
// Not implemented.
136
void
operator=(
const
vtkPlotSurface
&);
// Not implemented.
137
138
//ETX
139
};
140
141
#endif //__vtkPlotSurface_h
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition:
vtkgl.h:11339
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkgl::input
GLenum GLenum GLenum input
Definition:
vtkgl.h:15941
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkPlotSurface::XMinimum
float XMinimum
Definition:
vtkPlotSurface.h:124
vtkLookupTable
map scalar values into colors via a lookup table
Definition:
vtkLookupTable.h:64
vtkPlotSurface::XMaximum
float XMaximum
Definition:
vtkPlotSurface.h:125
vtkPlotSurface::YMaximum
float YMaximum
Definition:
vtkPlotSurface.h:127
vtkgl::value
GLsizei const GLfloat * value
Definition:
vtkgl.h:12021
vtkIdType
int vtkIdType
Definition:
vtkType.h:268
vtkPlotSurface
3D surface plot.
Definition:
vtkPlotSurface.h:38
vtkPlotSurface::InputTable
vtkTable * InputTable
Definition:
vtkPlotSurface.h:117
vtkPlotSurface::NumberOfVertices
vtkIdType NumberOfVertices
Definition:
vtkPlotSurface.h:108
vtkPlotSurface::YMinimum
float YMinimum
Definition:
vtkPlotSurface.h:126
vtkPlotSurface::Colors
vtkNew< vtkUnsignedCharArray > Colors
Definition:
vtkPlotSurface.h:111
vtkPlotSurface::Surface
std::vector< vtkVector3f > Surface
Definition:
vtkPlotSurface.h:99
vtkPlotSurface::NumberOfColumns
vtkIdType NumberOfColumns
Definition:
vtkPlotSurface.h:105
vtkPlot3D::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkPlotSurface::LookupTable
vtkNew< vtkLookupTable > LookupTable
Definition:
vtkPlotSurface.h:120
vtkPlotSurface::ColorComponents
int ColorComponents
Definition:
vtkPlotSurface.h:114
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkPlotSurface::NumberOfRows
vtkIdType NumberOfRows
Definition:
vtkPlotSurface.h:102
vtkPlot3D::SetInputData
virtual void SetInputData(vtkTable *input)
vtkNew.h
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkNew< vtkUnsignedCharArray >
vtkPlot3D.h
vtkPlot3D
Abstract class for 3D plots.
Definition:
vtkPlot3D.h:43
vtkObject::New
static vtkObject * New()
max
#define max(a, b)
Definition:
vtkX3DExporterFIWriterHelper.h:30
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkPlotSurface::DataHasBeenRescaled
bool DataHasBeenRescaled
Definition:
vtkPlotSurface.h:132
vtkChartsCoreModule.h
Generated on Sat Jan 3 2015 22:28:53 for VTK by
1.8.8