2#pragma warning(disable : 4251)
9class EntityMeshTetData;
10class EntityMeshTetFace;
12class __declspec(dllexport) EntityMeshTet :
public EntityMesh
15 EntityMeshTet(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
16 virtual ~EntityMeshTet();
18 void createProperties(
const std::string materialsFolder,
ot::UID materialsFolderID);
20 virtual bool updateFromProperties(
void)
override;
22 virtual bool considerForPropertyFilter(
void)
override {
return true; };
23 virtual bool considerChildrenForPropertyFilter(
void)
override {
return false; };
25 void getNodeCoords(
size_t node,
double coord[3]);
26 double getNodeCoordX(
size_t node);
27 double getNodeCoordY(
size_t node);
28 double getNodeCoordZ(
size_t node);
29 void setNodeCoordX(
size_t node,
double x);
30 void setNodeCoordY(
size_t node,
double y);
31 void setNodeCoordZ(
size_t node,
double z);
33 void setNumberOfNodes(
size_t n);
35 EntityMeshTetFace *getFace(
int faceId);
36 void setFace(
int faceId, EntityMeshTetFace *face);
38 EntityMeshTetData *getMeshData(
void);
40 virtual void StoreToDataBase(
void)
override;
42 virtual std::string getClassName(
void)
override {
return "EntityMeshTet"; };
43 virtual void addVisualizationNodes(
void)
override;
45 virtual entityType getEntityType(
void)
override {
return TOPOLOGY; };
46 virtual void removeChild(EntityBase *child)
override;
48 bool getMeshValid(
void) {
return meshValid; }
49 void setMeshValid(
bool valid) { meshValid = valid; }
51 void deleteMeshData(
void);
53 void storeMeshData(
void);
54 void releaseMeshData(
void);
56 long long getMeshDataStorageId(
void) {
return meshDataStorageId; }
58 bool updatePropertyVisibilities(
void);
61 void EnsureMeshDataLoaded(
void);
62 virtual int getSchemaVersion(
void)
override {
return 1; };
63 virtual void AddStorageData(bsoncxx::builder::basic::document &storage)
override;
64 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
65 void recursivelySetMesh(
const std::list<EntityBase *> &childList);
67 EntityMeshTetData *meshData;
68 long long meshDataStorageId;
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27