OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityResult1DCurveData.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#include <vector>
9
10class __declspec(dllexport) EntityResult1DCurveData : public EntityBase
11{
12public:
13 EntityResult1DCurveData(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
14 virtual ~EntityResult1DCurveData();
15
16 virtual bool getEntityBox(double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) override;
17
18 virtual void StoreToDataBase(void) override;
19
20 virtual std::string getClassName(void) { return "EntityResult1DCurveData"; };
21
22 virtual entityType getEntityType(void) override { return DATA; };
23 virtual void removeChild(EntityBase *child) override;
24
25 void setXData(const std::vector<double> &x);
26 void setYData(const std::vector<double> &yre, const std::vector<double> &yim);
27
28 void clearData(void);
29 void clearXData(void);
30 void clearYData(void);
31
32 const std::vector<double> &getXData(void);
33 const std::vector<double> &getYDataReal(void);
34 const std::vector<double> &getYDataImag(void);
35
36private:
37 virtual int getSchemaVersion(void) { return 1; };
38 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
39 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
40
41 std::vector<double> dataX, dataYre, dataYim;
42};
43
44
45
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27