libalmath  2.5.11.14a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
colladascenebuilder.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015 Aldebaran. All rights reserved.
3  *
4  */
5 
6 #ifndef LIB_ALMATH_SCENEGRAPH_COLLADASCENEBUILDER_H
7 #define LIB_ALMATH_SCENEGRAPH_COLLADASCENEBUILDER_H
8 
10 #include <iosfwd>
11 
12 namespace AL {
13 
14 // pimpl
15 class ColladaSceneBuilderP;
16 
17 // Build the scene in memory in the collada format then write it in
18 // a collada file.
19 //
20 // Note that this class will create a full collada file.
21 // Maybe a version which opens an existing collada file and
22 // adds nodes to it would be more useful.
23 // However, one should then care about id collisions.
25  public:
26  ColladaSceneBuilder(const Config &config = Config());
28 
29  void xAddMesh(const Mesh &mesh, const Eigen::Affine3f &tf);
30  friend std::ostream &operator<<(std::ostream &os,
31  const ColladaSceneBuilder &builder);
34 
35  private:
36  ColladaSceneBuilderP *_p;
37 };
38 }
39 
40 #endif
ColladaSceneBuilder & operator=(const ColladaSceneBuilder &other)
friend std::ostream & operator<<(std::ostream &os, const ColladaSceneBuilder &builder)
Definition: mesh.h:88
ColladaSceneBuilder(const Config &config=Config())
void xAddMesh(const Mesh &mesh, const Eigen::Affine3f &tf)