00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00028 #ifndef __vtkPolyLine_h
00029 #define __vtkPolyLine_h
00030
00031 #include "vtkCell.h"
00032
00033 class vtkPoints;
00034 class vtkCellArray;
00035 class vtkLine;
00036 class vtkDataArray;
00037 class vtkIncrementalPointLocator;
00038 class vtkCellData;
00039
00040 class VTK_FILTERING_EXPORT vtkPolyLine : public vtkCell
00041 {
00042 public:
00043 static vtkPolyLine *New();
00044 vtkTypeMacro(vtkPolyLine,vtkCell);
00045 void PrintSelf(ostream& os, vtkIndent indent);
00046
00048
00053 static int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *);
00054 static int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *,
00055 double* firstNormal);
00057
00059
00060 int GetCellType() {return VTK_POLY_LINE;};
00061 int GetCellDimension() {return 1;};
00062 int GetNumberOfEdges() {return 0;};
00063 int GetNumberOfFaces() {return 0;};
00064 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00065 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00066 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00067 void Contour(double value, vtkDataArray *cellScalars,
00068 vtkIncrementalPointLocator *locator, vtkCellArray *verts,
00069 vtkCellArray *lines, vtkCellArray *polys,
00070 vtkPointData *inPd, vtkPointData *outPd,
00071 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00072 void Clip(double value, vtkDataArray *cellScalars,
00073 vtkIncrementalPointLocator *locator, vtkCellArray *lines,
00074 vtkPointData *inPd, vtkPointData *outPd,
00075 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00076 int insideOut);
00077 int EvaluatePosition(double x[3], double* closestPoint,
00078 int& subId, double pcoords[3],
00079 double& dist2, double *weights);
00080 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00081 double *weights);
00082 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00083 double x[3], double pcoords[3], int& subId);
00084 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00085 void Derivatives(int subId, double pcoords[3], double *values,
00086 int dim, double *derivs);
00087 int IsPrimaryCell() {return 0;}
00089
00091 int GetParametricCenter(double pcoords[3]);
00092
00094
00096 virtual void InterpolateFunctions(double pcoords[3], double *weights);
00097 virtual void InterpolateDerivs(double pcoords[3], double *derivs);
00099
00100 protected:
00101 vtkPolyLine();
00102 ~vtkPolyLine();
00103
00104 vtkLine *Line;
00105
00106 private:
00107 vtkPolyLine(const vtkPolyLine&);
00108 void operator=(const vtkPolyLine&);
00109 };
00110
00111 #endif
00112
00113