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 class vtkIncrementalPointLocator;
00035
00036 class VTK_FILTERING_EXPORT vtkPolyVertex : public vtkCell
00037 {
00038 public:
00039 static vtkPolyVertex *New();
00040 vtkTypeMacro(vtkPolyVertex,vtkCell);
00041 void PrintSelf(ostream& os, vtkIndent indent);
00042
00044
00045 int GetCellType() {return VTK_POLY_VERTEX;};
00046 int GetCellDimension() {return 0;};
00047 int GetNumberOfEdges() {return 0;};
00048 int GetNumberOfFaces() {return 0;};
00049 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00050 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00051 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00052 void Contour(double value, vtkDataArray *cellScalars,
00053 vtkIncrementalPointLocator *locator, vtkCellArray *verts,
00054 vtkCellArray *lines, vtkCellArray *polys,
00055 vtkPointData *inPd, vtkPointData *outPd,
00056 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00057 void Clip(double value, vtkDataArray *cellScalars,
00058 vtkIncrementalPointLocator *locator, vtkCellArray *verts,
00059 vtkPointData *inPd, vtkPointData *outPd,
00060 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00061 int insideOut);
00062 int EvaluatePosition(double x[3], double* closestPoint,
00063 int& subId, double pcoords[3],
00064 double& dist2, double *weights);
00065 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00066 double *weights);
00067 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00068 double x[3], double pcoords[3], int& subId);
00069 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00070 void Derivatives(int subId, double pcoords[3], double *values,
00071 int dim, double *derivs);
00072 int IsPrimaryCell() {return 0;}
00074
00076 int GetParametricCenter(double pcoords[3]);
00077
00079
00081 virtual void InterpolateFunctions(double pcoords[3], double *weights);
00082 virtual void InterpolateDerivs(double pcoords[3], double *derivs);
00084
00085 protected:
00086 vtkPolyVertex();
00087 ~vtkPolyVertex();
00088
00089 vtkVertex *Vertex;
00090
00091 private:
00092 vtkPolyVertex(const vtkPolyVertex&);
00093 void operator=(const vtkPolyVertex&);
00094 };
00095
00096 #endif
00097
00098