2#pragma warning(disable : 4251)
14class __declspec(dllexport) EntityResult3DData :
public EntityBase ,
public EntityResultBase
17 EntityResult3DData(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
18 virtual ~EntityResult3DData();
20 virtual bool getEntityBox(
double & xmin,
double & xmax,
double & ymin,
double & ymax,
double & zmin,
double & zmax)
override;
22 virtual std::string getClassName(
void) {
return "EntityResult3DData"; };
24 virtual entityType getEntityType(
void)
override {
return DATA;};
31 virtual void StoreToDataBase(
void)
override;
32 void LoadAllData(
void);
34 void SetVectorData(EntityCompressedVector * xComponent, EntityCompressedVector *yComponent, EntityCompressedVector *zComponent);
46 const double* GetXComponentData(
size_t & size);
55 const double* GetYComponentData(
size_t & size);
64 const double* GetZComponentData(
size_t & size);
73 const double* GetXComponentDataAndReleaseEntity(
size_t & size);
82 const double* GetYComponentDataAndReleaseEntity(
size_t & size);
91 const double* GetZComponentDataAndReleaseEntity(
size_t & size);
100 EntityMeshCartesianData * GetMeshData(
void);
102 void clearData(
void);
103 void clearXComponentData(
void);
104 void clearYComponentData(
void);
105 void clearZComponentData(
void);
109 EntityCompressedVector * _xComponentData =
nullptr;
110 EntityCompressedVector * _yComponentData =
nullptr;
111 EntityCompressedVector * _zComponentData =
nullptr;
113 EntityMeshCartesianData * _meshData =
nullptr;
115 long long _xComponentDataID = -1;
116 long long _xComponentDataVersion = -1;
117 long long _yComponentDataID = -1;
118 long long _yComponentDataVersion = -1;
119 long long _zComponentDataID = -1;
120 long long _zComponentDataVersion = -1;
122 long long _meshDataID = -1;
123 long long _meshDataVersion = -1;
125 void DeleteAllCompressedVectors();
127 virtual void AddStorageData(bsoncxx::builder::basic::document &storage)
override;
128 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27