[osg-users] std::vector instances from osg::geode derived class error
Thorsten Werner
ThorstenWerner at gmx.net
Sun Nov 15 04:13:57 PST 2009
Hi,
Thanks for your help. I'm a bit further now and everything works fine. That is what i did
std::vector<osg::ref_ptr<TGWidgetElement> > ElementUpper;
std::vector<osg::ref_ptr<TGWidgetElement> > ElementLower;
for(i=count_width; i>0; i--, elementindex_w++)
{
ElementLower.push_back(new TGWidgetElement(size,size,posXLL, posY, "WidgElementSideLower.png"));
ElementUpper.push_back(new TGWidgetElement(size,size,posXLL, posYUR, "WidgElementSideUpper.png"));
posXLL += size;
ElementUpper[elementindex_w].get()->setDataVariance(osg::Object::DYNAMIC);
ElementLower[elementindex_w].get()->setDataVariance(osg::Object::DYNAMIC);
this->addChild(ElementUpper[elementindex_w].get());
this->addChild(ElementLower[elementindex_w].get());
}
actually im working on the handler.
This problem is solved.
Thank you!
Cheers,
Thorsten
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=19671#19671
More information about the osg-users
mailing list