OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityResultTextData.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) EntityResultTextData : public EntityBase
11{
12public:
13 EntityResultTextData(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
14 virtual ~EntityResultTextData();
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 "EntityResultTextData"; };
21
22 virtual entityType getEntityType(void) override { return DATA; };
23 virtual void removeChild(EntityBase *child) override;
24
25 void setText(const std::string &text);
26 std::string &getText(void);
27
28private:
29 virtual int getSchemaVersion(void) { return 1; };
30 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
31 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
32
33 std::string textData;
34};
35
36
37
UICORE_API_EXPORT void setText(UID _actionUID, const QString &_text)
Will set the text of the action.
Definition uiAPI.cpp:344
UICORE_API_EXPORT QString getText(UID _actionUID)
Will return the text of the action.
Definition uiAPI.cpp:362
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27