15 #ifndef __vtkLSDynaPartCollection_h
16 #define __vtkLSDynaPartCollection_h
18 #include "LSDynaMetaData.h"
42 void InitCollection(LSDynaMetaData *metaData,
49 void GetPartReadInfo(
const int& partType,
vtkIdType& numberOfCells,
55 void FinalizeTopology();
62 void RegisterCellIndexToPart(
const int& partType,
const vtkIdType& matIdx,
65 void InitCellInsertion();
73 void InsertCell(
const int& partType,
const vtkIdType& matIdx,
79 const int& deadCellsAsGhostArray);
81 bool IsActivePart(
const int&
id)
const;
88 int GetNumberOfParts()
const;
90 void DisbleDeadCells();
93 void ReadPointUserIds(
const vtkIdType& numTuples,
const char*
name);
96 void ReadPointProperty(
100 const bool &isProperty=
true,
101 const bool& isGeometryPoints=
false,
102 const bool& isRoadPoints=
false);
108 void AddProperty(
const LSDynaMetaData::LSDYNA_TYPES&
type,
const char*
name,
109 const int&
offset,
const int& numComps);
110 void FillCellProperties(
float *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
112 const int& numPropertiesInCell);
113 void FillCellProperties(
double *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
115 const int& numPropertiesInCell);
119 void ReadCellUserIds(
120 const LSDynaMetaData::LSDYNA_TYPES&
type,
const int& status);
123 void FillCellUserId(T *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
126 this->FillCellUserIdArray(buffer,type,startId,numCells);
137 void BuildPartInfo();
144 void FillCellArray(T *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
148 void FillCellUserIdArray(T *buffer,
const LSDynaMetaData::LSDYNA_TYPES&
type,
153 void SetupPointPropertyForReading(
157 const bool& isIdType,
158 const bool& isProperty,
159 const bool& isGeometryPoints,
160 const bool& isRoadPoints);
162 void FillPointProperty(
const vtkIdType& numTuples,
170 LSDynaMetaData *MetaData;
172 class LSDynaPartStorage;
173 LSDynaPartStorage* Storage;
178 #endif // LSDYNAPARTS_H