Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Common/vtkEmptyCell.h

Go to the documentation of this file.

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