00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00025 #ifndef __vtkEmptyCell_h
00026 #define __vtkEmptyCell_h
00027 
00028 #include "vtkCell.h"
00029 
00030 class VTK_FILTERING_EXPORT vtkEmptyCell : public vtkCell
00031 {
00032 public:
00033   static vtkEmptyCell *New();
00034   vtkTypeMacro(vtkEmptyCell,vtkCell);
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00038 
00039   int GetCellType() {return VTK_EMPTY_CELL;};
00040   int GetCellDimension() {return 0;};
00041   int GetNumberOfEdges() {return 0;};
00042   int GetNumberOfFaces() {return 0;};
00043   vtkCell *GetEdge(int) {return 0;};
00044   vtkCell *GetFace(int) {return 0;};
00045   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00046   void Contour(double value, vtkDataArray *cellScalars,
00047                vtkIncrementalPointLocator *locator, vtkCellArray *verts1,
00048                vtkCellArray *lines, vtkCellArray *verts2,
00049                vtkPointData *inPd, vtkPointData *outPd,
00050                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00051   void Clip(double value, vtkDataArray *cellScalars,
00052             vtkIncrementalPointLocator *locator, vtkCellArray *pts,
00053             vtkPointData *inPd, vtkPointData *outPd,
00054             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00055             int insideOut);
00057 
00058   int EvaluatePosition(double x[3], double* closestPoint,
00059                        int& subId, double pcoords[3],
00060                        double& dist2, double *weights);
00061   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00062                         double *weights);
00063   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00064                         double x[3], double pcoords[3], int& subId);
00065   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00066   void Derivatives(int subId, double pcoords[3], double *values,
00067                    int dim, double *derivs);
00068 
00070 
00072   virtual void InterpolateFunctions(double pcoords[3], double *weights);
00073   virtual void InterpolateDerivs(double pcoords[3], double *derivs);
00075 
00076 protected:
00077   vtkEmptyCell() {};
00078   ~vtkEmptyCell() {};
00079 
00080 private:
00081   vtkEmptyCell(const vtkEmptyCell&);  
00082   void operator=(const vtkEmptyCell&);  
00083 };
00084 
00085 #endif
00086 
00087