Terrain implementation that loads cells into a Quad Tree, with geometry LOD and texture LOD. The entire world is displayed at all times.
More...
#include <quadtreeworld.hpp>
|
| | QuadTreeWorld (osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, int nodeMask, int preCompileMask=~0, int borderMask=0) |
| |
| | ~QuadTreeWorld () |
| |
| void | accept (osg::NodeVisitor &nv) |
| |
| virtual void | enable (bool enabled) |
| |
| void | cacheCell (View *view, int x, int y) |
| |
| View * | createView () |
| |
| void | preload (View *view, const osg::Vec3f &eyePoint) |
| |
| void | reportStats (unsigned int frameNumber, osg::Stats *stats) |
| |
| virtual void | setDefaultViewer (osg::Object *obj) |
| | Set the default viewer (usually a Camera), used as viewpoint for any viewers that don't use their own viewpoint. More...
|
| |
| | World (osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, int nodeMask, int preCompileMask, int borderMask) |
| |
| virtual | ~World () |
| |
| void | setTargetFrameRate (float rate) |
| | See CompositeMapRenderer::setTargetFrameRate. More...
|
| |
| void | updateTextureFiltering () |
| |
| float | getHeightAt (const osg::Vec3f &worldPos) |
| |
| virtual void | clearAssociatedCaches () |
| |
| virtual void | loadCell (int x, int y) |
| |
| virtual void | unloadCell (int x, int y) |
| |
| virtual void | setBordersVisible (bool visible) |
| |
| Storage * | getStorage () |
| |
Terrain implementation that loads cells into a Quad Tree, with geometry LOD and texture LOD. The entire world is displayed at all times.
| Terrain::QuadTreeWorld::QuadTreeWorld |
( |
osg::Group * |
parent, |
|
|
osg::Group * |
compileRoot, |
|
|
Resource::ResourceSystem * |
resourceSystem, |
|
|
Storage * |
storage, |
|
|
int |
nodeMask, |
|
|
int |
preCompileMask = ~0, |
|
|
int |
borderMask = 0 |
|
) |
| |
| Terrain::QuadTreeWorld::~QuadTreeWorld |
( |
| ) |
|
| void Terrain::QuadTreeWorld::accept |
( |
osg::NodeVisitor & |
nv | ) |
|
| void Terrain::QuadTreeWorld::cacheCell |
( |
View * |
view, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
Load a terrain cell at maximum LOD and store it in the View for later use.
- Note
- Thread safe.
Reimplemented from Terrain::World.
| View * Terrain::QuadTreeWorld::createView |
( |
| ) |
|
|
virtual |
Create a View to use with preload feature. The caller is responsible for deleting the view.
- Note
- Thread safe.
Reimplemented from Terrain::World.
| void Terrain::QuadTreeWorld::enable |
( |
bool |
enabled | ) |
|
|
virtual |
| void Terrain::QuadTreeWorld::ensureQuadTreeBuilt |
( |
| ) |
|
|
private |
| void Terrain::QuadTreeWorld::preload |
( |
View * |
view, |
|
|
const osg::Vec3f & |
eyePoint |
|
) |
| |
|
virtual |
- Note
- Thread safe, as long as you do not attempt to load into the same view from multiple threads.
Reimplemented from Terrain::World.
| void Terrain::QuadTreeWorld::reportStats |
( |
unsigned int |
frameNumber, |
|
|
osg::Stats * |
stats |
|
) |
| |
|
virtual |
| void Terrain::QuadTreeWorld::setDefaultViewer |
( |
osg::Object * |
obj | ) |
|
|
virtual |
Set the default viewer (usually a Camera), used as viewpoint for any viewers that don't use their own viewpoint.
Reimplemented from Terrain::World.
| bool Terrain::QuadTreeWorld::mQuadTreeBuilt |
|
private |
| OpenThreads::Mutex Terrain::QuadTreeWorld::mQuadTreeMutex |
|
private |
| osg::ref_ptr<RootNode> Terrain::QuadTreeWorld::mRootNode |
|
private |
| osg::ref_ptr<ViewDataMap> Terrain::QuadTreeWorld::mViewDataMap |
|
private |
The documentation for this class was generated from the following files: