OpenSceneGraph 3.6.5
DisplacementMappingTechnique
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2014 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 OSGTERRAIN_DISPLACEMENTMAPPINGTECHNIQUE
15#define OSGTERRAIN_DISPLACEMENTMAPPINGTECHNIQUE
16
17#include <OpenThreads/Mutex>
18#include <osg/MatrixTransform>
19#include <osg/Program>
21
22namespace osgTerrain
23{
24
26{
27 public:
28
30
32
34
35 virtual void init(int dirtyMask, bool assumeMultiThreaded);
36 virtual void update(osgUtil::UpdateVisitor* uv);
37 virtual void cull(osgUtil::CullVisitor* cv);
38 virtual void traverse(osg::NodeVisitor& nv);
39 virtual void cleanSceneGraph();
40 virtual void releaseGLObjects(osg::State* state) const;
41
42 protected:
43
45
46 mutable OpenThreads::Mutex _traversalMutex;
47
48 mutable OpenThreads::Mutex _transformMutex;
50
51 OpenThreads::Atomic _currentTraversalCount;
52
53};
54
55}
56
57#endif
The osgTerrain library is a NodeKit that provides geospecifc terrain rendering support.
Definition Node:29
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
virtual void init(int dirtyMask, bool assumeMultiThreaded)
OpenThreads::Mutex _transformMutex
Definition DisplacementMappingTechnique:48
virtual void update(osgUtil::UpdateVisitor *uv)
OpenThreads::Atomic _currentTraversalCount
Definition DisplacementMappingTechnique:51
virtual void cleanSceneGraph()
Clean scene graph from any terrain technique specific nodes.
META_Object(osgTerrain, DisplacementMappingTechnique)
osg::ref_ptr< osg::MatrixTransform > _transform
Definition DisplacementMappingTechnique:49
OpenThreads::Mutex _traversalMutex
Definition DisplacementMappingTechnique:46
DisplacementMappingTechnique(const DisplacementMappingTechnique &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual void traverse(osg::NodeVisitor &nv)
Traverse the terrain subgraph.
virtual void releaseGLObjects(osg::State *state) const
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics...
virtual void cull(osgUtil::CullVisitor *cv)
Definition TerrainTechnique:53
Basic NodeVisitor implementation for rendering a scene.
Definition CullVisitor:49
Basic UpdateVisitor implementation for animating a scene.
Definition UpdateVisitor:38
#define OSGTERRAIN_EXPORT
Definition Export:39

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