From ef5feabbb8905e1ee2eb3dffeb46328cd6f707e8 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 17 Feb 2013 21:49:06 +0100 Subject: [PATCH] Renamed from GModelRadialShell.i to GModelSpatialRadialShell.i. --- pyext/GModelRadialShell.i | 76 ---------------------------------------------------------------------------- pyext/GModelSpatialRadialShell.i | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 76 deletions(-) delete mode 100644 pyext/GModelRadialShell.i create mode 100644 pyext/GModelSpatialRadialShell.i diff --git a/pyext/GModelRadialShell.i b/pyext/GModelRadialShell.i deleted file mode 100644 index ca34936..0000000 --- a/pyext/GModelRadialShell.i +++ /dev/null @@ -1,76 +0,0 @@ -/*************************************************************************** - * GModelRadialShell.i - Radial spatial shell source model class * - * ----------------------------------------------------------------------- * - * copyright (C) 2011-2013 by Christoph Deil * - * ----------------------------------------------------------------------- * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - * * - ***************************************************************************/ -/** - * @file GModelRadialShell.i - * @brief Radial spatial shell model class Python interface definition - * @author Christoph Deil - */ -%{ -/* Put headers and other declarations here that are needed for compilation */ -#include "GModelRadialShell.hpp" -#include "GTools.hpp" -%} - -/************************************************************************** - * @class GModelRadialShell - * - * @brief Radial shell source model class - ***************************************************************************/ -class GModelRadialShell : public GModelSpatialRadial { -public: - // Constructors and destructors - GModelRadialShell(void); - explicit GModelRadialShell(const GSkyDir& dir, - const double& radius, const double& width, - const bool& small_angle = true); - explicit GModelRadialShell(const GXmlElement& xml); - GModelRadialShell(const GModelRadialShell& model); - virtual ~GModelRadialShell(void); - - // Implemented pure virtual methods - virtual void clear(void); - virtual GModelRadialShell* clone(void) const; - virtual std::string type(void) const; - virtual double eval(const double& theta) const; - virtual double eval_gradients(const double& theta) const; - virtual GSkyDir mc(GRan& ran) const; - virtual double theta_max(void) const; - virtual void read(const GXmlElement& xml); - virtual void write(GXmlElement& xml) const; - - // Other methods - double radius(void) const; - double width(void) const; - bool small_angle(void) const; - void radius(const double& radius); - void width(const double& width); - void small_angle(const bool& small_angle); -}; - - -/***********************************************************************//** - * @brief GModelRadialShell class extension - ***************************************************************************/ -%extend GModelRadialShell { - GModelRadialShell copy() { - return (*self); - } -}; diff --git a/pyext/GModelSpatialRadialShell.i b/pyext/GModelSpatialRadialShell.i new file mode 100644 index 0000000..ca34936 --- /dev/null +++ b/pyext/GModelSpatialRadialShell.i @@ -0,0 +1,76 @@ +/*************************************************************************** + * GModelRadialShell.i - Radial spatial shell source model class * + * ----------------------------------------------------------------------- * + * copyright (C) 2011-2013 by Christoph Deil * + * ----------------------------------------------------------------------- * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + * * + ***************************************************************************/ +/** + * @file GModelRadialShell.i + * @brief Radial spatial shell model class Python interface definition + * @author Christoph Deil + */ +%{ +/* Put headers and other declarations here that are needed for compilation */ +#include "GModelRadialShell.hpp" +#include "GTools.hpp" +%} + +/************************************************************************** + * @class GModelRadialShell + * + * @brief Radial shell source model class + ***************************************************************************/ +class GModelRadialShell : public GModelSpatialRadial { +public: + // Constructors and destructors + GModelRadialShell(void); + explicit GModelRadialShell(const GSkyDir& dir, + const double& radius, const double& width, + const bool& small_angle = true); + explicit GModelRadialShell(const GXmlElement& xml); + GModelRadialShell(const GModelRadialShell& model); + virtual ~GModelRadialShell(void); + + // Implemented pure virtual methods + virtual void clear(void); + virtual GModelRadialShell* clone(void) const; + virtual std::string type(void) const; + virtual double eval(const double& theta) const; + virtual double eval_gradients(const double& theta) const; + virtual GSkyDir mc(GRan& ran) const; + virtual double theta_max(void) const; + virtual void read(const GXmlElement& xml); + virtual void write(GXmlElement& xml) const; + + // Other methods + double radius(void) const; + double width(void) const; + bool small_angle(void) const; + void radius(const double& radius); + void width(const double& width); + void small_angle(const bool& small_angle); +}; + + +/***********************************************************************//** + * @brief GModelRadialShell class extension + ***************************************************************************/ +%extend GModelRadialShell { + GModelRadialShell copy() { + return (*self); + } +}; -- libgit2 0.21.4