15 #ifndef vtkLSDynaPartCollection_h
16 #define vtkLSDynaPartCollection_h
19 #include "LSDynaMetaData.h"
43 void InitCollection(LSDynaMetaData *metaData,
50 void GetPartReadInfo(
const int& partType,
vtkIdType& numberOfCells,
56 void FinalizeTopology();
63 void RegisterCellIndexToPart(
const int& partType,
const vtkIdType& matIdx,
66 void InitCellInsertion();
74 void InsertCell(
const int& partType,
const vtkIdType& matIdx,
80 const int& deadCellsAsGhostArray);
82 bool IsActivePart(
const int&
id)
const;
89 int GetNumberOfParts()
const;
91 void DisbleDeadCells();
94 void ReadPointUserIds(
const vtkIdType& numTuples,
const char*
name);
97 void ReadPointProperty(
101 const bool &isProperty=
true,
102 const bool& isGeometryPoints=
false,
103 const bool& isRoadPoints=
false);
109 void AddProperty(
const LSDynaMetaData::LSDYNA_TYPES&
type,
const char*
name,
110 const int&
offset,
const int& numComps);
111 void FillCellProperties(
float *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
113 const int& numPropertiesInCell);
114 void FillCellProperties(
double *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
116 const int& numPropertiesInCell);
120 void ReadCellUserIds(
121 const LSDynaMetaData::LSDYNA_TYPES&
type,
const int& status);
127 this->FillCellUserIdArray(buffer,type,startId,numCells);
138 void BuildPartInfo();
145 void FillCellArray(T *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
149 void FillCellUserIdArray(T *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
154 void SetupPointPropertyForReading(
158 const bool& isIdType,
159 const bool& isProperty,
160 const bool& isGeometryPoints,
161 const bool& isRoadPoints);
163 void FillPointProperty(
const vtkIdType& numTuples,
171 LSDynaMetaData *MetaData;
173 class LSDynaPartStorage;
174 LSDynaPartStorage* Storage;
179 #endif // LSDYNAPARTS_H
abstract base class for most VTK objects
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of unsigned char
CellTypeInDataSet cellType(vtkDataSet *input)
#define VTKIOLSDYNA_EXPORT
void FillCellUserId(T *buffer, const LSDynaMetaData::LSDYNA_TYPES &type, const vtkIdType &startId, const vtkIdType &numCells)
represent and manipulate 3D points