15 #ifndef vtkCPExodusIIElementBlock_h
16 #define vtkCPExodusIIElementBlock_h
18 #include "vtkIOExodusModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
42 bool SetExodusConnectivityArray(
43 int* elements,
const std::string&
type,
int numElements,
int nodesPerElement);
57 void Allocate(
vtkIdType numCells,
int extSize = 1000);
67 ~vtkCPExodusIIElementBlockImpl() override;
70 vtkCPExodusIIElementBlockImpl(const vtkCPExodusIIElementBlockImpl&) = delete;
71 void operator=(const vtkCPExodusIIElementBlockImpl&) = delete;
75 static int PointToNode(
const vtkIdType&
id) {
return static_cast<int>(
id + 1); }
78 int* GetElementStart(
vtkIdType cellId)
const
80 return this->Elements + (cellId * this->CellSize);
82 int* GetElementEnd(
vtkIdType cellId)
const
84 return this->Elements + (cellId * this->CellSize) + this->CellSize;
86 int* GetStart()
const {
return this->Elements; }
87 int* GetEnd()
const {
return this->Elements + (this->NumberOfCells * this->CellSize); }
99 #endif // vtkCPExodusIIElementBlock_h
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of vtkIdType
provides thread-safe access to cells
a simple class to control print indentation
list of point or cell ids
#define VTK_SIZEHINT(...)
vtkMakeExportedMappedUnstructuredGrid(vtkCPExodusIIElementBlock, vtkCPExodusIIElementBlockImpl, VTKIOEXODUS_EXPORT)
int GetCellType(const Ioss::ElementTopology *topology)
Returns VTK celltype for a Ioss topology element.
Uses an Exodus II element block as a vtkMappedUnstructuredGrid's implementation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...