DisplayRequirementsVisitor
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGUTIL_DISPLAYREQUIREMENTSVISITOR
#define OSGUTIL_DISPLAYREQUIREMENTSVISITOR 1
#include <osg/NodeVisitor>
#include <osg/Geode>
#include <osg/DisplaySettings>
#include <osgUtil/Export>
namespace osgUtil {
class OSGUTIL_EXPORT DisplayRequirementsVisitor : public osg::NodeVisitor
{
public:
DisplayRequirementsVisitor();
META_NodeVisitor(osgUtil, DisplayRequirementsVisitor)
inline void setDisplaySettings(osg::DisplaySettings* ds) { _ds = ds; }
inline const osg::DisplaySettings* getDisplaySettings() const { return _ds.get(); }
virtual void applyStateSet(osg::StateSet& stateset);
virtual void apply(osg::Node& node);
protected:
osg::ref_ptr<osg::DisplaySettings> _ds;
};
}
#endif
DisplaySettings
Geode
NodeVisitor
osgUtil::DisplayRequirementsVisitor::_ds
osg::ref_ptr< osg::DisplaySettings > _ds
Definition DisplayRequirementsVisitor:53
osgUtil::DisplayRequirementsVisitor::getDisplaySettings
const osg::DisplaySettings * getDisplaySettings() const
Definition DisplayRequirementsVisitor:45
osgUtil::DisplayRequirementsVisitor::applyStateSet
virtual void applyStateSet(osg::StateSet &stateset)
osgUtil::DisplayRequirementsVisitor::DisplayRequirementsVisitor
DisplayRequirementsVisitor()
osgUtil::DisplayRequirementsVisitor::META_NodeVisitor
META_NodeVisitor(osgUtil, DisplayRequirementsVisitor) inline void setDisplaySettings(osg
Definition DisplayRequirementsVisitor:39
osgUtil::DisplayRequirementsVisitor::apply
virtual void apply(osg::Node &node)
osg::DisplaySettings
Definition DisplaySettings:34
osg::NodeVisitor
Definition NodeVisitor:82
osg::Node
Definition Node:72
osg::StateSet
Definition StateSet:46
osg::ref_ptr
Definition ref_ptr:32
osgUtil
Definition NodeVisitor:25
Export
OSGUTIL_EXPORT
#define OSGUTIL_EXPORT
Definition osgUtil/Export:40