27 #include <tulip/GlSimpleEntity.h>
28 #include <tulip/tulipconf.h>
47 GlComposite(
bool deleteComponentsInDestructor =
true);
59 void reset(
bool deleteElems);
72 void deleteGlEntity(
const std::string &key,
bool informTheEntity =
true);
78 void deleteGlEntity(
GlSimpleEntity *entity,
bool informTheEntity =
true);
101 this->stencil = stencil;
103 for (std::list<GlSimpleEntity *>::iterator it = _sortedElements.begin();
104 it != _sortedElements.end(); ++it) {
105 (*it)->setStencil(stencil);
113 this->deleteComponentsInDestructor = deleteComponentsInDestructor;
119 void translate(
const Coord &mouvement)
override;
124 void getXML(std::string &outString)
override;
129 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
136 void acceptVisitor(GlSceneVisitor *visitor)
override {
138 for (
auto entity : _sortedElements) {
145 for (
auto &itE : elements) {
146 if (itE.second == entity) {
147 tlp::warning() <<
"Invalid bounding box for entity: " << itE.first << std::endl;
155 entity->acceptVisitor(visitor);
163 virtual void addLayerParent(GlLayer *layer);
168 virtual void removeLayerParent(GlLayer *layer);
173 void notifyModified(GlSimpleEntity *entity);
179 void draw(
float, Camera *)
override {}
184 std::map<std::string, GlSimpleEntity *> elements;
185 std::list<GlSimpleEntity *>
187 std::vector<GlLayer *> layerParents;
188 bool deleteComponentsInDestructor;