OpenSceneGraph
3.0.1
|
Handler processing output of notification stream. More...
Public Member Functions | |
virtual void | notify (osg::NotifySeverity severity, const char *message)=0 |
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.
virtual void osg::NotifyHandler::notify | ( | osg::NotifySeverity | severity, |
const char * | message | ||
) | [pure virtual] |
Implemented in osg::StandardNotifyHandler.
![]() | Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5. |