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
00034
00035
00036 class vtkPoints;
00037 class vtkCellArray;
00038 class vtkLine;
00039 class vtkDataArray;
00040 class vtkPointLocator;
00041 class vtkCellData;
00042
00043 class VTK_FILTERING_EXPORT vtkPolyLine : public vtkCell
00044 {
00045 public:
00046 static vtkPolyLine *New();
00047 vtkTypeRevisionMacro(vtkPolyLine,vtkCell);
00048 void PrintSelf(ostream& os, vtkIndent indent);
00049
00051
00056 int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *);
00057 int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *,
00058 double* firstNormal);
00060
00062
00063 int GetCellType() {return VTK_POLY_LINE;};
00064 int GetCellDimension() {return 1;};
00065 int GetNumberOfEdges() {return 0;};
00066 int GetNumberOfFaces() {return 0;};
00067 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00068 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00069 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00070 void Contour(double value, vtkDataArray *cellScalars,
00071 vtkPointLocator *locator, vtkCellArray *verts,
00072 vtkCellArray *lines, vtkCellArray *polys,
00073 vtkPointData *inPd, vtkPointData *outPd,
00074 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00075 void Clip(double value, vtkDataArray *cellScalars,
00076 vtkPointLocator *locator, vtkCellArray *lines,
00077 vtkPointData *inPd, vtkPointData *outPd,
00078 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00079 int insideOut);
00080 int EvaluatePosition(double x[3], double* closestPoint,
00081 int& subId, double pcoords[3],
00082 double& dist2, double *weights);
00083 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00084 double *weights);
00085 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00086 double x[3], double pcoords[3], int& subId);
00087 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00088 void Derivatives(int subId, double pcoords[3], double *values,
00089 int dim, double *derivs);
00090 int IsPrimaryCell() {return 0;}
00092
00094 int GetParametricCenter(double pcoords[3]);
00095
00096
00097 protected:
00098 vtkPolyLine();
00099 ~vtkPolyLine();
00100
00101 vtkLine *Line;
00102
00103 private:
00104 vtkPolyLine(const vtkPolyLine&);
00105 void operator=(const vtkPolyLine&);
00106 };
00107
00108 #endif
00109
00110