#include <simgear/props/props.hxx>
#include <simgear/misc/sg_path.hxx>
+namespace osg {
+ class PagedLOD;
+}
+
namespace simgear {
class SGModelData; // defined below
static void init(const std::string &root_dir, SGPropertyNode* root);
+ static void resetPropertyRoot();
+
static void setPanelFunc(panel_func pf);
// Load a 3D model (any format)
// the model file. Once the viewer steps onto that node the
// model will be loaded. When the viewer does no longer reference this
// node for a long time the node is unloaded again.
- static osg::Node* loadPagedModel(const std::string &path,
+ static osg::PagedLOD* loadPagedModel(const std::string &path,
SGPropertyNode *prop_root = NULL,
SGModelData *data=0);
virtual ~SGModelData() {}
virtual void modelLoaded(const std::string& path, SGPropertyNode *prop,
osg::Node* branch) = 0;
+ virtual SGModelData* clone() const = 0;
};
}