BALL::Bruker2DFile Class Reference
[NMR File Formats]
#include <BALL/FORMAT/bruker2DFile.h>
List of all members.
|
Public Member Functions |
| Bruker2DFile () |
| Bruker2DFile (const String &name, OpenMode open_mode=std::ios::in|std::ios::binary) throw (Exception::FileNotFound) |
| Bruker2DFile (const Bruker2DFile &file) 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) |
const Bruker2DFile & | operator= (const Bruker2DFile &file) |
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_ |
Detailed Description
Bruker 2D spectrum format. A class for reading Bruker two-dimensional NMR spectra.
Constructor & Destructor Documentation
BALL::Bruker2DFile::Bruker2DFile |
( |
|
) |
|
Constructor.
- Parameters:
-
| name | important: name of the Bruker-*directory* |
virtual BALL::Bruker2DFile::~Bruker2DFile |
( |
|
) |
[virtual] |
Member Function Documentation
const RegularData2D& BALL::Bruker2DFile::getData |
( |
|
) |
const [inline] |
Return a reference to the spectrum.
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.
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_;
Set the parameters needed for conversion index<->shift.
Member Data Documentation
These classes give access to the parameters used in aqcuiring the spectrum.