Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkEmptyCell.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkEmptyCell.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkEmptyCell_h
00036 #define __vtkEmptyCell_h
00037 
00038 #include "vtkCell.h"
00039 
00040 class VTK_FILTERING_EXPORT vtkEmptyCell : public vtkCell
00041 {
00042 public:
00043   static vtkEmptyCell *New();
00044   vtkTypeRevisionMacro(vtkEmptyCell,vtkCell);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   int GetCellType() {return VTK_EMPTY_CELL;};
00050   int GetCellDimension() {return 0;};
00051   int GetNumberOfEdges() {return 0;};
00052   int GetNumberOfFaces() {return 0;};
00053   vtkCell *GetEdge(int) {return 0;};
00054   vtkCell *GetFace(int) {return 0;};
00055   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00056   void Contour(double value, vtkDataArray *cellScalars, 
00057                vtkPointLocator *locator, vtkCellArray *verts1, 
00058                vtkCellArray *lines, vtkCellArray *verts2, 
00059                vtkPointData *inPd, vtkPointData *outPd,
00060                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00061   void Clip(double value, vtkDataArray *cellScalars, 
00062             vtkPointLocator *locator, vtkCellArray *pts,
00063             vtkPointData *inPd, vtkPointData *outPd,
00064             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00065             int insideOut);
00067 
00068   int EvaluatePosition(double x[3], double* closestPoint, 
00069                        int& subId, double pcoords[3], 
00070                        double& dist2, double *weights);
00071   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00072                         double *weights);
00073   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00074                         double x[3], double pcoords[3], int& subId);
00075   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00076   void Derivatives(int subId, double pcoords[3], double *values, 
00077                    int dim, double *derivs);
00078 
00079 protected:
00080   vtkEmptyCell() {};
00081   ~vtkEmptyCell() {};
00082 
00083 
00084 private:
00085   vtkEmptyCell(const vtkEmptyCell&);  // Not implemented.
00086   void operator=(const vtkEmptyCell&);  // Not implemented.
00087 };
00088 
00089 #endif
00090 
00091