dox/Common/vtkTriangleStrip.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00032
#ifndef __vtkTriangleStrip_h
00033
#define __vtkTriangleStrip_h
00034
00035
#include "vtkCell.h"
00036
00037
class vtkLine;
00038
class vtkTriangle;
00039
00040 class VTK_COMMON_EXPORT vtkTriangleStrip :
public vtkCell
00041 {
00042
public:
00043
static vtkTriangleStrip *
New();
00044 vtkTypeRevisionMacro(vtkTriangleStrip,
vtkCell);
00045
00047
00048 int GetCellType() {
return VTK_TRIANGLE_STRIP;};
00049 int GetCellDimension() {
return 2;};
00050 int GetNumberOfEdges() {
return this->
GetNumberOfPoints();};
00051 int GetNumberOfFaces() {
return 0;};
00052
vtkCell *
GetEdge(
int edgeId);
00053 vtkCell *
GetFace(
int vtkNotUsed(faceId)) {
return 0;};
00054
int CellBoundary(
int subId,
double pcoords[3],
vtkIdList *pts);
00055
void Contour(
double value,
vtkDataArray *cellScalars,
00056
vtkPointLocator *locator,
vtkCellArray *verts,
00057
vtkCellArray *lines,
vtkCellArray *polys,
00058
vtkPointData *inPd,
vtkPointData *outPd,
00059
vtkCellData *inCd,
vtkIdType cellId,
vtkCellData *outCd);
00060
void Clip(
double value,
vtkDataArray *cellScalars,
00061
vtkPointLocator *locator,
vtkCellArray *polys,
00062
vtkPointData *inPd,
vtkPointData *outPd,
00063
vtkCellData *inCd,
vtkIdType cellId,
vtkCellData *outCd,
00064
int insideOut);
00066
00067
int EvaluatePosition(
double x[3],
double* closestPoint,
00068
int& subId,
double pcoords[3],
00069
double& dist2,
double *weights);
00070
void EvaluateLocation(
int& subId,
double pcoords[3],
double x[3],
00071
double *weights);
00072
int IntersectWithLine(
double p1[3],
double p2[3],
double tol,
double& t,
00073
double x[3],
double pcoords[3],
int& subId);
00074
int Triangulate(
int index,
vtkIdList *ptIds,
vtkPoints *pts);
00075
void Derivatives(
int subId,
double pcoords[3],
double *values,
00076
int dim,
double *derivs);
00077 int IsPrimaryCell() {
return 0;}
00078
00080
int GetParametricCenter(
double pcoords[3]);
00081
00085
static void DecomposeStrip(
int npts,
vtkIdType *pts,
vtkCellArray *tris);
00086
00087
00088
protected:
00089 vtkTriangleStrip();
00090 ~vtkTriangleStrip();
00091
00092 vtkLine *Line;
00093 vtkTriangle *Triangle;
00094
00095
private:
00096 vtkTriangleStrip(
const vtkTriangleStrip&);
00097
void operator=(
const vtkTriangleStrip&);
00098 };
00099
00100
#endif
00101
00102