osgUtil::DisplayRequirementsVisitor Class Reference

Inheritance diagram for osgUtil::DisplayRequirementsVisitor:

osg::NodeVisitor osg::Referenced

List of all members.

Public Member Functions

 DisplayRequirementsVisitor ()
void setDisplaySettings (osg::DisplaySettings *ds)
const osg::DisplaySettingsgetDisplaySettings () const
virtual void applyStateSet (osg::StateSet &stateset)
virtual void apply (osg::Node &node)
virtual void apply (osg::Geode &geode)

Protected Attributes

osg::ref_ptr
< osg::DisplaySettings
_ds


Detailed Description

A visitor for traversing a scene graph establishing which OpenGL visuals are required to support rendering of that scene graph. The results can then be used by applications to set up their windows with the correct visuals. Have a look at src/osgGLUT/Viewer.cpp's Viewer::open() method for an example of how to use it.

Constructor & Destructor Documentation

osgUtil::DisplayRequirementsVisitor::DisplayRequirementsVisitor (  ) 

Default to traversing all children, and requiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off.


Member Function Documentation

void osgUtil::DisplayRequirementsVisitor::setDisplaySettings ( osg::DisplaySettings ds  )  [inline]

Set the DisplaySettings.

const osg::DisplaySettings* osgUtil::DisplayRequirementsVisitor::getDisplaySettings (  )  const [inline]

Get the DisplaySettings

virtual void osgUtil::DisplayRequirementsVisitor::applyStateSet ( osg::StateSet stateset  )  [virtual]

virtual void osgUtil::DisplayRequirementsVisitor::apply ( osg::Node node  )  [virtual]

Reimplemented from osg::NodeVisitor.

virtual void osgUtil::DisplayRequirementsVisitor::apply ( osg::Geode geode  )  [virtual]

Reimplemented from osg::NodeVisitor.


Member Data Documentation


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

Generated on Wed Jul 30 23:59:08 2008 for openscenegraph by  doxygen 1.5.6