15 #ifndef vtkCPExodusIIElementBlock_h
16 #define vtkCPExodusIIElementBlock_h
19 #include "vtkIOExodusModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
44 bool SetExodusConnectivityArray(
45 int* elements,
const std::string&
type,
int numElements,
int nodesPerElement);
60 void Allocate(
vtkIdType numCells,
int extSize = 1000);
79 static int PointToNode(
const vtkIdType&
id) {
return static_cast<int>(
id + 1); }
82 int* GetElementStart(
vtkIdType cellId)
const
84 return this->Elements + (cellId * this->CellSize);
86 int* GetElementEnd(
vtkIdType cellId)
const
88 return this->Elements + (cellId * this->CellSize) + this->CellSize;
90 int* GetStart()
const {
return this->Elements; }
91 int* GetEnd()
const {
return this->Elements + (this->NumberOfCells * this->CellSize); }
102 VTK_ABI_NAMESPACE_END
103 #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
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkIdType IsHomogeneous(vtkCellArray *cells)
VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string &shape)
Get vtk cell type from conduit shape name throw a runtime_error on unsupported type.
a simple class to control print indentation
list of point or cell ids
#define VTK_SIZEHINT(...)
vtkMakeExportedMappedUnstructuredGrid(vtkCPExodusIIElementBlock, vtkCPExodusIIElementBlockImpl, VTKIOEXODUS_EXPORT)
Uses an Exodus II element block as a vtkMappedUnstructuredGrid's implementation.
object to represent cell connectivity
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
#define VTK_DEPRECATED_IN_9_7_0(reason)