2#pragma warning(disable : 4251)
9class EntityMeshCartesianData;
11class __declspec(dllexport) EntityMeshCartesian :
public EntityMesh
14 EntityMeshCartesian(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
15 virtual ~EntityMeshCartesian();
17 void createProperties(
const std::string materialsFolder,
ot::UID materialsFolderID);
19 virtual bool updateFromProperties(
void)
override;
21 virtual bool considerForPropertyFilter(
void)
override {
return true; };
22 virtual bool considerChildrenForPropertyFilter(
void)
override {
return false; };
24 EntityMeshCartesianData *getMeshData(
void);
26 virtual void StoreToDataBase(
void)
override;
28 virtual std::string getClassName(
void)
override {
return "EntityMeshCartesian"; };
29 virtual void addVisualizationNodes(
void)
override;
31 virtual entityType getEntityType(
void)
override {
return TOPOLOGY; };
32 virtual void removeChild(EntityBase *child)
override;
34 bool getMeshValid(
void) {
return meshValid; }
35 void setMeshValid(
bool valid) { meshValid = valid; }
37 void deleteMeshData(
void);
39 void storeMeshData(
void);
40 void releaseMeshData(
void);
42 long long getMeshDataStorageId(
void) {
return meshDataStorageId; }
43 void setMeshDataID(
long long id);
45 bool updatePropertyVisibilities(
void);
48 void EnsureMeshDataLoaded(
void);
49 virtual int getSchemaVersion(
void)
override {
return 1; };
50 virtual void AddStorageData(bsoncxx::builder::basic::document &storage)
override;
51 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
53 EntityMeshCartesianData *meshData;
54 long long meshDataStorageId;
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27