5 #ifndef CNOID_UTIL_SCENE_LOADER_H
6 #define CNOID_UTIL_SCENE_LOADER_H
10 #include "exportdecl.h"
14 class SceneLoaderImpl;
20 static void registerLoader(
const char* extensions, std::function<std::shared_ptr<AbstractSceneLoader>()> factory);
23 static std::string availableFileExtensions();
27 virtual void setMessageSink(std::ostream& os)
override;
28 virtual void setDefaultDivisionNumber(
int n)
override;
29 virtual void setDefaultCreaseAngle(
double theta)
override;
30 virtual SgNode* load(
const std::string& filename)
override;
32 SgNode* load(
const std::string& filename,
bool& out_isSupportedFormat);
35 SceneLoaderImpl* impl;