Hi Nikhil,

osg::Observer is a class to derive from if you want to receive a
notification when any other (Referenced) object, previously added/assigned
to the Observer, gets deleted.

For instance the osg::observer_ptr is a kind of smart pointer that is
automatically set himself to NULL when the object he's pointing to is
deleted.

For another example of usage, see class "QuicktimeInitializer" in the
quicktime plugin.

Cheers,
Ricky


On Thu, Jun 24, 2010 at 14:51, nikhil raprolu simha <[email protected]
> wrote:

> Hi,
>
> I want to know what is an observer.And how is it generally be used(one or
> two things it is most commonly used for).And if possible links to some
> examples.
>
>
> Thanks in advance.
>
> Cheers,
> nikhil
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=29362#29362
>
>
>
>
>
> _______________________________________________
> 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