OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityVis2D3D.h
Go to the documentation of this file.
1#pragma once
2#pragma warning(disable : 4251)
3
4#include "EntityContainer.h"
5#include "EntityResultBase.h"
6#include "OldTreeIcon.h"
7
8#include <list>
9
10class __declspec(dllexport) EntityVis2D3D : public EntityContainer
11{
12public:
13 EntityVis2D3D(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
14 virtual ~EntityVis2D3D();
15
16 virtual void addVisualizationNodes(void) override;
17
18 virtual std::string getClassName(void) override { return "EntityVis2D3D"; } ;
19
20 virtual entityType getEntityType(void) override { return TOPOLOGY; };
21
22 virtual bool considerForPropertyFilter(void) override { return true; };
23 virtual bool considerChildrenForPropertyFilter(void) override { return false; };
24
25 virtual bool updateFromProperties(void) override;
26
27 virtual void createProperties(void);
28 virtual bool updatePropertyVisibilities(void);
29
30 ot::UID getDataID(void) { return visualizationDataID; }
31 void setDataID(ot::UID data) { visualizationDataID = data; setModified(); }
32
33 ot::UID getDataVersion(void) { return visualizationDataVersion; }
34 void setDataVersion(ot::UID data) { visualizationDataVersion = data; setModified(); }
35
36 void setResultType(EntityResultBase::tResultType type) { resultType = type; }
37 EntityResultBase::tResultType getResultType(void) { return resultType; }
38
39 void setSource(ot::UID id, ot::UID version) { sourceID = id; sourceVersion = version; }
40 void setMesh(ot::UID id, ot::UID version) { meshID = id; meshVersion = version; }
41
42 //void ensureSourceDataLoaded(void);
43
44 ot::UID getSourceID(void) { return sourceID; }
45 ot::UID getSourceVersion(void) { return sourceVersion; }
46
47 ot::UID getMeshID(void) { return meshID; }
48 ot::UID getMeshVersion(void) { return meshVersion; }
49
50protected:
51 virtual int getSchemaVersion(void) override { return 1; } ;
52 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
53 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
54
55protected:
56 ot::UID visualizationDataID;
57 ot::UID visualizationDataVersion;
58 ot::UID sourceID;
59 ot::UID sourceVersion;
60 ot::UID meshID;
61 ot::UID meshVersion;
62 EntityResultBase::tResultType resultType;
63
64 // Temporary
65 //EntityResultBase *source;
66};
67
68
69
UICORE_API_EXPORT objectType type(UID _objectUID)
Will return the object type of the specified object.
Definition uiAPI.cpp:596
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27