OpenSceneGraph  3.0.1
Public Member Functions
osg::NotifyHandler Class Reference

Handler processing output of notification stream. More...

Inheritance diagram for osg::NotifyHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void notify (osg::NotifySeverity severity, const char *message)=0

Detailed Description

Handler processing output of notification stream.

It acts as a sink to notification messages. It is called when notification stream needs to be synchronized (i.e. after osg::notify() << std::endl). StandardNotifyHandler is used by default, it writes notifications to stderr (severity <= WARN) or stdout (severity > WARN). Notifications can be redirected to other sinks such as GUI widgets or windows debugger (WinDebugNotifyHandler) with custom handlers. Use setNotifyHandler to set custom handler. Note that osg notification API is not thread safe although notification handler is called from many threads. When incorporating handlers into GUI widgets you must take care of thread safety on your own.

See also:
setNotifyHandler

Member Function Documentation

virtual void osg::NotifyHandler::notify ( osg::NotifySeverity  severity,
const char *  message 
) [pure virtual]

Implemented in osg::StandardNotifyHandler.


The documentation for this class was generated from the following file:

osg logo
Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5.