1 // model.hxx - 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 # error This library requires C++
22 #include <simgear/props/props.hxx>
25 // Has anyone done anything *really* stupid, like making min and max macros?
35 * Load a 3D model with or without XML wrapper. Note, this version
36 * Does not know about or load the panel/cockpit information. Use the
37 * "model_panel.hxx" version if you want to load an aircraft
38 * (i.e. ownship) with a panel.
40 * If the path ends in ".xml", then it will be used as a property-
41 * list wrapper to add animations to the model.
43 * Subsystems should not normally invoke this function directly;
44 * instead, they should use the FGModelLoader declared in loader.hxx.
47 sgLoad3DModel( const string& fg_root, const string &path,
48 SGPropertyNode *prop_root, double sim_time_sec,
49 ssgEntity *(*load_panel)(SGPropertyNode *) = 0 );
53 * Make an offset matrix from rotations and position offset.
56 sgMakeOffsetsMatrix( sgMat4 * result, double h_rot, double p_rot, double r_rot,
57 double x_off, double y_off, double z_off );
63 sgMakeAnimation( ssgBranch * model,
65 vector<SGPropertyNode_ptr> &name_nodes,
66 SGPropertyNode *prop_root,
67 SGPropertyNode_ptr node,
69 set<ssgBranch *> &ignore_branches );
72 * Set the filter state on models
75 sgSetModelFilter( bool filter );