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