#include <BALL/NMR/peak.h>
Public Types | |
Typedefs | |
typedef PositionType | Position |
Public Member Functions | |
Constructors and Destructors | |
Peak () | |
Peak (const Peak &peak) | |
virtual | ~Peak () |
Accessors | |
const Position & | getPosition () const |
const Position & | getWidth () const |
float | getIntensity () const |
void | setPosition (const Position &position) |
void | setWidth (const Position &width) |
void | setIntensity (float intensity) |
const Atom * | getAtom () const |
void | setAtom (const Atom *atom) |
Assignment | |
void | operator= (const Peak &peak) |
Predicates | |
bool | operator== (const Peak< PositionType > &peak) const |
bool | operator< (const Peak< PositionType > &peak) const |
bool | operator> (const Peak< PositionType > &peak) const |
Protected Attributes | |
Position | position_ |
Position | width_ |
float | intensity_ |
const Atom * | atom_ |
Generic Peak Class. Each peak contains a pointer to an associated atom (in the case of NMR: the atom that causes this peak).
typedef PositionType BALL::Peak< PositionType >::Position |
BALL::Peak< PositionType >::Peak | ( | ) | [inline] |
Default Constructor
BALL::Peak< PositionType >::Peak | ( | const Peak< PositionType > & | peak | ) | [inline] |
Copy Constructor
BALL::Peak< PositionType >::~Peak | ( | ) | [inline, virtual] |
Destructor
BALL_INLINE const Atom * BALL::Peak< PositionType >::getAtom | ( | ) | const [inline] |
Return the atom pointer.
References BALL::Peak< PositionType >::atom_.
BALL_INLINE float BALL::Peak< PositionType >::getIntensity | ( | ) | const [inline] |
Return the peak intensity (amplitude).
References BALL::Peak< PositionType >::intensity_.
BALL_INLINE const Peak< PositionType >::Position & BALL::Peak< PositionType >::getPosition | ( | ) | const [inline] |
Return the peak position.
References BALL::Peak< PositionType >::position_.
BALL_INLINE const Peak< PositionType >::Position & BALL::Peak< PositionType >::getWidth | ( | ) | const [inline] |
Return the peak width.
References BALL::Peak< PositionType >::width_.
bool BALL::Peak< PositionType >::operator< | ( | const Peak< PositionType > & | peak | ) | const [inline] |
Lesser than operator
References BALL::Peak< PositionType >::position_.
void BALL::Peak< PositionType >::operator= | ( | const Peak< PositionType > & | peak | ) | [inline] |
Assignment Operator
References BALL::Peak< PositionType >::atom_, BALL::Peak< PositionType >::intensity_, BALL::Peak< PositionType >::position_, and BALL::Peak< PositionType >::width_.
bool BALL::Peak< PositionType >::operator== | ( | const Peak< PositionType > & | peak | ) | const [inline] |
Equality operator
References BALL::Peak< PositionType >::atom_, BALL::Peak< PositionType >::intensity_, BALL::Peak< PositionType >::position_, and BALL::Peak< PositionType >::width_.
bool BALL::Peak< PositionType >::operator> | ( | const Peak< PositionType > & | peak | ) | const [inline] |
Greater than operator
References BALL::Peak< PositionType >::position_.
BALL_INLINE void BALL::Peak< PositionType >::setAtom | ( | const Atom * | atom | ) | [inline] |
Set the atom pointer.
References BALL::Peak< PositionType >::atom_.
BALL_INLINE void BALL::Peak< PositionType >::setIntensity | ( | float | intensity | ) | [inline] |
Set the peak height
References BALL::Peak< PositionType >::intensity_.
void BALL::Peak< PositionType >::setPosition | ( | const Position & | position | ) |
Set the peak position.
void BALL::Peak< PositionType >::setWidth | ( | const Position & | width | ) |
Set the peak width
const Atom* BALL::Peak< PositionType >::atom_ [protected] |
float BALL::Peak< PositionType >::intensity_ [protected] |
Position BALL::Peak< PositionType >::position_ [protected] |
Position BALL::Peak< PositionType >::width_ [protected] |