2#pragma warning(disable : 4251)
9class EntityMeshTetFace;
10class EntityMeshTetInfo;
12class __declspec(dllexport) EntityMeshTetFaceData :
public EntityBase
15 EntityMeshTetFaceData(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
16 virtual ~EntityMeshTetFaceData();
18 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
20 EntityMeshTetFace *getFace(
int faceId);
21 void setFace(
int faceId, EntityMeshTetFace *face);
23 virtual void StoreToDataBase(
void)
override;
25 virtual std::string getClassName(
void) {
return "EntityMeshTetFaceData"; };
27 void addMeshFaceStorageIds(EntityMeshTetInfo *meshInfo);
29 virtual entityType getEntityType(
void)
override {
return DATA; };
30 virtual void removeChild(EntityBase *child)
override;
32 std::map<int, EntityMeshTetFace*> getAllFaces(
void) {
return meshFaces; }
35 virtual int getSchemaVersion(
void) {
return 1; };
36 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
37 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
38 void EnsureFacesLoaded(
void);
39 void storeMeshFaces(
void);
40 void releaseMeshFaces(
void);
42 std::map<int, EntityMeshTetFace*> meshFaces;
43 std::map<EntityBase*, int> meshFacesIndex;
44 std::map<int, std::pair<ot::UID, ot::UID>> meshFaceStorageIds;
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27