Choreonoid  1.5
AbstractBodyLoader.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BODY_ABSTRACT_BODY_LOADER_H
7 #define CNOID_BODY_ABSTRACT_BODY_LOADER_H
8 
9 #include <boost/shared_ptr.hpp>
10 #include <iosfwd>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class Body;
16 
18 {
19 public:
21  virtual ~AbstractBodyLoader();
22 
27  virtual const char* format() const = 0;
28 
29  virtual void setMessageSink(std::ostream& os);
30  virtual void setVerbose(bool on);
31  virtual void setShapeLoadingEnabled(bool on);
32  virtual void setDefaultDivisionNumber(int n);
33  virtual void setDefaultCreaseAngle(double theta);
34  virtual bool load(Body* body, const std::string& filename) = 0;
35 };
36 
37 typedef boost::shared_ptr<AbstractBodyLoader> AbstractBodyLoaderPtr;
38 
39 }
40 
41 #endif
Definition: Body.h:28
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
Definition: AbstractBodyLoader.h:17
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37
boost::shared_ptr< AbstractBodyLoader > AbstractBodyLoaderPtr
Definition: AbstractBodyLoader.h:37