lvector3_ext_src.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. // Filename: lvector3_ext_src.h
  2. // Created by: rdb (13Sep13)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. ////////////////////////////////////////////////////////////////////
  15. // Class : Extension<LVector3>
  16. // Description : This class defines the extension methods for
  17. // LVector3, which are called instead of
  18. // any C++ methods with the same prototype.
  19. ////////////////////////////////////////////////////////////////////
  20. template<>
  21. class Extension<FLOATNAME(LVector3)> : public ExtensionBase<FLOATNAME(LVector3)> {
  22. public:
  23. INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const;
  24. INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign);
  25. INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const;
  26. };
  27. #include "lvector3_ext_src.I"