27 #ifndef vtkCPExodusIIElementBlock_h 28 #define vtkCPExodusIIElementBlock_h 54 int numElements,
int nodesPerElement);
57 vtkIdType GetNumberOfCells();
58 int GetCellType(vtkIdType cellId);
59 void GetCellPoints(vtkIdType cellId,
vtkIdList *ptIds);
60 void GetPointCells(vtkIdType ptId,
vtkIdList *cellIds);
67 void Allocate(vtkIdType numCells,
int extSize = 1000);
69 vtkIdType InsertNextCell(
int type, vtkIdType npts, vtkIdType *ptIds);
70 vtkIdType InsertNextCell(
int type, vtkIdType npts, vtkIdType *ptIds,
71 vtkIdType nfaces, vtkIdType *faces);
72 void ReplaceCell(vtkIdType cellId,
int npts, vtkIdType *pts);
83 static vtkIdType NodeToPoint(
const int &
id)
85 return static_cast<vtkIdType>(
id - 1);
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);
110 vtkIdType NumberOfCells;
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 VTKIOEXODUS_EXPORT
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)