FlightGear next
FGAIModelData Class Reference

Inherits simgear::SGModelData.

Public Member Functions

 FGAIModelData (SGPropertyNode *root=nullptr)
 
 ~FGAIModelData ()=default
 
FGAIModelDataclone () const override
 
ErrorContext getErrorContext () const override
 
void addErrorContext (const std::string &key, const std::string &value)
 
void captureErrorContext (const std::string &key)
 
void modelLoaded (const std::string &path, SGPropertyNode *prop, osg::Node *n)
 osg callback, thread-safe
 
void init (void)
 init hook to be called after model is loaded.
 
bool needInitialization (void)
 
bool isInitialized (void)
 
std::string & get_sound_path ()
 
void setInteriorLoaded (const bool state)
 
bool getInteriorLoaded (void)
 
bool hasInteriorPath (void)
 
std::string & getInteriorPath ()
 
float getRadius ()
 
bool hasHighResolutionModel (void)
 
void setHasHighResolutionModel (bool hasHighResolutionModel)
 
int getInteriorLoDIndex (void)
 
int getHighResolutionLoDIndex (void)
 
int getLowResolutionLoDIndex (void)
 

Detailed Description

Definition at line 47 of file AIBase.cxx.

Constructor & Destructor Documentation

◆ FGAIModelData()

FGAIModelData::FGAIModelData ( SGPropertyNode * root = nullptr)
inlineexplicit

Definition at line 49 of file AIBase.cxx.

◆ ~FGAIModelData()

FGAIModelData::~FGAIModelData ( )
default

Member Function Documentation

◆ addErrorContext()

void FGAIModelData::addErrorContext ( const std::string & key,
const std::string & value )
inline

Definition at line 64 of file AIBase.cxx.

◆ captureErrorContext()

void FGAIModelData::captureErrorContext ( const std::string & key)
inline

Definition at line 69 of file AIBase.cxx.

◆ clone()

FGAIModelData * FGAIModelData::clone ( ) const
inlineoverride

Definition at line 57 of file AIBase.cxx.

◆ get_sound_path()

std::string & FGAIModelData::get_sound_path ( )
inline

Definition at line 110 of file AIBase.cxx.

◆ getErrorContext()

ErrorContext FGAIModelData::getErrorContext ( ) const
inlineoverride

Definition at line 59 of file AIBase.cxx.

◆ getHighResolutionLoDIndex()

int FGAIModelData::getHighResolutionLoDIndex ( void )
inline

Definition at line 125 of file AIBase.cxx.

◆ getInteriorLoaded()

bool FGAIModelData::getInteriorLoaded ( void )
inline

Definition at line 113 of file AIBase.cxx.

◆ getInteriorLoDIndex()

int FGAIModelData::getInteriorLoDIndex ( void )
inline

Definition at line 124 of file AIBase.cxx.

◆ getInteriorPath()

std::string & FGAIModelData::getInteriorPath ( )
inline

Definition at line 115 of file AIBase.cxx.

◆ getLowResolutionLoDIndex()

int FGAIModelData::getLowResolutionLoDIndex ( void )
inline

Definition at line 126 of file AIBase.cxx.

◆ getRadius()

float FGAIModelData::getRadius ( )
inline

Definition at line 116 of file AIBase.cxx.

◆ hasHighResolutionModel()

bool FGAIModelData::hasHighResolutionModel ( void )
inline

Definition at line 118 of file AIBase.cxx.

◆ hasInteriorPath()

bool FGAIModelData::hasInteriorPath ( void )
inline

Definition at line 114 of file AIBase.cxx.

◆ init()

void FGAIModelData::init ( void )
inline

init hook to be called after model is loaded.

Not thread-safe. Call from main thread only.

Definition at line 106 of file AIBase.cxx.

◆ isInitialized()

bool FGAIModelData::isInitialized ( void )
inline

Definition at line 109 of file AIBase.cxx.

◆ modelLoaded()

void FGAIModelData::modelLoaded ( const std::string & path,
SGPropertyNode * prop,
osg::Node * n )
inline

osg callback, thread-safe

Definition at line 78 of file AIBase.cxx.

◆ needInitialization()

bool FGAIModelData::needInitialization ( void )
inline

Definition at line 108 of file AIBase.cxx.

◆ setHasHighResolutionModel()

void FGAIModelData::setHasHighResolutionModel ( bool hasHighResolutionModel)
inline

Definition at line 119 of file AIBase.cxx.

◆ setInteriorLoaded()

void FGAIModelData::setInteriorLoaded ( const bool state)
inline

Definition at line 112 of file AIBase.cxx.


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