00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkExplicitCell.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 __vtkExplicitCell_h 00042 #define __vtkExplicitCell_h 00043 00044 #include "vtkNonLinearCell.h" 00045 00046 class vtkDataSet; 00047 00048 class VTK_COMMON_EXPORT vtkExplicitCell : public vtkNonLinearCell 00049 { 00050 public: 00051 vtkTypeRevisionMacro(vtkExplicitCell,vtkNonLinearCell); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00058 virtual int IsExplicitCell() {return 1;} 00059 00061 00065 vtkSetMacro(CellId,vtkIdType); 00066 vtkGetMacro(CellId,vtkIdType); 00068 00070 00074 virtual void SetDataSet(vtkDataSet*); 00075 vtkGetObjectMacro(DataSet,vtkDataSet); 00077 00078 protected: 00079 vtkExplicitCell(); 00080 ~vtkExplicitCell() {} 00081 00082 vtkIdType CellId; //used to index into other arrays 00083 vtkDataSet *DataSet; //dataset from which this cell came 00084 00085 private: 00086 vtkExplicitCell(const vtkExplicitCell&); // Not implemented. 00087 void operator=(const vtkExplicitCell&); // Not implemented. 00088 }; 00089 00090 #endif 00091 00092