<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Mike, <br>
<br>
you can add an <br>
osgDB::Registry::ReadFileCallback<br>
and implement the readImage member function.<br>
For registering it to the registry use:<br>
osgDB::Registry::instance()->setReadFileCallback(myCloneReadFileCallback);<br>
<br>
This will be triggered by the database-pager when loading the
image. <br>
It won't help you with the destination-problem however. <br>
<br>
Cheers<br>
Sebastian <br>
<br>
</div>
<blockquote
cite="mid:CAKbUNYyxwGdZ7XU9jMLiPAT8d-R505Tx2Q+eZBOUCn9xkAmSag@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hi all!<br>
<br>
</div>
I am finishing up some work which involves modifying nodes as
they are loaded via the database pager - I want to edit the
data after it is loaded, but before it is added to the
scenegraph. I also need to know the destination (future
parent) node in the scenegraph where the edited node will be
located. <br>
<br>
</div>
<div>It looks to me like a suitable location for this work is
pretty much in the middle of DatabaseThread::run - after the
node is loaded via readNode (), but before it is added to the
file cache. All the data I need appears to be held in the
DatabaseRequest object. <br>
<br>
</div>
<div>Is there another (simpler?) way of inserting my code into
the loading process?<br>
<br>
</div>
<div>If the middle of the run method is the best location, would
a patch to allow a optional callback function to be called be
considered? <br>
<br>
</div>
<div>best wishes<br>
<br>
</div>
<div>Mike <br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
</body>
</html>