00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00024 #ifndef __vtkVertex_h
00025 #define __vtkVertex_h
00026
00027 #include "vtkCell.h"
00028
00029 class vtkIncrementalPointLocator;
00030
00031 class VTK_FILTERING_EXPORT vtkVertex : public vtkCell
00032 {
00033 public:
00034 static vtkVertex *New();
00035 vtkTypeRevisionMacro(vtkVertex,vtkCell);
00036 void PrintSelf(ostream& os, vtkIndent indent);
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 vtkIncrementalPointLocator *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 vtkIncrementalPointLocator *locator, vtkCellArray *verts1,
00075 vtkCellArray *lines, vtkCellArray *verts2,
00076 vtkPointData *inPd, vtkPointData *outPd,
00077 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00079
00081 int GetParametricCenter(double pcoords[3]);
00082
00084
00087 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00088 double x[3], double pcoords[3], int& subId);
00090
00093 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00094
00096
00098 void Derivatives(int subId, double pcoords[3], double *values,
00099 int dim, double *derivs);
00101
00103
00104 static void InterpolationFunctions(double pcoords[3], double weights[1]);
00105
00106
00107 static void InterpolationDerivs(double pcoords[3], double derivs[3]);
00108
00109
00110
00111 virtual void InterpolateFunctions(double pcoords[3], double weights[1])
00112 {
00113 vtkVertex::InterpolationFunctions(pcoords,weights);
00114 }
00115 virtual void InterpolateDerivs(double pcoords[3], double derivs[3])
00116 {
00117 vtkVertex::InterpolationDerivs(pcoords,derivs);
00118 }
00120
00121 protected:
00122 vtkVertex();
00123 ~vtkVertex() {};
00124
00125 private:
00126 vtkVertex(const vtkVertex&);
00127 void operator=(const vtkVertex&);
00128 };
00129
00130
00131 inline int vtkVertex::GetParametricCenter(double pcoords[3])
00132 {
00133 pcoords[0] = pcoords[1] = pcoords[2] = 0.0;
00134 return 0;
00135 }
00136
00137 #endif
00138
00139