FlightGear next
TileEntry Class Referenceabstract

A class to encapsulate everything we need to know about a scenery tile. More...

#include <tileentry.hxx>

Inherited by STGTileEntry, and VPBTileEntry.

Public Types

enum  Extension { STG , VPB }
 

Public Member Functions

 TileEntry (const SGBucket &b)
 
 TileEntry (const TileEntry &t)
 
virtual ~TileEntry ()=0
 
void prep_ssg_node (float vis)
 
bool is_loaded () const
 Return true if the tile entry is loaded, otherwise return false indicating that the loading thread is still working on this.
 
const SGBucket & get_tile_bucket () const
 Return the "bucket" for this tile.
 
void addToSceneGraph (osg::Group *terrain_branch)
 Add terrain mesh and ground lighting to scene graph.
 
void removeFromSceneGraph ()
 disconnect terrain mesh and ground lighting nodes from scene graph for this tile.
 
osg::LOD * getNode () const
 return the scenegraph node for the terrain
 
double get_time_expired () const
 
void update_time_expired (double time_expired)
 
void set_priority (float priority)
 
float get_priority () const
 
void set_current_view (bool current_view)
 
bool is_current_view () const
 
bool is_expired (double current_time) const
 Return false if the tile entry is still needed, otherwise return true indicating that the tile is no longer in active use.
 
osg::ref_ptr< osg::Referenced > & getDatabaseRequest ()
 
virtual TileEntry::Extension getExtension ()=0
 

Public Attributes

SGBucket tile_bucket
 
std::string tileFileName
 

Protected Attributes

osg::ref_ptr< osg::LOD > _node
 

Detailed Description

A class to encapsulate everything we need to know about a scenery tile.

Definition at line 53 of file tileentry.hxx.

Member Enumeration Documentation

◆ Extension

Enumerator
STG 
VPB 

Definition at line 149 of file tileentry.hxx.

Constructor & Destructor Documentation

◆ TileEntry() [1/2]

TileEntry::TileEntry ( const SGBucket & b)

Definition at line 42 of file tileentry.cxx.

◆ TileEntry() [2/2]

TileEntry::TileEntry ( const TileEntry & t)

Definition at line 57 of file tileentry.cxx.

◆ ~TileEntry()

TileEntry::~TileEntry ( )
pure virtual

Definition at line 85 of file tileentry.cxx.

Member Function Documentation

◆ addToSceneGraph()

void TileEntry::addToSceneGraph ( osg::Group * terrain_branch)

Add terrain mesh and ground lighting to scene graph.

Definition at line 101 of file tileentry.cxx.

◆ get_priority()

float TileEntry::get_priority ( ) const
inline

Definition at line 132 of file tileentry.hxx.

◆ get_tile_bucket()

const SGBucket & TileEntry::get_tile_bucket ( ) const
inline

Return the "bucket" for this tile.

Definition at line 110 of file tileentry.hxx.

◆ get_time_expired()

double TileEntry::get_time_expired ( ) const
inline

Definition at line 128 of file tileentry.hxx.

◆ getDatabaseRequest()

osg::ref_ptr< osg::Referenced > & TileEntry::getDatabaseRequest ( )
inline

Definition at line 144 of file tileentry.hxx.

◆ getExtension()

virtual TileEntry::Extension TileEntry::getExtension ( )
pure virtual

Implemented in STGTileEntry, and VPBTileEntry.

◆ getNode()

osg::LOD * TileEntry::getNode ( ) const
inline

return the scenegraph node for the terrain

Definition at line 126 of file tileentry.hxx.

◆ is_current_view()

bool TileEntry::is_current_view ( ) const
inline

Definition at line 134 of file tileentry.hxx.

◆ is_expired()

bool TileEntry::is_expired ( double current_time) const
inline

Return false if the tile entry is still needed, otherwise return true indicating that the tile is no longer in active use.

Definition at line 140 of file tileentry.hxx.

◆ is_loaded()

bool TileEntry::is_loaded ( ) const
inline

Return true if the tile entry is loaded, otherwise return false indicating that the loading thread is still working on this.

Definition at line 102 of file tileentry.hxx.

◆ prep_ssg_node()

void TileEntry::prep_ssg_node ( float vis)

Definition at line 91 of file tileentry.cxx.

◆ removeFromSceneGraph()

void TileEntry::removeFromSceneGraph ( )

disconnect terrain mesh and ground lighting nodes from scene graph for this tile.

Definition at line 114 of file tileentry.cxx.

◆ set_current_view()

void TileEntry::set_current_view ( bool current_view)
inline

Definition at line 133 of file tileentry.hxx.

◆ set_priority()

void TileEntry::set_priority ( float priority)
inline

Definition at line 131 of file tileentry.hxx.

◆ update_time_expired()

void TileEntry::update_time_expired ( double time_expired)
inline

Definition at line 129 of file tileentry.hxx.

Member Data Documentation

◆ _node

osg::ref_ptr<osg::LOD> TileEntry::_node
protected

Definition at line 62 of file tileentry.hxx.

◆ tile_bucket

SGBucket TileEntry::tile_bucket

Definition at line 57 of file tileentry.hxx.

◆ tileFileName

std::string TileEntry::tileFileName

Definition at line 58 of file tileentry.hxx.


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