FlightGear next
FGModelMgr::Instance Struct Reference

A dynamically-placed model using properties. More...

#include <modelmgr.hxx>

Public Member Functions

virtual ~Instance ()
 
bool checkLoaded () const
 

Public Attributes

SGModelPlacement * model = nullptr
 
SGPropertyNode_ptr node
 
SGPropertyNode_ptr lon_deg_node
 
SGPropertyNode_ptr lat_deg_node
 
SGPropertyNode_ptr elev_ft_node
 
SGPropertyNode_ptr roll_deg_node
 
SGPropertyNode_ptr pitch_deg_node
 
SGPropertyNode_ptr heading_deg_node
 
SGPropertyNode_ptr loaded_node
 
bool shadow = false
 

Detailed Description

A dynamically-placed model using properties.

The model manager uses the property nodes to update the model's position and orientation; any of the property node pointers may be set to zero to avoid update. Normally, a caller should load the model by instantiating SGModelPlacement with the path to the model or its XML wrapper, then assign any relevant property node pointers.

See also
SGModelPlacement
FGModelMgr::add_instance

Definition at line 42 of file modelmgr.hxx.

Constructor & Destructor Documentation

◆ ~Instance()

FGModelMgr::Instance::~Instance ( )
virtual

Definition at line 353 of file modelmgr.cxx.

Member Function Documentation

◆ checkLoaded()

bool FGModelMgr::Instance::checkLoaded ( ) const

Definition at line 358 of file modelmgr.cxx.

Member Data Documentation

◆ elev_ft_node

SGPropertyNode_ptr FGModelMgr::Instance::elev_ft_node

Definition at line 49 of file modelmgr.hxx.

◆ heading_deg_node

SGPropertyNode_ptr FGModelMgr::Instance::heading_deg_node

Definition at line 52 of file modelmgr.hxx.

◆ lat_deg_node

SGPropertyNode_ptr FGModelMgr::Instance::lat_deg_node

Definition at line 48 of file modelmgr.hxx.

◆ loaded_node

SGPropertyNode_ptr FGModelMgr::Instance::loaded_node

Definition at line 53 of file modelmgr.hxx.

◆ lon_deg_node

SGPropertyNode_ptr FGModelMgr::Instance::lon_deg_node

Definition at line 47 of file modelmgr.hxx.

◆ model

SGModelPlacement* FGModelMgr::Instance::model = nullptr

Definition at line 45 of file modelmgr.hxx.

◆ node

SGPropertyNode_ptr FGModelMgr::Instance::node

Definition at line 46 of file modelmgr.hxx.

◆ pitch_deg_node

SGPropertyNode_ptr FGModelMgr::Instance::pitch_deg_node

Definition at line 51 of file modelmgr.hxx.

◆ roll_deg_node

SGPropertyNode_ptr FGModelMgr::Instance::roll_deg_node

Definition at line 50 of file modelmgr.hxx.

◆ shadow

bool FGModelMgr::Instance::shadow = false

Definition at line 54 of file modelmgr.hxx.


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