15#ifndef vtkCPExodusIIElementBlock_h
16#define vtkCPExodusIIElementBlock_h
19#include "vtkIOExodusModule.h"
26VTK_ABI_NAMESPACE_BEGIN
45 int* elements,
const std::string& type,
int numElements,
int nodesPerElement);
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); }
vtkIdType InsertNextCell(int type, vtkIdList *ptIds)
vtkIdType InsertNextCell(int type, vtkIdType npts, const vtkIdType ptIds[], vtkCellArray *faces)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array)
~vtkCPExodusIIElementBlockImpl() override
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)
void ReplaceCell(vtkIdType cellId, int npts, const vtkIdType pts[])
int GetCellType(vtkIdType cellId)
void Allocate(vtkIdType numCells, int extSize=1000)
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)
vtkIdType InsertNextCell(int type, vtkIdType npts, const vtkIdType ptIds[])
vtkCPExodusIIElementBlockImpl()
void GetPolyhedronFaces(vtkIdType cellId, vtkCellArray *faces)
vtkIdType GetNumberOfCells()
bool SetExodusConnectivityArray(int *elements, const std::string &type, int numElements, int nodesPerElement)
Set the Exodus element block data.
void GetFaceStream(vtkIdType cellId, vtkIdList *ptIds)
static vtkCPExodusIIElementBlockImpl * New()
Uses an Exodus II element block as a vtkMappedUnstructuredGrid's implementation.
object to represent cell connectivity
provides thread-safe access to cells
list of point or cell ids
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
#define VTK_DEPRECATED_IN_9_7_0(reason)
#define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl)
#define VTK_SIZEHINT(...)