OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityFacetData.h
Go to the documentation of this file.
1#pragma once
2#pragma warning(disable : 4251)
3
4#include "EntityBase.h"
5#include "Geometry.h"
6#include "OldTreeIcon.h"
7
8#include <list>
9#include <vector>
10
11class __declspec(dllexport) EntityFacetData : public EntityBase
12{
13public:
14 EntityFacetData(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler *factory, const std::string &owner);
15 virtual ~EntityFacetData();
16
17 virtual bool getEntityBox(double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax) override {return false;};
18
19 void resetErrors(void) { errors.clear(); };
20
21 std::vector<Geometry::Node> &getNodeVector(void) { return nodes; };
22 std::list<Geometry::Triangle> &getTriangleList(void) { return triangles; };
23 std::list<Geometry::Edge> &getEdgeList(void) { return edges; };
24 std::string &getErrorString(void) { return errors; };
25 std::map<ot::UID, std::string> &getFaceNameMap(void) { return faceNameMap; };
26
27
28 virtual std::string getClassName(void) override { return "EntityFacetData"; };
29
30 virtual entityType getEntityType(void) override { return DATA; };
31
32private:
33 virtual int getSchemaVersion(void) override { return 1; };
34 virtual void AddStorageData(bsoncxx::builder::basic::document &storage) override;
35 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
36
37 std::vector<Geometry::Node> nodes;
38 std::list<Geometry::Triangle> triangles;
39 std::list<Geometry::Edge> edges;
40 std::map<ot::UID, std::string> faceNameMap;
41 std::string errors;
42};
43
44
45
@ nodes
Definition MonitorSettings.h:17
@ edges
Definition MonitorSettings.h:17
EntityBrep double std::vector< Geometry::Node > std::list< Geometry::Triangle > & triangles
Definition GeometryOperations.h:22
EntityBrep double std::vector< Geometry::Node > std::list< Geometry::Triangle > std::list< Geometry::Edge > std::map< ot::UID, std::string > std::string & errors
Definition GeometryOperations.h:22
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27