Carsten Neumann wrote:
>       Hi Allen,
> 
> On Tue, 2007-08-21 at 10:54 -0500, Allen Bierbaum wrote:
>> [..]
>>>>   
>>> I've used the NFIO classes to write images in osb, like this:
>>>
>>> bool OSGImageCacher::doWrite(std::ostream& os)
>>> {
>>>         return OSG::NFIOBase::writeFC(m_image, os, "");
>>> }
>>>
>>> I then read them back like this:
>>>
>>>       OSG::FieldContainerPtr fc = OSG::NFIOBase::readFC(is, "");
>>>         if (!fc) {
>>>             s_log.err("OpenSG failed to read '%s'", path.string().c_str());
>>>             return false;
>>>         }
>>>         m_image = OSG::ImagePtr::dcast(fc);
>> Very nice.  Can anyone comment on wether this part of the NFIBase 
>> interface is considered stable (ie. can't user's rely upon this call 
>> >from version to version?)
> 
> not for OpenSG 2, it will have a new OSB reader/writer (actually already
> has, but its disabled by default). The reason is that the current
> default OSB IO is not thread safe. 
> I don't think it currently supports your use case, but it should not be
> impossible to implement it. I'll put it on my todo list, but dare not
> giving you an ETA.


What a coincidence, I only need it in OpenSG 2.0. :)

-Allen

>       Cheers,
>               Carsten
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to