Esempio n. 1
0
void FLogistics::fillContainer(FContainer* c, int N, VRTransform* t) {
    for (int i=0; i<N; i++) {
        FProduct* p = addProduct();
        t = (VRTransform*)t->duplicate(true);
        t->addAttachment("dynamicaly_generated", 0);
        p->setTransformation(t);
        c->add( p );
    }
}
Esempio n. 2
0
void FLogistics::fillContainer(FContainer* c, int N, VRTransformPtr t) {
    for (int i=0; i<N; i++) {
        FProduct* p = addProduct();
        t = static_pointer_cast<VRTransform>(t->duplicate(true));
        t->setVisible(true);
        t->setPersistency(0);
        p->setTransformation(t);
        c->add( p );
    }
}
Esempio n. 3
0
FProduct* FLogistics::addProduct(OSG::VRTransformPtr t) {
    FProduct* p = new FProduct();
    objects[p->getID()] = p;
    if (t) p->setTransformation(t);
    return p;
}