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