Skip to content
Snippets Groups Projects
Commit 21fbed01 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Generate python doc from doxygen.

parent f2e2eb50
No related branches found
No related tags found
No related merge requests found
FILE_PATTERNS = *.h *.hh *.hxx
GENERATE_XML = YES
......@@ -39,6 +39,10 @@ SET_TARGET_PROPERTIES(python PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD True)
SET(LIBRARY_NAME hppfcl)
INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}" ${PYTHON_INCLUDE_DIRS})
# To be run manually:
# make doc
# ./cmake/doxygen/doxygen_xml_parser.py build-rel/doc/doxygen-xml/index.xml > build-rel/python/doxygen_autodoc.hh
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}")
SET(${LIBRARY_NAME}_HEADERS
fcl.hh
......
......@@ -41,6 +41,18 @@
#include <hpp/fcl/math/transform.h>
#include "fcl.hh"
#include <hpp/fcl/collision.h>
#include <hpp/fcl/traversal/traversal_node_bvh_shape.h>
#include <hpp/fcl/traversal/traversal_node_bvhs.h>
#include <hpp/fcl/traversal/traversal_node_octree.h>
#include <hpp/fcl/traversal/traversal_node_shapes.h>
#include <hpp/fcl/mesh_loader/loader.h>
#include <hpp/fcl/narrowphase/gjk.h>
#include <hpp/fcl/BVH/BVH_model.h>
#include <hpp/fcl/octree.h>
#include <hpp/fcl/profile.h>
#include "doxygen_autodoc.hh"
using namespace boost::python;
......@@ -77,8 +89,8 @@ void exposeMaths ()
.def (init<Vec3f>())
.def (init<Transform3f>(args("self","other"),"Copy constructor."))
.def ("getQuatRotation", &Transform3f::getQuatRotation)
.def ("getTranslation", &Transform3f::getTranslation, return_value_policy<copy_const_reference>())
.def ("getQuatRotation", &Transform3f::getQuatRotation, doxygen::member_func_doc(&Transform3f::getQuatRotation))
.def ("getTranslation", &Transform3f::getTranslation, doxygen::member_func_doc(&Transform3f::getTranslation), return_value_policy<copy_const_reference>())
.def ("getRotation", &Transform3f::getRotation, return_value_policy<copy_const_reference>())
.def ("isIdentity", &Transform3f::setIdentity)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment