VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkQuad.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQuad.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
=========================================================================*/
30
#ifndef __vtkQuad_h
31
#define __vtkQuad_h
32
33
#include "
vtkCell.h
"
34
35
class
vtkLine
;
36
class
vtkTriangle
;
37
class
vtkIncrementalPointLocator
;
38
39
class
VTK_FILTERING_EXPORT
vtkQuad
:
public
vtkCell
40
{
41
public
:
42
static
vtkQuad
*
New
();
43
vtkTypeMacro(
vtkQuad
,
vtkCell
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
47
48
int
GetCellType
() {
return
VTK_QUAD
;};
49
int
GetCellDimension
() {
return
2;};
50
int
GetNumberOfEdges
() {
return
4;};
51
int
GetNumberOfFaces
() {
return
0;};
52
vtkCell
*
GetEdge
(
int
edgeId);
53
vtkCell
*
GetFace
(
int
) {
return
0;};
54
int
CellBoundary
(
int
subId,
double
pcoords[3],
vtkIdList
*pts);
55
void
Contour
(
double
value
,
vtkDataArray
*cellScalars,
56
vtkIncrementalPointLocator
*locator,
vtkCellArray
*verts,
57
vtkCellArray
*lines,
vtkCellArray
*polys,
58
vtkPointData
*inPd,
vtkPointData
*outPd,
59
vtkCellData
*inCd,
vtkIdType
cellId,
vtkCellData
*outCd);
60
int
EvaluatePosition
(
double
x[3],
double
* closestPoint,
61
int
& subId,
double
pcoords[3],
62
double
& dist2,
double
*weights);
63
void
EvaluateLocation
(
int
& subId,
double
pcoords[3],
double
x[3],
64
double
*weights);
65
int
IntersectWithLine
(
double
p1[3],
double
p2[3],
double
tol,
double
& t,
66
double
x[3],
double
pcoords[3],
int
& subId);
67
int
Triangulate
(
int
index
,
vtkIdList
*ptIds,
vtkPoints
*pts);
68
void
Derivatives
(
int
subId,
double
pcoords[3],
double
*values,
69
int
dim,
double
*derivs);
70
virtual
double
*
GetParametricCoords
();
72
74
int
GetParametricCenter
(
double
pcoords[3]);
75
77
79
void
Clip
(
double
value
,
vtkDataArray
*cellScalars,
80
vtkIncrementalPointLocator
*locator,
vtkCellArray
*polys,
81
vtkPointData
*inPd,
vtkPointData
*outPd,
82
vtkCellData
*inCd,
vtkIdType
cellId,
vtkCellData
*outCd,
83
int
insideOut);
85
87
static
void
InterpolationFunctions(
double
pcoords[3],
double
sf[4]);
89
static
void
InterpolationDerivs(
double
pcoords[3],
double
derivs[8]);
91
93
virtual
void
InterpolateFunctions
(
double
pcoords[3],
double
sf[4])
94
{
95
vtkQuad::InterpolationFunctions
(pcoords,sf);
96
}
97
virtual
void
InterpolateDerivs
(
double
pcoords[3],
double
derivs[8])
98
{
99
vtkQuad::InterpolationDerivs
(pcoords,derivs);
100
}
102
105
int
*GetEdgeArray(
int
edgeId);
106
107
protected
:
108
vtkQuad
();
109
~
vtkQuad
();
110
111
vtkLine
*
Line
;
112
vtkTriangle
*
Triangle
;
113
114
private
:
115
vtkQuad
(
const
vtkQuad
&);
// Not implemented.
116
void
operator=(
const
vtkQuad
&);
// Not implemented.
117
};
118
//----------------------------------------------------------------------------
119
inline
int
vtkQuad::GetParametricCenter
(
double
pcoords[3])
120
{
121
pcoords[0] = pcoords[1] = 0.5;
122
pcoords[2] = 0.0;
123
return
0;
124
}
125
126
127
#endif
128
129
Generated on Tue Jan 8 2013 05:45:26 for VTK by
1.8.1.2