Choreonoid  1.8
GeneralSceneFileImporterBase.h
Go to the documentation of this file.
1 #ifndef CNOID_BASE_ITEM_GENERAL_SCENE_FILE_IMPORTER_BASE_H
2 #define CNOID_BASE_ITEM_GENERAL_SCENE_FILE_IMPORTER_BASE_H
3 
4 #include "ItemFileIO.h"
5 #include "exportdecl.h"
6 
7 namespace cnoid {
8 
9 class SgNode;
10 
11 class CNOID_EXPORT GeneralSceneFileImporterBase : public ItemFileIO
12 {
13 public:
17 
18 protected:
19  SgNode* loadScene(const std::string& filename);
20 
22  bool saveScene(SgNode* scene, const std::string& filename);
23 
24  virtual void resetOptions() override;
25  virtual void storeOptions(Mapping* archive) override;
26  virtual bool restoreOptions(const Mapping* archive) override;
27  virtual QWidget* getOptionPanelForLoading() override;
28  virtual void fetchOptionPanelForLoading() override;
29 
30 private:
31  class Impl;
32  Impl* impl;
33 };
34 
35 }
36 
37 #endif
cnoid::ItemFileIO
Definition: ItemFileIO.h:19
cnoid::Mapping
Definition: ValueTree.h:253
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::GeneralSceneFileImporterBase
Definition: GeneralSceneFileImporterBase.h:11
ItemFileIO.h
cnoid::SgNode
Definition: SceneGraph.h:157