Commit db39da48 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[Python] Add doc to MeshLoader.

parent ffa3c36b
......@@ -46,6 +46,12 @@
#include <hpp/fcl/collision.h>
#ifdef HAS_DOXYGEN_AUTODOC
#include "doxygen_autodoc/hpp/fcl/math/transform.h"
#endif
#include "../doc/python/doxygen.hh"
using namespace hpp::fcl;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(load_overloads,MeshLoader::load,1,2)
......@@ -56,17 +62,23 @@ void exposeMeshLoader ()
if(!eigenpy::register_symbolic_link_to_registered_type<MeshLoader>())
{
class_ <MeshLoader> ("MeshLoader", no_init)
.def(init< optional< NODE_TYPE> >(arg("node_type"),"Default constructor"))
.def ("load",(BVHModelPtr_t(MeshLoader::*)(const std::string&,const Vec3f&))&MeshLoader::load,
class_ <MeshLoader> ("MeshLoader",
doxygen::class_doc<MeshLoader>(),
init< optional< NODE_TYPE> >(arg("node_type"),
doxygen::constructor_doc<MeshLoader, const NODE_TYPE&>()))
.def ("load",&MeshLoader::load,
load_overloads(args("filename","scale"),
"Load a mesh given by its filename"))
doxygen::member_func_doc(&MeshLoader::load)))
;
}
if(!eigenpy::register_symbolic_link_to_registered_type<CachedMeshLoader>())
{
class_ <CachedMeshLoader, bases<MeshLoader> > ("CachedMeshLoader", init< optional< NODE_TYPE> >())
class_ <CachedMeshLoader, bases<MeshLoader> > (
"CachedMeshLoader",
doxygen::class_doc<MeshLoader>(),
init< optional< NODE_TYPE> >(arg("node_type"),
doxygen::constructor_doc<CachedMeshLoader, const NODE_TYPE&>()))
;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment