#include <BALL/FORMAT/bruker2DFile.h>
Public Member Functions | |
Bruker2DFile () | |
Bruker2DFile (const String &name, OpenMode open_mode=std::ios::in|std::ios::binary) throw (Exception::FileNotFound) | |
virtual | ~Bruker2DFile () |
void | read () |
void | read (const String &name) |
const RegularData2D & | getData () const |
Return a reference to the spectrum. | |
RegularData2D & | getData () |
std::list< std::pair< int, int > > | getPeakList () const |
std::pair< double, double > | getShift (Position x, Position y) |
std::pair< Position, Position > | getPosition (double x, double y) |
void | setShiftRange (double offsetf1, double offsetf2, double swidthf1, double swidthf2, double bfreqf1, double bfreqf2, double spointnumf1, double spointnumf2) |
Protected Attributes | |
JCAMPFile | parsf1_ |
These classes give access to the parameters used in aqcuiring the spectrum. | |
JCAMPFile | parsf2_ |
Size | minx_ |
Size | maxx_ |
Size | miny_ |
Size | maxy_ |
RegularData2D | dat_ |
double | soffsetf1_ |
double | soffsetf2_ |
double | swidthf1_ |
double | swidthf2_ |
double | bfreqf1_ |
double | bfreqf2_ |
Size | spointnumf1_ |
Size | spointnumf2_ |
RegularData2D | spectrum_ |
Private Member Functions | |
const Bruker2DFile & | operator= (const Bruker2DFile &file) |
Bruker 2D spectrum format. A class for reading Bruker two-dimensional NMR spectra.
Definition at line 24 of file bruker2DFile.h.
BALL::Bruker2DFile::Bruker2DFile | ( | ) |
Default constructor.
BALL::Bruker2DFile::Bruker2DFile | ( | const String & | name, | |
OpenMode | open_mode = std::ios::in|std::ios::binary | |||
) | throw (Exception::FileNotFound) |
Constructor.
name | important: name of the Bruker-*directory* |
virtual BALL::Bruker2DFile::~Bruker2DFile | ( | ) | [virtual] |
Destructor.
RegularData2D& BALL::Bruker2DFile::getData | ( | ) | [inline] |
Definition at line 56 of file bruker2DFile.h.
const RegularData2D& BALL::Bruker2DFile::getData | ( | ) | const [inline] |
Return a reference to the spectrum.
Definition at line 54 of file bruker2DFile.h.
std::list<std::pair<int, int> > BALL::Bruker2DFile::getPeakList | ( | ) | const |
Returns a list of peaks found in the spectrum.
Returns the coordinates of a point in the original data next to the given coordinates.
Returns the shift corresponding to a position in the bitmap.
const Bruker2DFile& BALL::Bruker2DFile::operator= | ( | const Bruker2DFile & | file | ) | [private] |
void BALL::Bruker2DFile::read | ( | const String & | name | ) |
Read a spectrum from "name". It will be stored in spectrum_;
void BALL::Bruker2DFile::read | ( | ) |
Read a spectrum. It will be stored in spectrum_;
void BALL::Bruker2DFile::setShiftRange | ( | double | offsetf1, | |
double | offsetf2, | |||
double | swidthf1, | |||
double | swidthf2, | |||
double | bfreqf1, | |||
double | bfreqf2, | |||
double | spointnumf1, | |||
double | spointnumf2 | |||
) |
Set the parameters needed for conversion index<->shift.
double BALL::Bruker2DFile::bfreqf1_ [protected] |
Definition at line 94 of file bruker2DFile.h.
double BALL::Bruker2DFile::bfreqf2_ [protected] |
Definition at line 95 of file bruker2DFile.h.
RegularData2D BALL::Bruker2DFile::dat_ [protected] |
Definition at line 89 of file bruker2DFile.h.
Size BALL::Bruker2DFile::maxx_ [protected] |
Definition at line 84 of file bruker2DFile.h.
Size BALL::Bruker2DFile::maxy_ [protected] |
Definition at line 86 of file bruker2DFile.h.
Size BALL::Bruker2DFile::minx_ [protected] |
Definition at line 83 of file bruker2DFile.h.
Size BALL::Bruker2DFile::miny_ [protected] |
Definition at line 85 of file bruker2DFile.h.
JCAMPFile BALL::Bruker2DFile::parsf1_ [protected] |
These classes give access to the parameters used in aqcuiring the spectrum.
Definition at line 80 of file bruker2DFile.h.
JCAMPFile BALL::Bruker2DFile::parsf2_ [protected] |
Definition at line 81 of file bruker2DFile.h.
double BALL::Bruker2DFile::soffsetf1_ [protected] |
Definition at line 90 of file bruker2DFile.h.
double BALL::Bruker2DFile::soffsetf2_ [protected] |
Definition at line 91 of file bruker2DFile.h.
RegularData2D BALL::Bruker2DFile::spectrum_ [protected] |
Definition at line 98 of file bruker2DFile.h.
Size BALL::Bruker2DFile::spointnumf1_ [protected] |
Definition at line 96 of file bruker2DFile.h.
Size BALL::Bruker2DFile::spointnumf2_ [protected] |
Definition at line 97 of file bruker2DFile.h.
double BALL::Bruker2DFile::swidthf1_ [protected] |
Definition at line 92 of file bruker2DFile.h.
double BALL::Bruker2DFile::swidthf2_ [protected] |
Definition at line 93 of file bruker2DFile.h.