BALL
1.4.79
|
#include <BALL/NMR/shiftModel2D.h>
Public Types | |
Type definitions | |
enum | SPECTRUM_TYPE { HSQC_NH = 1, HSQC_CH, COSY_HH, COSY_CH, TOCSY_HH, TOCSY_CH, TOCSY_NH } |
Public Types inherited from BALL::UnaryFunctor< Composite, Processor::Result > | |
typedef Processor::Result | result_type |
typedef Composite | argument_type |
typedef Composite & | argument_reference |
typedef const Composite & | const_argument_reference |
typedef Composite * | argument_pointer |
typedef const Composite * | const_argument_pointer |
Public Member Functions | |
Constructors and Destructors | |
ShiftModel2D () | |
ShiftModel2D (const String &filename, SPECTRUM_TYPE st, bool compute_shifts=true) | |
ShiftModel2D (const String &filename, SPECTRUM_TYPE st, Vector2 origin, Vector2 dimension, Vector2 spacing, bool compute_shifts=true) | |
ShiftModel2D (const ShiftModel2D &model) | |
virtual | ~ShiftModel2D () |
void | clear () |
Accessors | |
void | setFilename (const String &filename) throw (Exception::FileNotFound) |
const String & | getFilename () const |
const Parameters & | getParameters () const |
const std::vector< Peak2D > & | getPeaks () const |
void | setPeaks (std::vector< Peak2D > peaks) |
const Vector2 & | getOrigin () const |
void | setOrigin (const Vector2 &origin) |
const Vector2 & | getDimension () const |
void | setDimension (const Vector2 &dimension) |
const Vector2 & | getSpacing () const |
void | setSystem (System *system) |
const System * | getSystem () const |
void | operator>> (Spectrum2D &spectrum) |
Predicates | |
bool | isValid () const |
Processor related methods | |
bool | start () |
bool | finish () |
Processor::Result | operator() (Composite &composite) |
Public Member Functions inherited from BALL::ShiftModule | |
ShiftModule () | |
ShiftModule (Parameters ¶meters, const String &name="") | |
ShiftModule (const ShiftModule &module) | |
virtual | ~ShiftModule () |
const ShiftModule & | operator= (const ShiftModule &module) |
void | setName (const String &name) |
const String & | getName () const |
void | setParameters (Parameters ¶meters) |
const Parameters * | getParameters () const |
virtual void | init () |
bool | isValid () const |
Public Member Functions inherited from BALL::UnaryProcessor< Composite > | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
Protected Member Functions | |
bool | init_ () throw (Exception::FileNotFound) |
void | createPeak_ (Atom *proton, Atom *atom, float peakwidth_proton, float peakwidth_atom) |
Protected Attributes | |
std::vector< Peak2D > | peaks_ |
Vector2 | origin_ |
Vector2 | dimension_ |
Vector2 | spacing_ |
SPECTRUM_TYPE | type_ |
Parameters | parameters_ |
System * | system_ |
bool | valid_ |
bool | compute_shifts_ |
Flag for shift computation. More... | |
Protected Attributes inherited from BALL::ShiftModule | |
String | module_name_ |
Parameters * | parameters_ |
bool | valid_ |
Additional Inherited Members | |
Static Public Attributes inherited from BALL::ShiftModule | |
static const char * | PROPERTY__SHIFT |
static const char * | PROPERTY__EXPERIMENTAL__SHIFT |
A class representing a complete parameterized 2D NMR shift model. The model consists of peak list, a system, a spectrum type and parameters
Definition at line 19 of file shiftModel2D.h.
Enumerator | |
---|---|
HSQC_NH | |
HSQC_CH | |
COSY_HH | |
COSY_CH | |
TOCSY_HH | |
TOCSY_CH | |
TOCSY_NH |
Definition at line 30 of file shiftModel2D.h.
BALL::ShiftModel2D::ShiftModel2D | ( | ) |
Default Constructor
BALL::ShiftModel2D::ShiftModel2D | ( | const String & | filename, |
SPECTRUM_TYPE | st, | ||
bool | compute_shifts = true |
||
) |
Detailed Constructor. If compute_shifts is set to false, we assume that the shifts have been previously assigned, and will use the properties as we find them in the system.
BALL::ShiftModel2D::ShiftModel2D | ( | const String & | filename, |
SPECTRUM_TYPE | st, | ||
Vector2 | origin, | ||
Vector2 | dimension, | ||
Vector2 | spacing, | ||
bool | compute_shifts = true |
||
) |
Detailed Constructor. If compute_shifts is set to false, we assume that the shifts have been previously assigned, and will use the properties as we find them in the system.
BALL::ShiftModel2D::ShiftModel2D | ( | const ShiftModel2D & | model | ) |
Copy constructor
|
virtual |
Destructor
|
virtual |
Clear method.
Reimplemented from BALL::ShiftModule.
|
protected |
|
virtual |
Finish method
Reimplemented from BALL::ShiftModule.
|
inline |
Get the dimension
Definition at line 127 of file shiftModel2D.h.
|
inline |
Return the parameter filename.
Definition at line 85 of file shiftModel2D.h.
|
inline |
Get the origin
Definition at line 113 of file shiftModel2D.h.
|
inline |
Definition at line 92 of file shiftModel2D.h.
|
inline |
Get the peaks
Definition at line 99 of file shiftModel2D.h.
|
inline |
Get the spacing
Definition at line 141 of file shiftModel2D.h.
|
inline |
Return the system
Definition at line 156 of file shiftModel2D.h.
|
protected |
bool BALL::ShiftModel2D::isValid | ( | ) | const |
Validity flag
|
virtual |
Application method
Reimplemented from BALL::UnaryProcessor< Composite >.
void BALL::ShiftModel2D::operator>> | ( | Spectrum2D & | spectrum | ) |
|
inline |
Set the dimension
Definition at line 134 of file shiftModel2D.h.
void BALL::ShiftModel2D::setFilename | ( | const String & | filename | ) | |
throw | ( | Exception::FileNotFound | |||
) |
Set the parameter filename.
|
inline |
Set the origin
Definition at line 120 of file shiftModel2D.h.
|
inline |
Set the peaks
Definition at line 106 of file shiftModel2D.h.
|
inline |
Set the system
Definition at line 149 of file shiftModel2D.h.
|
virtual |
Start method
Reimplemented from BALL::ShiftModule.
|
protected |
Flag for shift computation.
Definition at line 237 of file shiftModel2D.h.
|
protected |
Definition at line 213 of file shiftModel2D.h.
|
protected |
Definition at line 209 of file shiftModel2D.h.
|
protected |
Definition at line 225 of file shiftModel2D.h.
|
protected |
Definition at line 205 of file shiftModel2D.h.
|
protected |
Definition at line 217 of file shiftModel2D.h.
|
protected |
Definition at line 229 of file shiftModel2D.h.
|
protected |
Definition at line 221 of file shiftModel2D.h.
|
protected |
Definition at line 234 of file shiftModel2D.h.