6 #ifndef LIB_ALMATH_SCENEGRAPH_COLLADABUILDER_H
7 #define LIB_ALMATH_SCENEGRAPH_COLLADABUILDER_H
9 #include <almath/api.h>
10 #include <Eigen/Geometry>
13 #include <boost/property_tree/ptree_fwd.hpp>
31 ptree &addEffectColor(
ptree &parent,
const std::string &
id,
float red,
32 float green,
float blue,
float alpha);
33 ptree &addMaterial(
ptree &parent,
const std::string &
id,
34 const std::string &effect_id);
35 void addMaterialEffectColor(
ptree &root,
float r,
float g,
float b,
float a,
36 const ::std::string &
id);
37 ptree createNode(
const std::string &
id,
const Eigen::Affine3f &tf);
38 ptree &addNode(
ptree &parent,
const std::string &
id,
39 const Eigen::Affine3f &tf);
40 ptree &addVisualScene(
ptree &parent,
const std::string &
id);
41 ptree &addInstanceVisualScene(
ptree &parent,
const std::string &scene_id);
42 ptree &addSourceXYZ(
ptree &parent,
const std::vector<float> &data,
43 const std::string &
id);
45 ptree &addInput(
ptree &parent,
const std::string &semantic,
46 const std::string &source_id,
int offset);
49 ptree &addGeometryMesh(
ptree &parent,
const std::string &
id,
51 ptree &addInstanceGeometry(
ptree &parent,
const std::string &geometry_id,
52 const std::string &material_id);
boost::property_tree::ptree ptree
boost::property_tree::ptree ptree