00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00038 #ifndef __vtkPolyLine_h
00039 #define __vtkPolyLine_h
00040
00041 #include "vtkCell.h"
00042
00043
00044
00045
00046 class vtkPoints;
00047 class vtkCellArray;
00048 class vtkLine;
00049 class vtkDataArray;
00050 class vtkPointLocator;
00051 class vtkCellData;
00052
00053 class VTK_FILTERING_EXPORT vtkPolyLine : public vtkCell
00054 {
00055 public:
00056 static vtkPolyLine *New();
00057 vtkTypeRevisionMacro(vtkPolyLine,vtkCell);
00058 void PrintSelf(ostream& os, vtkIndent indent);
00059
00061
00066 int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *);
00067 int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *,
00068 double* firstNormal);
00070
00072
00073 int GetCellType() {return VTK_POLY_LINE;};
00074 int GetCellDimension() {return 1;};
00075 int GetNumberOfEdges() {return 0;};
00076 int GetNumberOfFaces() {return 0;};
00077 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00078 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00079 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00080 void Contour(double value, vtkDataArray *cellScalars,
00081 vtkPointLocator *locator, vtkCellArray *verts,
00082 vtkCellArray *lines, vtkCellArray *polys,
00083 vtkPointData *inPd, vtkPointData *outPd,
00084 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00085 void Clip(double value, vtkDataArray *cellScalars,
00086 vtkPointLocator *locator, vtkCellArray *lines,
00087 vtkPointData *inPd, vtkPointData *outPd,
00088 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00089 int insideOut);
00090 int EvaluatePosition(double x[3], double* closestPoint,
00091 int& subId, double pcoords[3],
00092 double& dist2, double *weights);
00093 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00094 double *weights);
00095 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00096 double x[3], double pcoords[3], int& subId);
00097 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00098 void Derivatives(int subId, double pcoords[3], double *values,
00099 int dim, double *derivs);
00100 int IsPrimaryCell() {return 0;}
00102
00104 int GetParametricCenter(double pcoords[3]);
00105
00106
00107 protected:
00108 vtkPolyLine();
00109 ~vtkPolyLine();
00110
00111 vtkLine *Line;
00112
00113 private:
00114 vtkPolyLine(const vtkPolyLine&);
00115 void operator=(const vtkPolyLine&);
00116 };
00117
00118 #endif
00119
00120