diff --git a/panda/src/linmath/lmatrix3_ext_src.h b/panda/src/linmath/lmatrix3_ext_src.h index 5be62dc1fb..ca05d20322 100644 --- a/panda/src/linmath/lmatrix3_ext_src.h +++ b/panda/src/linmath/lmatrix3_ext_src.h @@ -1,41 +1,41 @@ -// Filename: lmatrix3_ext_src.h -// Created by: rdb (12Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LMatrix3::Row, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); -}; - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LMatrix3, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lmatrix3_ext_src.I" +// Filename: lmatrix3_ext_src.h +// Created by: rdb (12Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LMatrix3::Row, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); +}; + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LMatrix3, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lmatrix3_ext_src.I" diff --git a/panda/src/linmath/lmatrix4_ext_src.h b/panda/src/linmath/lmatrix4_ext_src.h index de97a6bb94..fc03cc29dc 100644 --- a/panda/src/linmath/lmatrix4_ext_src.h +++ b/panda/src/linmath/lmatrix4_ext_src.h @@ -1,41 +1,41 @@ -// Filename: lmatrix4_ext_src.h -// Created by: rdb (12Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LMatrix4::Row, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); -}; - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LMatrix4, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lmatrix4_ext_src.I" +// Filename: lmatrix4_ext_src.h +// Created by: rdb (12Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LMatrix4::Row, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); +}; + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LMatrix4, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lmatrix4_ext_src.I" diff --git a/panda/src/linmath/lpoint2_ext_src.h b/panda/src/linmath/lpoint2_ext_src.h index c706bcc402..83620bbf48 100644 --- a/panda/src/linmath/lpoint2_ext_src.h +++ b/panda/src/linmath/lpoint2_ext_src.h @@ -1,30 +1,30 @@ -// Filename: lpoint2_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LPoint2, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lpoint2_ext_src.I" +// Filename: lpoint2_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LPoint2, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lpoint2_ext_src.I" diff --git a/panda/src/linmath/lpoint3_ext_src.h b/panda/src/linmath/lpoint3_ext_src.h index 6afda96af6..2e4c38f3e1 100644 --- a/panda/src/linmath/lpoint3_ext_src.h +++ b/panda/src/linmath/lpoint3_ext_src.h @@ -1,30 +1,30 @@ -// Filename: lpoint3_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LPoint3, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lpoint3_ext_src.I" +// Filename: lpoint3_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LPoint3, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lpoint3_ext_src.I" diff --git a/panda/src/linmath/lpoint4_ext_src.h b/panda/src/linmath/lpoint4_ext_src.h index c010159c55..93c59ca58c 100644 --- a/panda/src/linmath/lpoint4_ext_src.h +++ b/panda/src/linmath/lpoint4_ext_src.h @@ -1,30 +1,30 @@ -// Filename: lpoint4_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LPoint4, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lpoint4_ext_src.I" +// Filename: lpoint4_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LPoint4, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lpoint4_ext_src.I" diff --git a/panda/src/linmath/lvecBase2_ext_src.h b/panda/src/linmath/lvecBase2_ext_src.h index ecd459c119..65b815e04a 100644 --- a/panda/src/linmath/lvecBase2_ext_src.h +++ b/panda/src/linmath/lvecBase2_ext_src.h @@ -1,32 +1,32 @@ -// Filename: lvecBase2_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LVecBase2, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lvecBase2_ext_src.I" +// Filename: lvecBase2_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LVecBase2, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lvecBase2_ext_src.I" diff --git a/panda/src/linmath/lvecBase3_ext_src.h b/panda/src/linmath/lvecBase3_ext_src.h index ecf3667303..3c78131aed 100644 --- a/panda/src/linmath/lvecBase3_ext_src.h +++ b/panda/src/linmath/lvecBase3_ext_src.h @@ -1,32 +1,32 @@ -// Filename: lvecBase3_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LVecBase3, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lvecBase3_ext_src.I" +// Filename: lvecBase3_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LVecBase3, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lvecBase3_ext_src.I" diff --git a/panda/src/linmath/lvecBase4_ext_src.h b/panda/src/linmath/lvecBase4_ext_src.h index 0d4306e256..61ff4e907c 100644 --- a/panda/src/linmath/lvecBase4_ext_src.h +++ b/panda/src/linmath/lvecBase4_ext_src.h @@ -1,44 +1,44 @@ -// Filename: lvecBase4_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LVecBase4, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// UnalignedLVecBase4, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); -}; - -#include "lvecBase4_ext_src.I" +// Filename: lvecBase4_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LVecBase4, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__reduce__(PyObject *self) const; + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// UnalignedLVecBase4, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH void __setitem__(int i, FLOATTYPE v); +}; + +#include "lvecBase4_ext_src.I" diff --git a/panda/src/linmath/lvector2_ext_src.h b/panda/src/linmath/lvector2_ext_src.h index 5f2c7838e6..00c410d96b 100644 --- a/panda/src/linmath/lvector2_ext_src.h +++ b/panda/src/linmath/lvector2_ext_src.h @@ -1,30 +1,30 @@ -// Filename: lvector2_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LVector2, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lvector2_ext_src.I" +// Filename: lvector2_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LVector2, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lvector2_ext_src.I" diff --git a/panda/src/linmath/lvector3_ext_src.h b/panda/src/linmath/lvector3_ext_src.h index 85f6688d20..11e496e8b6 100644 --- a/panda/src/linmath/lvector3_ext_src.h +++ b/panda/src/linmath/lvector3_ext_src.h @@ -1,30 +1,30 @@ -// Filename: lvector3_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LVector3, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lvector3_ext_src.I" +// Filename: lvector3_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LVector3, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lvector3_ext_src.I" diff --git a/panda/src/linmath/lvector4_ext_src.h b/panda/src/linmath/lvector4_ext_src.h index e6e708f36b..9eb1bc2a92 100644 --- a/panda/src/linmath/lvector4_ext_src.h +++ b/panda/src/linmath/lvector4_ext_src.h @@ -1,30 +1,30 @@ -// Filename: lvector4_ext_src.h -// Created by: rdb (13Sep13) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - - -//////////////////////////////////////////////////////////////////// -// Class : Extension -// Description : This class defines the extension methods for -// LVector4, which are called instead of -// any C++ methods with the same prototype. -//////////////////////////////////////////////////////////////////// -template<> -class Extension : public ExtensionBase { -public: - INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; - INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); - INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; -}; - -#include "lvector4_ext_src.I" +// Filename: lvector4_ext_src.h +// Created by: rdb (13Sep13) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) Carnegie Mellon University. All rights reserved. +// +// All use of this software is subject to the terms of the revised BSD +// license. You should have received a copy of this license along +// with this source code in a file named "LICENSE." +// +//////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Class : Extension +// Description : This class defines the extension methods for +// LVector4, which are called instead of +// any C++ methods with the same prototype. +//////////////////////////////////////////////////////////////////// +template<> +class Extension : public ExtensionBase { +public: + INLINE_LINMATH PyObject *__getattr__(const string &attr_name) const; + INLINE_LINMATH int __setattr__(PyObject *self, const string &attr_name, PyObject *assign); + INLINE_LINMATH void python_repr(ostream &out, const string &class_name) const; +}; + +#include "lvector4_ext_src.I"