00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00034 #ifndef __vtkQuad_h
00035 #define __vtkQuad_h
00036
00037 #include "vtkCell.h"
00038
00039 class vtkLine;
00040
00041 class VTK_COMMON_EXPORT vtkQuad : public vtkCell
00042 {
00043 public:
00044 static vtkQuad *New();
00045 vtkTypeRevisionMacro(vtkQuad,vtkCell);
00046
00048
00049 int GetCellType() {return VTK_QUAD;};
00050 int GetCellDimension() {return 2;};
00051 int GetNumberOfEdges() {return 4;};
00052 int GetNumberOfFaces() {return 0;};
00053 vtkCell *GetEdge(int edgeId);
00054 vtkCell *GetFace(int) {return 0;};
00055 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00056 void Contour(float value, vtkDataArray *cellScalars,
00057 vtkPointLocator *locator, vtkCellArray *verts,
00058 vtkCellArray *lines, vtkCellArray *polys,
00059 vtkPointData *inPd, vtkPointData *outPd,
00060 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00061 int EvaluatePosition(float x[3], float* closestPoint,
00062 int& subId, float pcoords[3],
00063 float& dist2, float *weights);
00064 void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00065 float *weights);
00066 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00067 float x[3], float pcoords[3], int& subId);
00068 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00069 void Derivatives(int subId, float pcoords[3], float *values,
00070 int dim, float *derivs);
00072
00074
00076 void Clip(float value, vtkDataArray *cellScalars,
00077 vtkPointLocator *locator, vtkCellArray *polys,
00078 vtkPointData *inPd, vtkPointData *outPd,
00079 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00080 int insideOut);
00082
00084
00085 static void InterpolationFunctions(float pcoords[3], float sf[4]);
00086 static void InterpolationDerivs(float pcoords[3], float derivs[8]);
00088
00089
00090 protected:
00091 vtkQuad();
00092 ~vtkQuad();
00093
00094 vtkLine *Line;
00095
00096 private:
00097 vtkQuad(const vtkQuad&);
00098 void operator=(const vtkQuad&);
00099 };
00100
00101 #endif
00102
00103