Hi Roni,

Making addView() and removedViewe() seems like a reasonable request,
but I'm not sure getView should be made anything other than inline.
The reason for the later is that there is already the data
osgViewer::CompositeViewer::_view data structure that is used
internally by CompsotiteViewer, if you create your own version of
getView() then you are also declaring that fact that there are now
multiple data structures do the same thing, with a real potential for
things getting out of sync w.r.t your sublcass and the internals of
CompsiteViewer.

Could you please explain your motivation for subclassing and
overriding all these methods?

Robert.

On Jan 15, 2008 6:21 AM, Roni Rosenzweig <[EMAIL PROTECTED]> wrote:
> Hello
>
> I'm not sure if I posted in the right forum, but here goes:
> I have a class that inherits from osgViewer::CompositeViewer, and I need to
> override the following 4 functions:
>
>         void addView(osgViewer::View* view);
>         void removeView(osgViewer::View* view);
>
>         osgViewer::View* getView(unsigned i) { return _views[i].get(); }
>         const osgViewer::View* getView(unsigned i) const { return
> _views[i].get(); }
>
>
> Is it possible to change those functions to virtual in the next dev release?
> (I could change them locally in my computer, but then I would have to change
> it again with every release)
>
> Thanks, Roni
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to