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

Common/vtkCell3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCell3D.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 =========================================================================*/
00026 #ifndef __vtkCell3D_h
00027 #define __vtkCell3D_h
00028 
00029 #include "vtkCell.h"
00030 
00031 class vtkOrderedTriangulator;
00032 class vtkTetra;
00033 class vtkCellArray;
00034 class vtkDoubleArray;
00035 
00036 class VTK_COMMON_EXPORT vtkCell3D : public vtkCell
00037 {
00038 public:
00039   vtkTypeRevisionMacro(vtkCell3D,vtkCell);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00047   virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
00048   
00054   virtual void GetFacePoints(int faceId, int* &pts) = 0;
00055 
00057 
00068   virtual void Clip(double value, vtkDataArray *cellScalars, 
00069                     vtkPointLocator *locator, vtkCellArray *connectivity,
00070                     vtkPointData *inPd, vtkPointData *outPd,
00071                     vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 
00072                     int insideOut);
00074 
00076   virtual int GetCellDimension() {return 3;}
00077 
00079 
00082   vtkSetClampMacro(MergeTolerance,double,0.0001,0.25);
00083   vtkGetMacro(MergeTolerance,double);
00085 
00086 protected:
00087   vtkCell3D();
00088   ~vtkCell3D();
00089   
00090   vtkOrderedTriangulator *Triangulator;
00091   double                  MergeTolerance;
00092 
00093   //used to support clipping
00094   vtkTetra               *ClipTetra;
00095   vtkDoubleArray         *ClipScalars;
00096 
00097 private:
00098   vtkCell3D(const vtkCell3D&);  // Not implemented.
00099   void operator=(const vtkCell3D&);  // Not implemented.
00100 };
00101 
00102 #endif
00103 
00104