OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osgUtil
DisplayRequirementsVisitor.h
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
23
namespace
osgUtil
{
24
30
class
OSGUTIL_EXPORT
DisplayRequirementsVisitor
:
public
osg::NodeVisitor
31
{
32
public
:
33
37
DisplayRequirementsVisitor
();
38
39
META_NodeVisitor
(
osgUtil
,
DisplayRequirementsVisitor
)
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
virtual
void
apply(
osg::Geode
& geode);
52
53
protected
:
54
55
osg::ref_ptr<osg::DisplaySettings>
_ds
;
56
57
};
58
59
}
60
61
#endif
osgUtil::DisplayRequirementsVisitor::META_NodeVisitor
META_NodeVisitor(osgUtil, DisplayRequirementsVisitor) inline void setDisplaySettings(osg
Definition:
DisplayRequirementsVisitor.h:39
osg::ref_ptr< osg::DisplaySettings >
osg::Geode
Definition:
Geode.h:28
osg::StateSet
Definition:
StateSet.h:45
osg::DisplaySettings
Definition:
DisplaySettings.h:32
osgUtil::DisplayRequirementsVisitor
Definition:
DisplayRequirementsVisitor.h:30
osg::Node
Definition:
Node.h:71
osg
Definition:
AlphaFunc.h:19
OSGUTIL_EXPORT
#define OSGUTIL_EXPORT
Definition:
Export.h:40
osg::NodeVisitor
Definition:
NodeVisitor.h:67
osgUtil::DisplayRequirementsVisitor::_ds
osg::ref_ptr< osg::DisplaySettings > _ds
Definition:
DisplayRequirementsVisitor.h:55
osgUtil::DisplayRequirementsVisitor::getDisplaySettings
const osg::DisplaySettings * getDisplaySettings() const
Definition:
DisplayRequirementsVisitor.h:45
osgUtil
Shader generator framework.
Definition:
RenderInfo.h:20
Generated on Tue Oct 4 2016 19:20:48 for OSG by
1.8.8