OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityMeshTetInfo.h
Go to the documentation of this file.
1#pragma once
2#pragma warning(disable : 4251)
3
4#include "EntityBase.h"
5#include "OldTreeIcon.h"
6
7#include <list>
8
9class __declspec(dllexport) EntityMeshTetInfo : public EntityBase
10{
11public:
12 EntityMeshTetInfo(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
13 virtual ~EntityMeshTetInfo();
14
15 virtual bool getEntityBox(double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) override;
16
17 virtual std::string getClassName(void) { return "EntityMeshTetInfo"; };
18
19 virtual entityType getEntityType(void) override { return DATA; };
20
21 void addGeneralData(ot::UID dataID, ot::UID dataVersion) { generalData.push_back(std::pair<ot::UID, ot::UID>(dataID, dataVersion)); };
22 void addFacesData(ot::UID dataID, ot::UID dataVersion) { facesData.push_back(std::pair<ot::UID, ot::UID>(dataID, dataVersion)); };
23 void addVolumeData(ot::UID dataID, ot::UID dataVersion) { volumeData.push_back(std::pair<ot::UID, ot::UID>(dataID, dataVersion)); };
24
25private:
26 virtual int getSchemaVersion(void) { return 1; };
27 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
28 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
29
30 std::list<std::pair<ot::UID, ot::UID>> generalData;
31 std::list<std::pair<ot::UID, ot::UID>> facesData;
32 std::list<std::pair<ot::UID, ot::UID>> volumeData;
33};
34
35
36
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27