00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00028 #ifndef __vtkPolyVertex_h
00029 #define __vtkPolyVertex_h
00030
00031 #include "vtkCell.h"
00032
00033 class vtkVertex;
00034
00035 class VTK_FILTERING_EXPORT vtkPolyVertex : public vtkCell
00036 {
00037 public:
00038 static vtkPolyVertex *New();
00039 vtkTypeRevisionMacro(vtkPolyVertex,vtkCell);
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00043
00044 int GetCellType() {return VTK_POLY_VERTEX;};
00045 int GetCellDimension() {return 0;};
00046 int GetNumberOfEdges() {return 0;};
00047 int GetNumberOfFaces() {return 0;};
00048 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00049 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00050 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00051 void Contour(double value, vtkDataArray *cellScalars,
00052 vtkPointLocator *locator, vtkCellArray *verts,
00053 vtkCellArray *lines, vtkCellArray *polys,
00054 vtkPointData *inPd, vtkPointData *outPd,
00055 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00056 void Clip(double value, vtkDataArray *cellScalars,
00057 vtkPointLocator *locator, vtkCellArray *verts,
00058 vtkPointData *inPd, vtkPointData *outPd,
00059 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00060 int insideOut);
00061 int EvaluatePosition(double x[3], double* closestPoint,
00062 int& subId, double pcoords[3],
00063 double& dist2, double *weights);
00064 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00065 double *weights);
00066 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00067 double x[3], double pcoords[3], int& subId);
00068 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00069 void Derivatives(int subId, double pcoords[3], double *values,
00070 int dim, double *derivs);
00071 int IsPrimaryCell() {return 0;}
00073
00075 int GetParametricCenter(double pcoords[3]);
00076
00077
00078 protected:
00079 vtkPolyVertex();
00080 ~vtkPolyVertex();
00081
00082 vtkVertex *Vertex;
00083
00084 private:
00085 vtkPolyVertex(const vtkPolyVertex&);
00086 void operator=(const vtkPolyVertex&);
00087 };
00088
00089 #endif
00090
00091