Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgUtil::DisplayRequirementsVisitor Class Reference

A visitor for traversing a scene graph establishing the OpenGL visuals are required to support rendering of that scene graph. More...

Inheritance diagram for osgUtil::DisplayRequirementsVisitor:

Inheritance graph
[legend]
List of all members.

Public Methods

 DisplayRequirementsVisitor ()
 Default to traversing all children, and reqiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off.

void setDisplaySettings (osg::DisplaySettings *ds)
 Set the DisplaySettings.

const osg::DisplaySettingsgetDisplaySettings () const
 Get the DisplaySettings.

virtual void applyStateSet (osg::StateSet &stateset)
virtual void apply (osg::Node &node)
virtual void apply (osg::Geode &geode)
virtual void apply (osg::Impostor &impostor)

Protected Attributes

osg::ref_ptr< osg::DisplaySettings_ds

Detailed Description

A visitor for traversing a scene graph establishing the OpenGL visuals are required to support rendering of that scene graph.

The results can then be used by applications to set up there windows with the correct visuals. Have a look at src/osgGLUT/Viewer.cpp's Viewer::open() method for an example how to use it.


Constructor & Destructor Documentation

osgUtil::DisplayRequirementsVisitor::DisplayRequirementsVisitor  
 

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


Member Function Documentation

virtual void osgUtil::DisplayRequirementsVisitor::apply osg::Impostor   impostor [virtual]
 

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

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

Reimplemented from osg::NodeVisitor.

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

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

Get the DisplaySettings.

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

Set the DisplaySettings.


Member Data Documentation

osg::ref_ptr<osg::DisplaySettings> osgUtil::DisplayRequirementsVisitor::_ds [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:57 2002 for the Open Scene Graph by doxygen 1.2.16.