Well that's simple Paul: the "DataFilePaths" object is a "std:deque"... so
you can use push_front() and push_back():


osgDB:getDataFilePathList().push_front("C:/My/path/to/check/first")

or

osgDB:getDataFilePathList().push_back("C:/My/path/to/check/last")

regards,

Emmanuel.

2007/3/27, Paul Martz <[EMAIL PROTECTED]>:

 On a related note, setDataFilePathList() clears out the current path
list. So, if an app calls this function, it essentially overrides any
setting of OSG_FILE_PATH, correct?

I poked around in osgDB and couldn't find an obvious way for an
application to simply append one or two paths to the file path list (as
opposed to completely overriding the path list). How would an application do
this?
   -Paul


 ------------------------------
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Emmanuel Roche
*Sent:* Tuesday, March 27, 2007 3:53 AM
*To:* OSG Users
*Subject:* [osg-users] osgDB DataFilePathList for non standard file
extensions


 Hello everyone,


I'm using a plugin to read OSG nodes in .gz files I developed on my own.
It works perfectly well, but now I would like to use this plugin with the
DataFilePathList handling system in osgDB and I can't get it working this
way... I tried something like:


osgDB::FilePathList pathList = osgDB::getDataFilePathList();

pathList.push_back("X:\\Work\\4DV\\SESSEngine\\Projects\\Sat\\Models\\");

osgDB::setDataFilePathList(pathList);

then :

node = osgDB::readNodeFile("ISS.gz") // NOT WORKING

node = osgDB::readNodeFile("ISS.ive") // WORKING

... both files are in the concerned directory of course...

... Did I missed something to register the new file extension ???


regards,

Emmanuel.




_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to