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   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 =========================================================================*/
00030 #ifndef __vtkCell3D_h
00031 #define __vtkCell3D_h
00032 
00033 #include "vtkCell.h"
00034 
00035 class vtkOrderedTriangulator;
00036 
00037 class VTK_COMMON_EXPORT vtkCell3D : public vtkCell
00038 {
00039 public:
00040   vtkTypeRevisionMacro(vtkCell3D,vtkCell);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00048   virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
00049   
00055   virtual void GetFacePoints(int faceId, int* &pts) = 0;
00056 
00058 
00069   virtual void Clip(float value, vtkDataArray *cellScalars, 
00070                     vtkPointLocator *locator, vtkCellArray *connectivity,
00071                     vtkPointData *inPd, vtkPointData *outPd,
00072                     vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 
00073                     int insideOut);
00075 
00077   virtual int GetCellDimension() {return 3;}
00078 
00083   virtual float *GetParametricCoords();
00084 
00085 protected:
00086   vtkCell3D():Triangulator(NULL) {}
00087   ~vtkCell3D();
00088   
00089   vtkOrderedTriangulator *Triangulator;
00090   
00091   //Some cells define templates for interior clipping
00092   virtual int ClipInteriorCell(vtkCellArray *)
00093     {return 0;}
00094 
00095 private:
00096   vtkCell3D(const vtkCell3D&);  // Not implemented.
00097   void operator=(const vtkCell3D&);  // Not implemented.
00098 };
00099 
00100 #endif
00101 
00102