VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Common/DataModel/vtkExplicitCell.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkExplicitCell.h
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 vtkExplicitCell_h
00027 #define vtkExplicitCell_h
00028 
00029 #include "vtkCommonDataModelModule.h" // For export macro
00030 #include "vtkNonLinearCell.h"
00031 
00032 class vtkDataSet;
00033 
00034 class VTKCOMMONDATAMODEL_EXPORT vtkExplicitCell : public vtkNonLinearCell
00035 {
00036 public:
00037   vtkTypeMacro(vtkExplicitCell,vtkNonLinearCell);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00044   virtual int IsExplicitCell() {return 1;}
00045 
00047 
00051   vtkSetMacro(CellId,vtkIdType);
00052   vtkGetMacro(CellId,vtkIdType);
00054 
00056 
00060   virtual void SetDataSet(vtkDataSet*);
00061   vtkGetObjectMacro(DataSet,vtkDataSet);
00063 
00064 protected:
00065   vtkExplicitCell();
00066   ~vtkExplicitCell() {}
00067 
00068   vtkIdType  CellId; //used to index into other arrays
00069   vtkDataSet *DataSet; //dataset from which this cell came
00070 
00071 private:
00072   vtkExplicitCell(const vtkExplicitCell&);  // Not implemented.
00073   void operator=(const vtkExplicitCell&);  // Not implemented.
00074 };
00075 
00076 #endif
00077 
00078