void FLogistics::fillContainer(shared_ptr<FContainer> c, int N, VRTransformPtr t) { for (int i=0; i<N; i++) { auto p = addProduct(); t = static_pointer_cast<VRTransform>(t->duplicate(true)); t->setVisible(true); t->setPersistency(0); p->setTransformation(t); c->add( p ); } }
shared_ptr<FContainer> FLogistics::addContainer(VRTransformPtr t) { if (t == 0) return 0; auto c = shared_ptr<FContainer>(new FContainer()); t = static_pointer_cast<VRTransform>(t->duplicate(true)); t->setVisible(true); t->setPersistency(0); c->setTransformation(t); objects[c->getID()] = c; return c; }