26 #ifndef vtkCPExodusIIElementBlock_h
27 #define vtkCPExodusIIElementBlock_h
52 bool SetExodusConnectivityArray(
int *elements, const std::
string &
type,
53 int numElements,
int nodesPerElement);
67 void Allocate(
vtkIdType numCells,
int extSize = 1000);
76 ~vtkCPExodusIIElementBlockImpl();
79 vtkCPExodusIIElementBlockImpl(const vtkCPExodusIIElementBlockImpl &);
80 void operator=(const vtkCPExodusIIElementBlockImpl &);
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
dynamic, self-adjusting array of vtkIdType
provides thread-safe access to cells
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
list of point or cell ids
#define VTKIOEXODUS_EXPORT
Uses an Exodus II element block as a vtkMappedUnstructuredGrid's implementation.
#define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl)