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 VTK_FILTERING_EXPORT vtkVertex : public vtkCell
00030 {
00031 public:
00032 static vtkVertex *New();
00033 vtkTypeRevisionMacro(vtkVertex,vtkCell);
00034 void PrintSelf(ostream& os, vtkIndent indent);
00035
00040 int GetCellType() {return VTK_VERTEX;};
00041 int GetCellDimension() {return 0;};
00042 int GetNumberOfEdges() {return 0;};
00043 int GetNumberOfFaces() {return 0;};
00044 vtkCell *GetEdge(int) {return 0;};
00045 vtkCell *GetFace(int) {return 0;};
00046 void Clip(double value, vtkDataArray *cellScalars,
00047 vtkPointLocator *locator, vtkCellArray *pts,
00048 vtkPointData *inPd, vtkPointData *outPd,
00049 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00050 int insideOut);
00051 int EvaluatePosition(double x[3], double* closestPoint,
00052 int& subId, double pcoords[3],
00053 double& dist2, double *weights);
00054 void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00055 double *weights);
00056 virtual double *GetParametricCoords();
00058
00064 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00065
00067
00071 void Contour(double value, vtkDataArray *cellScalars,
00072 vtkPointLocator *locator, vtkCellArray *verts1,
00073 vtkCellArray *lines, vtkCellArray *verts2,
00074 vtkPointData *inPd, vtkPointData *outPd,
00075 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00077
00079 int GetParametricCenter(double pcoords[3]);
00080
00082
00085 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00086 double x[3], double pcoords[3], int& subId);
00088
00091 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00092
00094
00096 void Derivatives(int subId, double pcoords[3], double *values,
00097 int dim, double *derivs);
00099
00101
00102 static void InterpolationFunctions(double pcoords[3], double weights[1]);
00103
00104
00105 static void InterpolationDerivs(double pcoords[3], double derivs[3]);
00106
00107
00108
00109 virtual void InterpolateFunctions(double pcoords[3], double weights[1])
00110 {
00111 vtkVertex::InterpolationFunctions(pcoords,weights);
00112 }
00113 virtual void InterpolateDerivs(double pcoords[3], double derivs[3])
00114 {
00115 vtkVertex::InterpolationDerivs(pcoords,derivs);
00116 }
00118
00119 protected:
00120 vtkVertex();
00121 ~vtkVertex() {};
00122
00123 private:
00124 vtkVertex(const vtkVertex&);
00125 void operator=(const vtkVertex&);
00126 };
00127
00128
00129 inline int vtkVertex::GetParametricCenter(double pcoords[3])
00130 {
00131 pcoords[0] = pcoords[1] = pcoords[2] = 0.0;
00132 return 0;
00133 }
00134
00135 #endif
00136
00137