27 #ifndef vtkCPExodusIIElementBlock_h
28 #define vtkCPExodusIIElementBlock_h
30 #include "vtkIOExodusModule.h"
53 bool SetExodusConnectivityArray(
54 int* elements,
const std::string&
type,
int numElements,
int nodesPerElement);
68 void Allocate(
vtkIdType numCells,
int extSize = 1000);
78 ~vtkCPExodusIIElementBlockImpl() override;
81 vtkCPExodusIIElementBlockImpl(const vtkCPExodusIIElementBlockImpl&) = delete;
82 void operator=(const vtkCPExodusIIElementBlockImpl&) = delete;
86 static int PointToNode(
const vtkIdType&
id) {
return static_cast<int>(
id + 1); }
89 int* GetElementStart(
vtkIdType cellId)
const
91 return this->Elements + (cellId * this->CellSize);
93 int* GetElementEnd(
vtkIdType cellId)
const
95 return this->Elements + (cellId * this->CellSize) + this->CellSize;
97 int* GetStart()
const {
return this->Elements; }
98 int* GetEnd()
const {
return this->Elements + (this->NumberOfCells * this->CellSize); }
109 #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...