Choreonoid  1.8
VRMLWriter.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_VRML_WRITER_H
7 #define CNOID_UTIL_VRML_WRITER_H
8 
9 #include "VRML.h"
10 #include <iosfwd>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class VRMLWriterImpl;
16 
17 class CNOID_EXPORT VRMLWriter
18 {
19 public:
20  VRMLWriter(std::ostream& out);
21  ~VRMLWriter();
22  void setOutFileName(const std::string& ofname);
23  void setIndentSize(int s);
24  void setNumOneLineScalarElements(int n);
25  void setNumOneLineVectorElements(int n);
26  void setNumOneLineFaceElements(int n);
27  void writeHeader();
28  bool writeNode(VRMLNode* node);
29 
30 private:
31  VRMLWriterImpl* impl;
32 };
33 
34 }
35 
36 #endif
cnoid::VRMLNode
Abstract base class of all vrml nodes.
Definition: VRML.h:97
cnoid::VRMLWriter
Definition: VRMLWriter.h:17
VRML.h
cnoid
Definition: AbstractSceneLoader.h:11