odeJoint_ext.h 906 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file odeJoint_ext.h
  10. * @author rdb
  11. * @date 2013-12-11
  12. */
  13. #ifndef ODEJOINT_EXT_H
  14. #define ODEJOINT_EXT_H
  15. #include "dtoolbase.h"
  16. #ifdef HAVE_PYTHON
  17. #include "config_ode.h"
  18. #include "odeJoint.h"
  19. #include "extension.h"
  20. #include "py_panda.h"
  21. /**
  22. * This class defines the extension methods for NodePathCollection, which are
  23. * called instead of any C++ methods with the same prototype.
  24. */
  25. template<>
  26. class Extension<OdeJoint> : public ExtensionBase<OdeJoint> {
  27. public:
  28. void attach(const OdeBody *body1, const OdeBody *body2);
  29. PyObject *convert() const;
  30. };
  31. #endif // HAVE_PYTHON
  32. #endif // ODEJOINT_EXT_H