2#pragma warning(disable : 4251)
5#include "TopoDS_Shape.hxx"
6#include "TopoDS_TShape.hxx"
7#include "TopoDS_Face.hxx"
8#include "TopoDS_TFace.hxx"
14class __declspec(dllexport) EntityBrep :
public EntityBase
17 EntityBrep(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
18 virtual ~EntityBrep();
20 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
22 void setBrep(TopoDS_Shape &shape) {
brep = shape; setModified(); }
23 TopoDS_Shape &getBrep(
void) {
return brep; };
25 virtual std::string getClassName(
void) {
return "EntityBrep"; };
27 virtual entityType getEntityType(
void)
override {
return DATA; };
29 gp_Trsf getTransform(
void);
30 void setTransform(gp_Trsf transform);
32 void setFaceName(
const TopoDS_Face& face,
const std::string &name);
33 std::string getFaceName(
const TopoDS_Face& face);
35 void copyFaceNames(EntityBrep *other);
36 void setFaceNameMap(std::map<
const opencascade::handle<TopoDS_TShape>, std::string> &faceNames);
37 std::map< const opencascade::handle<TopoDS_TShape>, std::string> getFaceNameMap();
40 virtual int getSchemaVersion(
void) {
return 1; };
41 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
42 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
46 gp_Trsf transformMatrix;
48 std::map< const opencascade::handle<TopoDS_TShape>, std::string> m_faceNames;
EntityBrep * brep
Definition GeometryOperations.h:21
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27