GModelSpatialConst.i 2.45 KB
/***************************************************************************
 *           GModelSpatialConst.i  -  Spatial isotropic model class        *
 * ----------------------------------------------------------------------- *
 *  copyright (C) 2011 by Jurgen Knodlseder                                *
 * ----------------------------------------------------------------------- *
 *                                                                         *
 *   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 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
/**
 * @file GModelSpatialConst.i
 * @brief Isotropic spatial model class Python interface definition
 * @author J. Knodlseder
 */
%{
/* Put headers and other declarations here that are needed for compilation */
#include "GModelSpatialConst.hpp"
#include "GTools.hpp"
%}


/***********************************************************************//**
 * @class GModelSpatialConst
 *
 * @brief Isotropic spatial model
 ***************************************************************************/
class GModelSpatialConst  : public GModelSpatial {
public:
    // Constructors and destructors
    GModelSpatialConst(void);
    explicit GModelSpatialConst(const GXmlElement& xml);
    GModelSpatialConst(const GModelSpatialConst& model);
    virtual ~GModelSpatialConst(void);

    // Implemented pure virtual methods
    virtual void                clear(void);
    virtual GModelSpatialConst* clone(void) const;
    virtual std::string         type(void) const;
    virtual double              eval(const GSkyDir& srcDir) const;
    virtual double              eval_gradients(const GSkyDir& srcDir) const;
    virtual GSkyDir             mc(GRan& ran) const;
    virtual void                read(const GXmlElement& xml);
    virtual void                write(GXmlElement& xml) const;
};


/***********************************************************************//**
 * @brief GModelSpatialConst class extension
 ***************************************************************************/
%extend GModelSpatialConst {
    GModelSpatialConst copy() {
        return (*self);
    }
};