OpenSceneGraph 3.6.5
DisplayRequirementsVisitor
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGUTIL_DISPLAYREQUIREMENTSVISITOR
15#define OSGUTIL_DISPLAYREQUIREMENTSVISITOR 1
16
17#include <osg/NodeVisitor>
18#include <osg/Geode>
19#include <osg/DisplaySettings>
20
21#include <osgUtil/Export>
22
23namespace osgUtil {
24
31{
32 public:
33
38
40
41
42 inline void setDisplaySettings(osg::DisplaySettings* ds) { _ds = ds; }
43
45 inline const osg::DisplaySettings* getDisplaySettings() const { return _ds.get(); }
46
47 virtual void applyStateSet(osg::StateSet& stateset);
48
49 virtual void apply(osg::Node& node);
50
51 protected:
52
54
55};
56
57}
58
59#endif
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
DisplaySettings class for encapsulating what visuals are required and have been set up,...
Definition DisplaySettings:34
Base class for all internal nodes in the scene graph.
Definition Node:72
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Stores a set of modes and attributes which represent a set of OpenGL state.
Definition StateSet:46
osg::ref_ptr< osg::DisplaySettings > _ds
Definition DisplayRequirementsVisitor:53
const osg::DisplaySettings * getDisplaySettings() const
Get the DisplaySettings.
Definition DisplayRequirementsVisitor:45
virtual void applyStateSet(osg::StateSet &stateset)
DisplayRequirementsVisitor()
Default to traversing all children, and requiresDoubleBuffer, requiresRGB and requiresDepthBuffer to ...
META_NodeVisitor(osgUtil, DisplayRequirementsVisitor) inline void setDisplaySettings(osg
Set the DisplaySettings.
Definition DisplayRequirementsVisitor:39
virtual void apply(osg::Node &node)
#define OSGUTIL_EXPORT
Definition Export:40

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.