00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00027 #ifndef __vtkVertex_h
00028 #define __vtkVertex_h
00029
00030 #include "vtkCell.h"
00031
00032 class VTK_COMMON_EXPORT vtkVertex : public vtkCell
00033 {
00034 public:
00035 static vtkVertex *New();
00036 vtkTypeRevisionMacro(vtkVertex,vtkCell);
00037
00042 int GetCellType() {return VTK_VERTEX;};
00043 int GetCellDimension() {return 0;};
00044 int GetNumberOfEdges() {return 0;};
00045 int GetNumberOfFaces() {return 0;};
00046 vtkCell *GetEdge(int) {return 0;};
00047 vtkCell *GetFace(int) {return 0;};
00048 void Clip(double value, vtkDataArray *cellScalars,
00049 vtkPointLocator *locator, vtkCellArray *pts,
00050 vtkPointData *inPd, vtkPointData *outPd,
00051 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00052 int insideOut);
00053 int EvaluatePosition(double x[3], double* closestPoint,
00054 int& subId, double pcoords[3],
00055 double& dist2, double *weights);
00056 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00057 double *weights);
00058 virtual double *GetParametricCoords();
00060
00066 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00067
00069
00073 void Contour(double value, vtkDataArray *cellScalars,
00074 vtkPointLocator *locator, vtkCellArray *verts1,
00075 vtkCellArray *lines, vtkCellArray *verts2,
00076 vtkPointData *inPd, vtkPointData *outPd,
00077 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00079
00081
00084 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00085 double x[3], double pcoords[3], int& subId);
00087
00090 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00091
00093
00095 void Derivatives(int subId, double pcoords[3], double *values,
00096 int dim, double *derivs);
00098
00100 static void InterpolationFunctions(double pcoords[3], double weights[1]);
00101
00102 protected:
00103 vtkVertex();
00104 ~vtkVertex() {};
00105
00106 private:
00107 vtkVertex(const vtkVertex&);
00108 void operator=(const vtkVertex&);
00109 };
00110
00111 #endif
00112
00113