OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | List of all members
Terrain::ViewData Class Reference

#include <viewdata.hpp>

Inheritance diagram for Terrain::ViewData:
Collaboration diagram for Terrain::ViewData:

Classes

struct  Entry
 

Public Member Functions

 ViewData ()
 
 ~ViewData ()
 
void add (QuadTreeNode *node, bool visible)
 
void reset (unsigned int frame)
 Reset internal structure so that the next addition to the view will override the previous frame's contents. More...
 
void clear ()
 
bool contains (QuadTreeNode *node)
 
unsigned int getNumEntries () const
 
EntrygetEntry (unsigned int i)
 
osg::Object * getViewer () const
 
void setViewer (osg::Object *viewer)
 
unsigned int getFrameLastUsed () const
 
bool hasChanged () const
 
bool hasEyePoint () const
 
void setEyePoint (const osg::Vec3f &eye)
 
const osg::Vec3f & getEyePoint () const
 
- Public Member Functions inherited from Terrain::View
virtual ~View ()
 

Private Attributes

std::vector< EntrymEntries
 
unsigned int mNumEntries
 
unsigned int mFrameLastUsed
 
bool mChanged
 
osg::ref_ptr< osg::Object > mViewer
 
osg::Vec3f mEyePoint
 
bool mHasEyePoint
 

Constructor & Destructor Documentation

Terrain::ViewData::ViewData ( )

Here is the caller graph for this function:

Terrain::ViewData::~ViewData ( )

Member Function Documentation

void Terrain::ViewData::add ( QuadTreeNode node,
bool  visible 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Terrain::ViewData::clear ( )

Here is the caller graph for this function:

bool Terrain::ViewData::contains ( QuadTreeNode node)

Here is the caller graph for this function:

ViewData::Entry & Terrain::ViewData::getEntry ( unsigned int  i)

Here is the caller graph for this function:

const osg::Vec3f & Terrain::ViewData::getEyePoint ( ) const

Here is the caller graph for this function:

unsigned int Terrain::ViewData::getFrameLastUsed ( ) const
inline

Here is the caller graph for this function:

unsigned int Terrain::ViewData::getNumEntries ( ) const

Here is the caller graph for this function:

osg::Object* Terrain::ViewData::getViewer ( ) const
inline
bool Terrain::ViewData::hasChanged ( ) const
Returns
Have any nodes changed since the last frame

Here is the caller graph for this function:

bool Terrain::ViewData::hasEyePoint ( ) const

Here is the caller graph for this function:

void Terrain::ViewData::reset ( unsigned int  frame)
virtual

Reset internal structure so that the next addition to the view will override the previous frame's contents.

Implements Terrain::View.

Here is the caller graph for this function:

void Terrain::ViewData::setEyePoint ( const osg::Vec3f &  eye)

Here is the caller graph for this function:

void Terrain::ViewData::setViewer ( osg::Object *  viewer)
inline

Here is the caller graph for this function:

Member Data Documentation

bool Terrain::ViewData::mChanged
private
std::vector<Entry> Terrain::ViewData::mEntries
private
osg::Vec3f Terrain::ViewData::mEyePoint
private
unsigned int Terrain::ViewData::mFrameLastUsed
private
bool Terrain::ViewData::mHasEyePoint
private
unsigned int Terrain::ViewData::mNumEntries
private
osg::ref_ptr<osg::Object> Terrain::ViewData::mViewer
private

The documentation for this class was generated from the following files: