VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkNonLinearCell.h"
31 
32 class vtkDataSet;
33 
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
44  virtual int IsExplicitCell() {return 1;}
45 
47 
51  vtkSetMacro(CellId,vtkIdType);
52  vtkGetMacro(CellId,vtkIdType);
54 
56 
60  virtual void SetDataSet(vtkDataSet*);
63 
64 protected:
67 
68  vtkIdType CellId; //used to index into other arrays
69  vtkDataSet *DataSet; //dataset from which this cell came
70 
71 private:
72  vtkExplicitCell(const vtkExplicitCell&); // Not implemented.
73  void operator=(const vtkExplicitCell&); // Not implemented.
74 };
75 
76 #endif
77 
78 
abstract class to specify dataset behavior
Definition: vtkDataSet.h:60
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
vtkDataSet * DataSet
abstract superclass for non-linear cells
int vtkIdType
Definition: vtkType.h:268
abstract superclass for cells requiring an explicit representation
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
void PrintSelf(ostream &os, vtkIndent indent)
virtual int IsExplicitCell()
#define VTKCOMMONDATAMODEL_EXPORT
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69