VTK
vtkExplicitCell.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExplicitCell.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef __vtkExplicitCell_h
27 #define __vtkExplicitCell_h
28 
29 #include "vtkNonLinearCell.h"
30 
31 class vtkDataSet;
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
43  virtual int IsExplicitCell() {return 1;}
44 
46 
50  vtkSetMacro(CellId,vtkIdType);
51  vtkGetMacro(CellId,vtkIdType);
53 
55 
59  virtual void SetDataSet(vtkDataSet*);
60  vtkGetObjectMacro(DataSet,vtkDataSet);
62 
63 protected:
66 
67  vtkIdType CellId; //used to index into other arrays
68  vtkDataSet *DataSet; //dataset from which this cell came
69 
70 private:
71  vtkExplicitCell(const vtkExplicitCell&); // Not implemented.
72  void operator=(const vtkExplicitCell&); // Not implemented.
73 };
74 
75 #endif
76 
77