OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityMaterial.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
7class __declspec(dllexport) EntityMaterial : public EntityBase
8{
9public:
10 EntityMaterial(ot::UID ID, EntityBase *parent, EntityObserver *mdl, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
11 virtual ~EntityMaterial();
12
13 virtual bool getEntityBox(double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) override;
14
15 virtual void StoreToDataBase(void) override;
16 virtual void addVisualizationNodes(void) override;
17
18 virtual std::string getClassName(void) { return "EntityMaterial"; };
19
20 void addVisualizationItem(bool isHidden);
21
22 virtual entityType getEntityType(void) override { return TOPOLOGY; };
23 virtual void removeChild(EntityBase *child) override;
24
25 void createProperties(void);
26
27 virtual bool updateFromProperties(void) override;
28
29private:
30 virtual int getSchemaVersion(void) { return 1; };
31 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
32 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
33};
34
35
36
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27