00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00055 #ifndef __vtkVertex_h
00056 #define __vtkVertex_h
00057
00058 #include "vtkCell.h"
00059
00060 class VTK_COMMON_EXPORT vtkVertex : public vtkCell
00061 {
00062 public:
00063 static vtkVertex *New();
00064 vtkTypeMacro(vtkVertex,vtkCell);
00065
00067 vtkCell *MakeObject();
00068
00070
00071 int GetCellType() {return VTK_VERTEX;};
00072 int GetCellDimension() {return 0;};
00073 int GetNumberOfEdges() {return 0;};
00074 int GetNumberOfFaces() {return 0;};
00075 vtkCell *GetEdge(int) {return 0;};
00076 vtkCell *GetFace(int) {return 0;};
00077 void Clip(float value, vtkDataArray *cellScalars,
00078 vtkPointLocator *locator, vtkCellArray *pts,
00079 vtkPointData *inPd, vtkPointData *outPd,
00080 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00081 int insideOut);
00082 int EvaluatePosition(float x[3], float* closestPoint,
00083 int& subId, float pcoords[3],
00084 float& dist2, float *weights);
00085 void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00086 float *weights);
00088
00094 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00095
00097
00101 void Contour(float value, vtkDataArray *cellScalars,
00102 vtkPointLocator *locator, vtkCellArray *verts1,
00103 vtkCellArray *lines, vtkCellArray *verts2,
00104 vtkPointData *inPd, vtkPointData *outPd,
00105 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00107
00109
00112 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00113 float x[3], float pcoords[3], int& subId);
00115
00118 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00119
00121
00123 void Derivatives(int subId, float pcoords[3], float *values,
00124 int dim, float *derivs);
00126
00128 static void InterpolationFunctions(float pcoords[3], float weights[1]);
00129
00130 protected:
00131 vtkVertex();
00132 ~vtkVertex() {};
00133
00134 private:
00135 vtkVertex(const vtkVertex&);
00136 void operator=(const vtkVertex&);
00137 };
00138
00139 #endif
00140
00141