27 #ifndef vtkCPExodusIIElementBlock_h 28 #define vtkCPExodusIIElementBlock_h 31 #include "vtkIOExodusModule.h" 53 bool SetExodusConnectivityArray(
int *elements, const std::
string &
type,
54 int numElements,
int nodesPerElement);
67 void Allocate(
vtkIdType numCells,
int extSize = 1000);
76 ~vtkCPExodusIIElementBlockImpl() override;
79 vtkCPExodusIIElementBlockImpl(const vtkCPExodusIIElementBlockImpl &) = delete;
80 void operator=(const vtkCPExodusIIElementBlockImpl &) = delete;
83 static
vtkIdType NodeToPoint(const
int &
id)
87 static int PointToNode(
const vtkIdType &
id)
89 return static_cast<int>(
id + 1);
93 int* GetElementStart(
vtkIdType cellId)
const 95 return this->Elements + (cellId * this->CellSize);
97 int* GetElementEnd(
vtkIdType cellId)
const 99 return this->Elements + (cellId * this->CellSize) + this->CellSize;
101 int* GetStart()
const {
return this->Elements; }
104 return this->Elements + (this->NumberOfCells * this->CellSize);
117 #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(...)
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...
#define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl)