2#pragma warning(disable : 4251)
9class __declspec(dllexport) EntityContainer :
public EntityBase
12 EntityContainer(
ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory,
const std::string &owner);
13 virtual ~EntityContainer();
20 void addChild(EntityBase *child);
26 virtual void removeChild(EntityBase *child)
override;
28 const std::list<EntityBase *> &getChildrenList(
void);
30 virtual bool getEntityBox(
double &xmin,
double &xmax,
double &ymin,
double &ymax,
double &zmin,
double &zmax)
override;
32 virtual EntityBase *getEntityFromName(
const std::string &n)
override;
34 virtual bool considerForPropertyFilter(
void)
override {
return false; };
35 virtual bool considerChildrenForPropertyFilter(
void)
override {
return true; };
37 virtual void StoreToDataBase(
void)
override;
39 virtual void addVisualizationNodes(
void)
override;
41 virtual std::string getClassName(
void)
override {
return "EntityContainer"; } ;
43 virtual void addPrefetchingRequirementsForTopology(std::list<ot::UID> &prefetchIds)
override;
45 virtual entityType getEntityType(
void)
override;
47 void setCreateVisualizationItem(
bool flag);
48 bool getCreateVisualizationItem(
void) {
return createVisualizationItem; }
50 virtual void detachFromHierarchy(
void)
override;
53 virtual int getSchemaVersion(
void)
override {
return 1; } ;
54 virtual void AddStorageData(bsoncxx::builder::basic::document &storage)
override;
55 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap)
override;
59 std::list<EntityBase *> children;
60 bool createVisualizationItem;
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27