1 // model.cxx - manage a 3D aircraft model.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain, and comes with no warranty.
10 #include <simgear/compiler.h>
14 #include <simgear/props/props.hxx>
15 #include <simgear/scene/model/model.hxx>
16 #include <simgear/scene/util/SGNodeMasks.hxx>
18 #include "panelnode.hxx"
20 #include "model_panel.hxx"
25 osg::Node* load_panel(SGPropertyNode *n)
27 osg::Geode* geode = new osg::Geode;
28 geode->addDrawable(new FGPanelNode(n));
33 ////////////////////////////////////////////////////////////////////////
35 ////////////////////////////////////////////////////////////////////////
38 fgLoad3DModelPanel( const string &fg_root, const string &path,
39 SGPropertyNode *prop_root,
40 double sim_time_sec, const SGPath& livery )
42 osg::Node* node = sgLoad3DModel( fg_root, path, prop_root, sim_time_sec,
43 load_panel, 0, livery );
44 node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
49 // end of model_panel.cxx