Hi Dirk,
> > having some troubles with the PathHandler functionality of OpenSG
> > I was wondering two things:
> >
> > 1. Why does the PathHandler not support absolute paths.
> > (At least in Windows it is not possible to search for an
> > absolute path including volume letter)
> > This resulted in some workarounds in the OpenSG core code and
> > imho. does not make any sense because it can rather easily
> > incorporated in the PathHandler.
>
> The PathHandler has code to handle absolute pathes. It tries to analyze
> the path to see if it's a Windows or Unix path, and if it's a Windows
> path checks the second character for ':' to see if it's absolute. The
> only thing I could imagine is that the Win32 detection goes wrong on
> your example (well, either that or there's a bug somewhere :). What was
> the exact path you tried it on? Can you try setting the OSG_LOG_LEVEL to
> notice? In that case the PathHandler will print info about which pathes
> it tries.
I am in doubt, whether you are right here. I found some code as you
described in the "SceneFileHandler/ImageFileHandler" but not in the
PathHandler itself - where I rather think it belongs.
>
> > 2. Why do I explicitly have to add the current directory to the
> > PathHandler. O.K. this is rather come inconvenience but it is
> > not the behaviour I would expect.
>
> We thought about adding that as a default, but then you would have to
> have specific API calls to remove it in cases where you don't want it,
> thus we decided to have the users add it explicitly. It just some thing
> you need to know, as it's not a big deal to do it.
So we are again at documentation issues here. ;-)
> Integrated, thanks for the patch. Is there a specific reason for using
> the FLOG? FWARNING is generally more appropriate.
Wouldn't you consider this an error situation which the user need to be
informed about under any circumstances? Just consider your application
which you called with a file argument terminates without a remark if
the file does not exist.
Gruss
Manfred.
======================================================================
Manfred Weiler [EMAIL PROTECTED]
Visualisierung und Interaktive Systeme Telefon: 0711/7816-208
Universitaet Stuttgart, IfI FAX: 0711/7816-340
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users