00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00049 #ifndef __vtkQuadraticEdge_h
00050 #define __vtkQuadraticEdge_h
00051
00052 #include "vtkNonLinearCell.h"
00053
00054 class vtkPolyData;
00055 class vtkLine;
00056
00057 class VTK_COMMON_EXPORT vtkQuadraticEdge : public vtkNonLinearCell
00058 {
00059 public:
00060 static vtkQuadraticEdge *New();
00061 vtkTypeRevisionMacro(vtkQuadraticEdge,vtkNonLinearCell);
00062
00064
00066 int GetCellType() {return VTK_QUADRATIC_EDGE;};
00067 int GetCellDimension() {return 1;}
00068 int GetNumberOfEdges() {return 0;}
00069 int GetNumberOfFaces() {return 0;}
00070 vtkCell *GetEdge(int) {return 0;}
00071 vtkCell *GetFace(int) {return 0;}
00073
00074 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00075 void Contour(float value, vtkDataArray *cellScalars,
00076 vtkPointLocator *locator, vtkCellArray *verts,
00077 vtkCellArray *lines, vtkCellArray *polys,
00078 vtkPointData *inPd, vtkPointData *outPd,
00079 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00080 int EvaluatePosition(float x[3], float* closestPoint,
00081 int& subId, float pcoords[3],
00082 float& dist2, float *weights);
00083 void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00084 float *weights);
00085 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00086 void Derivatives(int subId, float pcoords[3], float *values,
00087 int dim, float *derivs);
00088
00090
00092 void Clip(float value, vtkDataArray *cellScalars,
00093 vtkPointLocator *locator, vtkCellArray *lines,
00094 vtkPointData *inPd, vtkPointData *outPd,
00095 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00096 int insideOut);
00098
00100
00102 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00103 float x[3], float pcoords[3], int& subId);
00105
00106
00108
00109 static void InterpolationFunctions(float pcoords[3], float weights[3]);
00110 static void InterpolationDerivs(float pcoords[3], float derivs[3]);
00112
00113 protected:
00114 vtkQuadraticEdge();
00115 ~vtkQuadraticEdge();
00116
00117 vtkLine *Line;
00118
00119 private:
00120 vtkQuadraticEdge(const vtkQuadraticEdge&);
00121 void operator=(const vtkQuadraticEdge&);
00122 };
00123
00124 #endif
00125
00126