VTK: IO/Exodus/vtkCPExodusIIElementBlockCellIterator.h Source File

| 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
18 class vtkCPExodusIIElementBlock;
19 class vtkCPExodusIIElementBlockPrivate;
20
21 class VTKIOEXODUS_EXPORT vtkCPExodusIIElementBlockCellIterator : public vtkCellIterator
22 {
23 public:
24 typedef vtkCPExodusIIElementBlockPrivate StorageType;
25
26 static vtkCPExodusIIElementBlockCellIterator* New();
27 vtkTypeMacro(vtkCPExodusIIElementBlockCellIterator, vtkCellIterator);
28 void PrintSelf(ostream& os, vtkIndent indent);
29
30 bool IsValid();
31 vtkIdType GetCellId();
32
33 protected:
34 vtkCPExodusIIElementBlockCellIterator();
35 ~vtkCPExodusIIElementBlockCellIterator();
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:
47 vtkCPExodusIIElementBlockCellIterator(const vtkCPExodusIIElementBlockCellIterator&) = delete;
48 void operator=(const vtkCPExodusIIElementBlockCellIterator&) = delete;
49
50 vtkSmartPointer<StorageType> Storage;
51 vtkSmartPointer<vtkPoints> DataSetPoints;
52 vtkIdType CellId;
53 };
54
55 VTK_ABI_NAMESPACE_END
56 #endif // vtkCPExodusIIElementBlockCellIterator_h
vtkCPExodusIIElementBlockCellIterator
vtkCellIterator subclass specialized for vtkCPExodusIIElementBlock.
Definition: vtkCPExodusIIElementBlockCellIterator.h:22
vtkCPExodusIIElementBlockCellIterator::New
static vtkCPExodusIIElementBlockCellIterator * New()
vtkCPExodusIIElementBlockCellIterator::ResetToFirstCell
void ResetToFirstCell()
Update internal state to point to the first cell.
vtkCPExodusIIElementBlockCellIterator::IncrementToNextCell
void IncrementToNextCell()
Update internal state to point to the next cell.
vtkCPExodusIIElementBlockCellIterator::FetchPoints
void FetchPoints()
Lookup the cell points in the data set and store them in this->Points.
vtkCPExodusIIElementBlockCellIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkCPExodusIIElementBlockCellIterator::~vtkCPExodusIIElementBlockCellIterator
~vtkCPExodusIIElementBlockCellIterator()
vtkCPExodusIIElementBlockCellIterator::IsValid
bool IsValid()
vtkCPExodusIIElementBlockCellIterator::GetCellId
vtkIdType GetCellId()
Get the id of the current cell.
vtkCPExodusIIElementBlockCellIterator::SetStorage
void SetStorage(vtkCPExodusIIElementBlock *eb)
vtkCPExodusIIElementBlockCellIterator::FetchCellType
void FetchCellType()
Lookup the cell type in the data set and store it in this->CellType.
vtkCPExodusIIElementBlockCellIterator::StorageType
vtkCPExodusIIElementBlockPrivate StorageType
Definition: vtkCPExodusIIElementBlockCellIterator.h:24
vtkCPExodusIIElementBlockCellIterator::FetchPointIds
void FetchPointIds()
Lookup the cell point ids in the data set and store them in this->PointIds.
vtkCPExodusIIElementBlockCellIterator::vtkCPExodusIIElementBlockCellIterator
vtkCPExodusIIElementBlockCellIterator()
vtkCPExodusIIElementBlock
Uses an Exodus II element block as a vtkMappedUnstructuredGrid's implementation.
vtkCellIterator
Efficient cell iterator for vtkDataSet topologies.
Definition: vtkCellIterator.h:79
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSmartPointer< StorageType >
vtkCellIterator.h
vtkSmartPointer.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315