FlightGear next
|
Nasal model data container. More...
#include <NasalModelData.hxx>
Inherits SGReferenced.
Public Member Functions | |
FGNasalModelData (SGPropertyNode *root, const std::string &path, SGPropertyNode *prop, SGPropertyNode *load, SGPropertyNode *unload, osg::Node *branch) | |
Constructor to be run in an arbitrary thread. | |
~FGNasalModelData () | |
void | load () |
Load hook. | |
void | unload () |
Unload hook. | |
osg::Node * | getNode () |
Get osg scenegraph node of model. | |
Static Public Member Functions | |
static FGNasalModelData * | getByModuleId (unsigned int id) |
Get FGNasalModelData for model with the given module id. | |
Nasal model data container.
load and unload methods must be run in main thread (not thread-safe).
Definition at line 29 of file NasalModelData.hxx.
FGNasalModelData::FGNasalModelData | ( | SGPropertyNode * | root, |
const std::string & | path, | ||
SGPropertyNode * | prop, | ||
SGPropertyNode * | load, | ||
SGPropertyNode * | unload, | ||
osg::Node * | branch ) |
Constructor to be run in an arbitrary thread.
Definition at line 67 of file NasalModelData.cxx.
FGNasalModelData::~FGNasalModelData | ( | ) |
Definition at line 93 of file NasalModelData.cxx.
|
static |
Get FGNasalModelData for model with the given module id.
Every scenery model containing a nasal load or unload tag gets assigned a module id automatically.
id | Module id |
Definition at line 165 of file NasalModelData.cxx.
osg::Node * FGNasalModelData::getNode | ( | ) |
Get osg scenegraph node of model.
Definition at line 159 of file NasalModelData.cxx.
void FGNasalModelData::load | ( | ) |
Load hook.
Always call from inside the main loop.
Definition at line 107 of file NasalModelData.cxx.
void FGNasalModelData::unload | ( | ) |
Unload hook.
Always call from inside the main loop.
Definition at line 135 of file NasalModelData.cxx.