Hi,

I've written a ReaderWriter plugin that read a custom file format.
If you had a quick look at my previous post, you know that the models
described in such files can be regionalized.
Some of these models are regionalized thanks to topological
informations provided by yet other complementary files (same names,
just different extensions).
At the moment, when I load such models that can be decorated (as I
have the strong impression that the eponymous design pattern can be
applied here) by regions, I rely upon osgDB::Registry to look for a
ReaderWriter able to load the region informations files.
So to summarize, I have a ReaderWriter A that directly ask support
(through osgDB::Registry) of a ReaderWriter B in order to create a
regionalized Geode object.
Is it clean to make such a link between ReaderWriters or is there a
better solution?

Thanks,

     Émeric
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to