2003-05-08 20:28:46 +00:00
|
|
|
|
// model.cxx - manage a 3D aircraft model.
|
|
|
|
|
// Written by David Megginson, started 2002.
|
|
|
|
|
//
|
|
|
|
|
// This file is in the Public Domain, and comes with no warranty.
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
# include <config.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <simgear/compiler.h>
|
|
|
|
|
|
|
|
|
|
#include <plib/ssg.h>
|
|
|
|
|
|
|
|
|
|
#include <simgear/props/props.hxx>
|
2003-05-09 20:40:59 +00:00
|
|
|
|
#include <simgear/scene/model/model.hxx>
|
2003-05-08 20:28:46 +00:00
|
|
|
|
|
|
|
|
|
#include "panelnode.hxx"
|
|
|
|
|
|
|
|
|
|
#include "model_panel.hxx"
|
|
|
|
|
|
|
|
|
|
SG_USING_STD(vector);
|
|
|
|
|
|
2004-04-02 14:41:35 +00:00
|
|
|
|
static
|
|
|
|
|
ssgEntity *load_panel(SGPropertyNode *n)
|
|
|
|
|
{
|
|
|
|
|
return new FGPanelNode(n);
|
|
|
|
|
}
|
2003-05-08 20:28:46 +00:00
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Global functions.
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
ssgBranch *
|
|
|
|
|
fgLoad3DModelPanel( const string &fg_root, const string &path,
|
|
|
|
|
SGPropertyNode *prop_root,
|
|
|
|
|
double sim_time_sec )
|
|
|
|
|
{
|
2004-04-02 14:41:35 +00:00
|
|
|
|
return sgLoad3DModel( fg_root, path, prop_root, sim_time_sec, load_panel );
|
2003-05-08 20:28:46 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// end of model_panel.cxx
|