1 #ifndef OPENMW_COMPONENTS_TERRAIN_VIEWDATA_H
2 #define OPENMW_COMPONENTS_TERRAIN_VIEWDATA_H
24 void reset(
unsigned int frame);
88 typedef std::map<osg::Object*, ViewData*>
Map;
~ViewData()
Definition: viewdata.cpp:15
bool hasEyePoint() const
Definition: viewdata.cpp:47
osg::Object * getViewer() const
Definition: viewdata.hpp:47
void setEyePoint(const osg::Vec3f &eye)
Definition: viewdata.cpp:52
bool hasChanged() const
Definition: viewdata.cpp:42
osg::Vec3f mEyePoint
Definition: viewdata.hpp:66
QuadTreeNode * mNode
Definition: viewdata.hpp:36
bool mVisible
Definition: viewdata.hpp:37
std::vector< Entry > mEntries
Definition: viewdata.hpp:61
bool set(QuadTreeNode *node, bool visible)
Definition: viewdata.cpp:101
unsigned int mFrameLastUsed
Definition: viewdata.hpp:63
bool mHasEyePoint
Definition: viewdata.hpp:67
osg::ref_ptr< osg::Object > mViewer
Definition: viewdata.hpp:65
void add(QuadTreeNode *node, bool visible)
Definition: viewdata.cpp:20
bool mChanged
Definition: viewdata.hpp:64
Entry()
Definition: viewdata.cpp:93
const osg::Vec3f & getEyePoint() const
Definition: viewdata.cpp:58
Definition: viewdata.hpp:16
osg::ref_ptr< osg::Object > mDefaultViewer
Definition: viewdata.hpp:93
osg::ref_ptr< osg::Node > mRenderingNode
Definition: viewdata.hpp:40
Definition: viewdata.hpp:70
void clearUnusedViews(unsigned int frame)
Definition: viewdata.cpp:144
bool contains(QuadTreeNode *node)
Definition: viewdata.cpp:85
unsigned int mLodFlags
Definition: viewdata.hpp:39
void reset(unsigned int frame)
Reset internal structure so that the next addition to the view will override the previous frame's con...
Definition: viewdata.cpp:63
unsigned int mNumEntries
Definition: viewdata.hpp:62
void setDefaultViewer(osg::Object *viewer)
Definition: viewdata.cpp:168
ViewData * getDefaultView()
Definition: viewdata.cpp:173
Entry & getEntry(unsigned int i)
Definition: viewdata.cpp:37
A View is a collection of rendering objects that are visible from a given camera/intersection. The base View class is part of the interface for usage in conjunction with preload feature.
Definition: world.hpp:39
void clear()
Definition: viewdata.cpp:161
Definition: viewdata.hpp:30
ViewData()
Definition: viewdata.cpp:6
Definition: quadtreenode.hpp:32
ViewData * getViewData(osg::Object *viewer)
Definition: viewdata.cpp:115
std::list< ViewData > mViewVector
Definition: viewdata.hpp:86
void clear()
Definition: viewdata.cpp:76
std::deque< ViewData * > mUnusedViews
Definition: viewdata.hpp:91
ViewData * createOrReuseView()
Definition: viewdata.cpp:129
unsigned int getNumEntries() const
Definition: viewdata.cpp:32
void setViewer(osg::Object *viewer)
Definition: viewdata.hpp:48
std::map< osg::Object *, ViewData * > Map
Definition: viewdata.hpp:88
Map mViews
Definition: viewdata.hpp:89
unsigned int getFrameLastUsed() const
Definition: viewdata.hpp:50