/** @file HardRFPulse.h
 *  @brief Implementation of JEMRIS HardRFPulse
 */

/*
 *  JEMRIS Copyright (C) 
 *                        2006-2025  Tony Stoecker
 *                        2007-2018  Kaveh Vahedipour
 *                        2009-2019  Daniel Pflugfelder
 *                                  
 *
 *  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.
 *
 *  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, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef HARDRFPULSE_H_
#define HARDRFPULSE_H_

#include "RFPulse.h"

//! Prototype for hard radio frequency pulses.

class HardRFPulse : public RFPulse {


 public:

    /**
     * @brief Default constructor
     */
    HardRFPulse() {};

    /**
     * @brief Default copy constructor.
     */
    HardRFPulse  (const HardRFPulse&) {};

    /**
     * @brief Default destructor.
     */
    virtual ~HardRFPulse () {};

    /**
     *  @see Prototype::Clone
     */
    inline HardRFPulse* Clone() const { return (new HardRFPulse(*this)); }

     /**
     * @brief Prepare.
     *
     * @param mode Sets the preparation mode, one of enum PrepareMode {PREP_INIT,PREP_VERBOSE,PREP_UPDATE}.
     * @return     Success.
     */
    virtual bool Prepare  (const PrepareMode mode);

    /**
     * Returns a constant Magnitude for all times.
     *
     * @param time The flip angle as double.
     * @return     Magnitude.
     */
    inline virtual double  GetMagnitude (double time ) { return GetFlipAngle() * PI /(180.0*GetDuration() ); }

};

#endif /*HARDRFPULSE_H_*/
