Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00041 #ifndef __vtkCell3D_h
    00042 #define __vtkCell3D_h
    00043
    00044 #include "vtkCell.h"
    00045
    00046 class vtkOrderedTriangulator;
    00047
    00048 class VTK_COMMON_EXPORT vtkCell3D : public vtkCell
    00049 {
    00050 public:
    00051   vtkTypeRevisionMacro(vtkCell3D,vtkCell);
    00052   void PrintSelf(ostream& os, vtkIndent indent);
    00053
    00059   virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
    00060
    00066   virtual void GetFacePoints(int faceId, int* &pts) = 0;
    00067
    00069
    00080   virtual void Clip(float value, vtkDataArray *cellScalars,
    00081                     vtkPointLocator *locator, vtkCellArray *connectivity,
    00082                     vtkPointData *inPd, vtkPointData *outPd,
    00083                     vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
    00084                     int insideOut);
    00086
    00088   virtual int GetCellDimension() {return 3;}
    00089
    00094   virtual float *GetParametricCoords();
    00095
    00096 protected:
    00097   vtkCell3D():Triangulator(NULL) {}
    00098   ~vtkCell3D();
    00099
    00100   vtkOrderedTriangulator *Triangulator;
    00101
    00102   //Some cells define templates for interior clipping
    00103   virtual int ClipInteriorCell(vtkCellArray *)
    00104     {return 0;}
    00105
    00106 private:
    00107   vtkCell3D(const vtkCell3D&);  // Not implemented.
    00108   void operator=(const vtkCell3D&);  // Not implemented.
    00109 };
    00110
    00111 #endif
    00112
    00113