2#pragma warning(disable : 4251)
9class EntityMeshCartesianData;
14class __declspec(dllexport) EntityMeshCartesianItem :
public EntityBase
17 EntityMeshCartesianItem(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
18 virtual ~EntityMeshCartesianItem();
20 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
22 void setMesh(EntityMeshCartesianData *
m) { mesh =
m; };
24 void setNumberFaces(
size_t nT) { faces.resize(nT); setModified(); };
26 int getFaceId(
size_t nF) {
return faces[nF]; };
27 void setFace(
size_t nF,
int faceId) { faces[nF] = faceId; setModified(); };
29 bool getFaceOrientation(
size_t nF) {
return getFaceId(nF) > 0; };
33 virtual void StoreToDataBase(
void)
override;
35 virtual void addVisualizationNodes(
void)
override;
37 void addVisualizationItem(
bool isHidden);
39 void setColor(
double r,
double g,
double b) { colorRGB[0] = r; colorRGB[1] = g; colorRGB[2] =
b; };
41 virtual std::string getClassName(
void)
override {
return "EntityMeshCartesianItem"; };
43 virtual entityType getEntityType(
void)
override {
return TOPOLOGY; };
49 virtual int getSchemaVersion(
void)
override {
return 1; };
50 virtual void AddStorageData(bsoncxx::builder::basic::document &storage)
override;
51 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
53 EntityMeshCartesianData *mesh;
57 std::vector<int> faces;
59 BoundingBox boundingBox;
Mesh m
Definition SelfIntersectionCheck.cpp:26
double double double b[]
Definition GeometryOperations.h:24
BoundingBox getBoundingBox(std::list< EntityGeometry * > &geometryEntities)
Definition GeometryOperations.cpp:230
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27