OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ShapesBase.h
Go to the documentation of this file.
1#pragma once
2
3#include "OldTreeIcon.h"
4
5#include <string>
6#include <vector>
7#include <list>
8
11
12class EntityGeometry;
13class EntityCache;
14class ClassFactory;
15
16class TopoDS_Shape;
17
19{
20public:
21 ShapesBase(ot::components::UiComponent *_uiComponent, ot::components::ModelComponent *_modelComponent, ot::serviceID_t _serviceID, const std::string &_serviceName, EntityCache *_entityCache, ClassFactory *_classFactory);
23
24 ShapesBase() = delete;
25
26protected:
27 std::string to_string(double value);
28 void storeShapeInModel(const TopoDS_Shape & _shape, std::vector<double> &_transform, const std::string& _name,
29 const std::string &_type, std::list<std::pair<std::string, std::string>> &shapeParameters, std::list<std::string> &faceNames);
30 void applyFaceNames(EntityGeometry *geomEntity, const TopoDS_Shape& _shape, std::list<std::string>& faceNames);
31
32 void writeShapeToStepFile(const TopoDS_Shape & _shape, const std::string& _filename);
33 void deleteNonStandardProperties(EntityGeometry* geometryEntity);
34
35protected:
39 std::string serviceName;
41 ClassFactory* classFactory;
42
43private:
44 static std::string materialsFolder;
45 static ot::UID materialsFolderID;
46};
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition EntityCache.h:26
Definition ShapesBase.h:19
std::string serviceName
Definition ShapesBase.h:39
void deleteNonStandardProperties(EntityGeometry *geometryEntity)
Definition ShapesBase.cpp:46
ShapesBase()=delete
void writeShapeToStepFile(const TopoDS_Shape &_shape, const std::string &_filename)
Definition ShapesBase.cpp:215
ot::components::ModelComponent * modelComponent
Definition ShapesBase.h:37
ot::components::UiComponent * uiComponent
Definition ShapesBase.h:36
EntityCache * entityCache
Definition ShapesBase.h:40
~ShapesBase()
Definition ShapesBase.h:22
ClassFactory * classFactory
Definition ShapesBase.h:41
void storeShapeInModel(const TopoDS_Shape &_shape, std::vector< double > &_transform, const std::string &_name, const std::string &_type, std::list< std::pair< std::string, std::string > > &shapeParameters, std::list< std::string > &faceNames)
Definition ShapesBase.cpp:60
void applyFaceNames(EntityGeometry *geomEntity, const TopoDS_Shape &_shape, std::list< std::string > &faceNames)
Definition ShapesBase.cpp:193
std::string to_string(double value)
Definition ShapesBase.cpp:38
ot::serviceID_t serviceID
Definition ShapesBase.h:38
Definition ModelComponent.h:42
Definition UiComponent.h:31
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27
unsigned short serviceID_t
ID type used to identify a service (16 bit unsigned integer).
Definition CoreTypes.h:14