Hi Bryan,

On 5/01/10 3:31 AM, Thrall, Bryan wrote:
>> Data is stored like this: osg::Property<int>* ip = new 
>> osg::Property<int>(42); 
>> obj->setProperty("my.int", ip);
>> 
>> and retrieved like this: osg::Property<int>* ip0 = 
>> dynamic_cast<osg::Property<int>
>> >(obj-
>>> getProperty("my.int"));
>> ip0->get() == 42;
> 
> The assignment and comparison syntax is a little odd; I think adding 
> operator=(),
> operator==(), etc. to osg::Property would be better, so you could do
> 
> *obj->getProperty<int>("my.int") = 42; if (*obj->getProperty<int>("my.int") 
> == 42) {
> ...}
> 
> Thanks for the hard work, I'm looking forward to seeing this in OSG :)

My fault, I actually implemented this as well. :-)

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to