FlightGear next
FGNasalModelData Class Reference

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 FGNasalModelDatagetByModuleId (unsigned int id)
 Get FGNasalModelData for model with the given module id.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FGNasalModelData()

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::~FGNasalModelData ( )

Definition at line 93 of file NasalModelData.cxx.

Member Function Documentation

◆ getByModuleId()

FGNasalModelData * FGNasalModelData::getByModuleId ( unsigned int id)
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.

Parameters
idModule id
Returns
model data or NULL if does not exists

Definition at line 165 of file NasalModelData.cxx.

◆ getNode()

osg::Node * FGNasalModelData::getNode ( )

Get osg scenegraph node of model.

Definition at line 159 of file NasalModelData.cxx.

◆ load()

void FGNasalModelData::load ( )

Load hook.

Always call from inside the main loop.

Definition at line 107 of file NasalModelData.cxx.

◆ unload()

void FGNasalModelData::unload ( )

Unload hook.

Always call from inside the main loop.

Definition at line 135 of file NasalModelData.cxx.


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