VTK  9.3.1
vtkCPExodusIIElementBlockCellIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
9 #ifndef vtkCPExodusIIElementBlockCellIterator_h
10 #define vtkCPExodusIIElementBlockCellIterator_h
11 
12 #include "vtkCellIterator.h"
13 #include "vtkIOExodusModule.h" // For export macro
14 
15 #include "vtkSmartPointer.h" // For smart pointer
16 
17 VTK_ABI_NAMESPACE_BEGIN
19 class vtkCPExodusIIElementBlockPrivate;
20 
21 class VTKIOEXODUS_EXPORT vtkCPExodusIIElementBlockCellIterator : public vtkCellIterator
22 {
23 public:
24  typedef vtkCPExodusIIElementBlockPrivate StorageType;
25 
28  void PrintSelf(ostream& os, vtkIndent indent);
29 
30  bool IsValid();
32 
33 protected:
36 
37  void ResetToFirstCell();
38  void IncrementToNextCell();
39  void FetchCellType();
40  void FetchPointIds();
41  void FetchPoints();
42 
43  friend class ::vtkCPExodusIIElementBlock;
44  void SetStorage(vtkCPExodusIIElementBlock* eb);
45 
46 private:
48  void operator=(const vtkCPExodusIIElementBlockCellIterator&) = delete;
49 
51  vtkSmartPointer<vtkPoints> DataSetPoints;
52  vtkIdType CellId;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif // vtkCPExodusIIElementBlockCellIterator_h
int vtkIdType
Definition: vtkType.h:315
virtual void FetchCellType()=0
Lookup the cell type in the data set and store it in this->CellType.
virtual void ResetToFirstCell()=0
Update internal state to point to the first cell.
virtual void IncrementToNextCell()=0
Update internal state to point to the next cell.
virtual vtkIdType GetCellId()=0
Get the id of the current cell.
virtual void FetchPointIds()=0
Lookup the cell point ids in the data set and store them in this->PointIds.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Uses an Exodus II element block as a vtkMappedUnstructuredGrid's implementation.
virtual void FetchPoints()=0
Lookup the cell points in the data set and store them in this->Points.
Efficient cell iterator for vtkDataSet topologies.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkCellIterator subclass specialized for vtkCPExodusIIElementBlock.