Choreonoid  1.8
ObjSceneWriter.h
Go to the documentation of this file.
1 #ifndef CNOID_UTIL_OBJ_SCENE_WRITER_H
2 #define CNOID_UTIL_OBJ_SCENE_WRITER_H
3 
4 #include "AbstractSceneWriter.h"
5 #include "exportdecl.h"
6 
7 namespace cnoid {
8 
9 class CNOID_EXPORT ObjSceneWriter : public AbstractSceneWriter
10 {
11 public:
13  ~ObjSceneWriter();
14 
15  ObjSceneWriter(const ObjSceneWriter&) = delete;
16  ObjSceneWriter(ObjSceneWriter&&) = delete;
17  ObjSceneWriter& operator=(const ObjSceneWriter&) = delete;
18  ObjSceneWriter& operator=(ObjSceneWriter&&) = delete;
19 
20  virtual void setMessageSink(std::ostream& os) override;
21  void setMaterialEnabled(bool on);
22  bool isMaterialEnabled() const;
23 
24  virtual bool writeScene(const std::string& filename, SgNode* node) override;
25 
26 private:
27  class Impl;
28  Impl* impl;
29 };
30 
31 }
32 
33 #endif
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::ObjSceneWriter
Definition: ObjSceneWriter.h:9
cnoid::SgNode
Definition: SceneGraph.h:157
AbstractSceneWriter.h
cnoid::AbstractSceneWriter
Definition: AbstractSceneWriter.h:13