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