OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityCoordinates2D.h
Go to the documentation of this file.
1#pragma once
2#include "EntityBase.h"
3#include "OTCore/Point2D.h"
4
5class __declspec(dllexport) EntityCoordinates2D : public EntityBase
6{
7public:
8 EntityCoordinates2D(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
9 virtual bool getEntityBox(double& xmin, double& xmax, double& ymin, double& ymax, double& zmin, double& zmax) override;
10 virtual entityType getEntityType(void) override { return DATA; };
11 void setCoordinates(const ot::Point2DD& position) { _location = position; setModified(); }
12 ot::Point2DD getCoordinates() { return _location; }
13 virtual std::string getClassName(void) { return "EntityCoordinates2D"; };
14private:
15 ot::Point2DD _location;
16
17 void AddStorageData(bsoncxx::builder::basic::document& storage) override;
18 void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase*>& entityMap) override;
19};
2D Point with double values
Definition Point2D.h:144
UICORE_API_EXPORT QPoint position(UID _windowUID)
Will return the position of the window.
Definition uiAPI.cpp:928
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27