00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00042 #ifndef __vtkEmptyCell_h
00043 #define __vtkEmptyCell_h
00044
00045 #include "vtkCell.h"
00046
00047 class VTK_COMMON_EXPORT vtkEmptyCell : public vtkCell
00048 {
00049 public:
00050 static vtkEmptyCell *New();
00051 vtkTypeRevisionMacro(vtkEmptyCell,vtkCell);
00052
00054
00055 int GetCellType() {return VTK_EMPTY_CELL;};
00056 int GetCellDimension() {return 0;};
00057 int GetNumberOfEdges() {return 0;};
00058 int GetNumberOfFaces() {return 0;};
00059 vtkCell *GetEdge(int) {return 0;};
00060 vtkCell *GetFace(int) {return 0;};
00061 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00062 void Contour(float value, vtkDataArray *cellScalars,
00063 vtkPointLocator *locator, vtkCellArray *verts1,
00064 vtkCellArray *lines, vtkCellArray *verts2,
00065 vtkPointData *inPd, vtkPointData *outPd,
00066 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00067 void Clip(float value, vtkDataArray *cellScalars,
00068 vtkPointLocator *locator, vtkCellArray *pts,
00069 vtkPointData *inPd, vtkPointData *outPd,
00070 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00071 int insideOut);
00073
00074 int EvaluatePosition(float x[3], float* closestPoint,
00075 int& subId, float pcoords[3],
00076 float& dist2, float *weights);
00077 void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00078 float *weights);
00079 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00080 float x[3], float pcoords[3], int& subId);
00081 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00082 void Derivatives(int subId, float pcoords[3], float *values,
00083 int dim, float *derivs);
00084
00085 protected:
00086 vtkEmptyCell() {};
00087 ~vtkEmptyCell() {};
00088
00089
00090 private:
00091 vtkEmptyCell(const vtkEmptyCell&);
00092 void operator=(const vtkEmptyCell&);
00093 };
00094
00095 #endif
00096
00097