VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkGenericCell.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGenericCell.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
=========================================================================*/
32
#ifndef __vtkGenericCell_h
33
#define __vtkGenericCell_h
34
35
#include "vtkCell.h"
36
37
class
VTK_FILTERING_EXPORT
vtkGenericCell
:
public
vtkCell
38
{
39
public
:
41
static
vtkGenericCell
*New();
42
43
vtkTypeMacro(
vtkGenericCell
,vtkCell);
44
void
PrintSelf(ostream& os,
vtkIndent
indent);
45
47
48
void
ShallowCopy(vtkCell *c);
49
void
DeepCopy(vtkCell *c);
50
int
GetCellType();
51
int
GetCellDimension();
52
int
IsLinear();
53
int
RequiresInitialization();
54
void
Initialize();
55
int
RequiresExplicitFaceRepresentation();
56
void
SetFaces(
vtkIdType
*faces);
57
vtkIdType
*GetFaces();
58
int
GetNumberOfEdges();
59
int
GetNumberOfFaces();
60
vtkCell *GetEdge(
int
edgeId);
61
vtkCell *GetFace(
int
faceId);
62
int
CellBoundary(
int
subId,
double
pcoords[3],
vtkIdList
*pts);
63
int
EvaluatePosition(
double
x[3],
double
* closestPoint,
64
int
& subId,
double
pcoords[3],
65
double
& dist2,
double
*weights);
66
void
EvaluateLocation(
int
& subId,
double
pcoords[3],
67
double
x[3],
double
*weights);
68
void
Contour(
double
value,
vtkDataArray
*cellScalars,
69
vtkIncrementalPointLocator
*locator,
vtkCellArray
*verts,
70
vtkCellArray
*lines,
vtkCellArray
*polys,
71
vtkPointData
*inPd,
vtkPointData
*outPd,
72
vtkCellData
*inCd,
vtkIdType
cellId,
vtkCellData
*outCd);
73
void
Clip(
double
value,
vtkDataArray
*cellScalars,
74
vtkIncrementalPointLocator
*locator,
vtkCellArray
*connectivity,
75
vtkPointData
*inPd,
vtkPointData
*outPd,
76
vtkCellData
*inCd,
vtkIdType
cellId,
vtkCellData
*outCd,
77
int
insideOut);
78
int
IntersectWithLine(
double
p1[3],
double
p2[3],
double
tol,
double
& t,
79
double
x[3],
double
pcoords[3],
int
& subId);
80
int
Triangulate(
int
index,
vtkIdList
*ptIds,
vtkPoints
*pts);
81
void
Derivatives(
int
subId,
double
pcoords[3],
double
*values,
82
int
dim,
double
*derivs);
83
int
GetParametricCenter(
double
pcoords[3]);
84
double
*GetParametricCoords();
85
int
IsPrimaryCell();
87
89
91
virtual
void
InterpolateFunctions(
double
pcoords[3],
double
*weights);
92
virtual
void
InterpolateDerivs(
double
pcoords[3],
double
*derivs);
94
96
101
void
SetCellType(
int
cellType);
102
void
SetCellTypeToEmptyCell
() {this->SetCellType(
VTK_EMPTY_CELL
);}
103
void
SetCellTypeToVertex
() {this->SetCellType(
VTK_VERTEX
);}
104
void
SetCellTypeToPolyVertex
() {this->SetCellType(
VTK_POLY_VERTEX
);}
105
void
SetCellTypeToLine
() {this->SetCellType(
VTK_LINE
);}
106
void
SetCellTypeToPolyLine
() {this->SetCellType(
VTK_POLY_LINE
);}
107
void
SetCellTypeToTriangle
() {this->SetCellType(
VTK_TRIANGLE
);}
108
void
SetCellTypeToTriangleStrip
() {this->SetCellType(
VTK_TRIANGLE_STRIP
);}
109
void
SetCellTypeToPolygon
() {this->SetCellType(
VTK_POLYGON
);}
110
void
SetCellTypeToPixel
() {this->SetCellType(
VTK_PIXEL
);}
111
void
SetCellTypeToQuad
() {this->SetCellType(
VTK_QUAD
);}
112
void
SetCellTypeToTetra
() {this->SetCellType(
VTK_TETRA
);}
113
void
SetCellTypeToVoxel
() {this->SetCellType(
VTK_VOXEL
);}
114
void
SetCellTypeToHexahedron
() {this->SetCellType(
VTK_HEXAHEDRON
);}
115
void
SetCellTypeToWedge
() {this->SetCellType(
VTK_WEDGE
);}
116
void
SetCellTypeToPyramid
() {this->SetCellType(
VTK_PYRAMID
);}
117
void
SetCellTypeToPentagonalPrism
() {this->SetCellType(
VTK_PENTAGONAL_PRISM
);}
118
void
SetCellTypeToHexagonalPrism
() {this->SetCellType(
VTK_HEXAGONAL_PRISM
);}
119
void
SetCellTypeToPolyhedron
() {this->SetCellType(
VTK_POLYHEDRON
);}
120
void
SetCellTypeToConvexPointSet
() {this->SetCellType(
VTK_CONVEX_POINT_SET
);}
121
void
SetCellTypeToQuadraticEdge
() {this->SetCellType(
VTK_QUADRATIC_EDGE
);}
122
void
SetCellTypeToCubicLine
() {this->SetCellType(
VTK_CUBIC_LINE
);}
123
void
SetCellTypeToQuadraticTriangle
() {this->SetCellType(
VTK_QUADRATIC_TRIANGLE
);}
124
void
SetCellTypeToBiQuadraticTriangle
() {this->SetCellType(
VTK_BIQUADRATIC_TRIANGLE
);}
125
void
SetCellTypeToQuadraticQuad
() {this->SetCellType(
VTK_QUADRATIC_QUAD
);}
126
void
SetCellTypeToQuadraticTetra
() {this->SetCellType(
VTK_QUADRATIC_TETRA
);}
127
void
SetCellTypeToQuadraticHexahedron
() {this->SetCellType(
VTK_QUADRATIC_HEXAHEDRON
);}
128
void
SetCellTypeToQuadraticWedge
() {this->SetCellType(
VTK_QUADRATIC_WEDGE
);}
129
void
SetCellTypeToQuadraticPyramid
() {this->SetCellType(
VTK_QUADRATIC_PYRAMID
);}
130
void
SetCellTypeToQuadraticLinearQuad
() {this->SetCellType(
VTK_QUADRATIC_LINEAR_QUAD
);}
131
void
SetCellTypeToBiQuadraticQuad
() {this->SetCellType(
VTK_BIQUADRATIC_QUAD
);}
132
void
SetCellTypeToQuadraticLinearWedge
() {this->SetCellType(
VTK_QUADRATIC_LINEAR_WEDGE
);}
133
void
SetCellTypeToBiQuadraticQuadraticWedge
() {
134
this->SetCellType(
VTK_BIQUADRATIC_QUADRATIC_WEDGE
);}
135
void
SetCellTypeToTriQuadraticHexahedron
() {
136
this->SetCellType(
VTK_TRIQUADRATIC_HEXAHEDRON
);}
137
void
SetCellTypeToBiQuadraticQuadraticHexahedron
() {
138
this->SetCellType(
VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
);}
140
142
static
vtkCell* InstantiateCell(
int
cellType);
143
144
protected
:
145
vtkGenericCell
();
146
~
vtkGenericCell
();
147
148
vtkCell *
Cell
;
149
150
private
:
151
vtkGenericCell
(
const
vtkGenericCell
&);
// Not implemented.
152
void
operator=(
const
vtkGenericCell
&);
// Not implemented.
153
};
154
155
#endif
156
157
Generated on Sun Sep 15 2013 03:44:22 for VTK by
1.8.4