Choreonoid  1.8
VRMLToSGConverter.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_UTIL_VRML_TO_SG_CONVERTER_H
6 #define CNOID_UTIL_VRML_TO_SG_CONVERTER_H
7 
8 #include "VRML.h"
9 #include "SceneGraph.h"
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class VRMLToSGConverterImpl;
15 
16 class CNOID_EXPORT VRMLToSGConverter
17 {
18 public:
21 
22  int divisionNumber() const;
23 
24  void setMessageSink(std::ostream& os);
25  void setTriangulationEnabled(bool on);
26  void setDivisionNumber(int divisionNumber);
27  void setNormalGenerationEnabled(bool on, bool doOverwrite = false);
28  void setMinCreaseAngle(double angle);
29  void setMaxCreaseAngle(double angle);
30 
31  void clearConvertedNodeMap();
32 
33  SgNodePtr convert(VRMLNodePtr vrmlNode);
34 
35 private:
36  VRMLToSGConverterImpl* impl;
37 };
38 
39 };
40 
41 #endif
cnoid::ref_ptr< SgNode >
cnoid::VRMLToSGConverter
Definition: VRMLToSGConverter.h:16
VRML.h
cnoid
Definition: AbstractSceneLoader.h:11
SceneGraph.h