|
BALL
1.5.0
|
#include <BALL/NMR/shiftModel1D.h>
Public Types | |
Type definitions | |
| enum | SPECTRUM_TYPE { H = 1 , N , C , H_ON_BACKBONE , N_BACKBONE , C_BACKBONE } |
Public Types inherited from BALL::UnaryFunctor< ArgumentType, ResultType > | |
| typedef ResultType | result_type |
| typedef ArgumentType | argument_type |
| typedef ArgumentType & | argument_reference |
| typedef const ArgumentType & | const_argument_reference |
| typedef ArgumentType * | argument_pointer |
| typedef const ArgumentType * | const_argument_pointer |
Public Member Functions | |
Constructors and Destructors | |
| ShiftModel1D () | |
| ShiftModel1D (const String &filename, SPECTRUM_TYPE st, bool compute_shifts=true) | |
| ShiftModel1D (const String &filename, SPECTRUM_TYPE st, double origin, double dimension, double spacing, bool compute_shifts=true) | |
| ShiftModel1D (const ShiftModel1D &model) | |
| virtual | ~ShiftModel1D () |
| void | clear () |
Accessors | |
| void | setFilename (const String &filename) |
| const String & | getFilename () const |
| const Parameters & | getParameters () const |
| const std::vector< Peak1D > & | getPeaks () const |
| void | setPeaks (std::vector< Peak1D > peaks) |
| const double & | getOrigin () const |
| void | setOrigin (const double &origin) |
| const double & | getDimension () const |
| void | setDimension (const double &dimension) |
| const double | getSpacing () const |
| void | setSystem (System *system) |
| const System * | getSystem () const |
| void | operator>> (Spectrum1D &spectrum) |
Predicates | |
| bool | isValid () const |
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 () |
Processor related methods | |
| std::vector< Peak1D > | peaks_ |
| double | origin_ |
| double | dimension_ |
| double | spacing_ |
| SPECTRUM_TYPE | type_ |
| Parameters | parameters_ |
| System * | system_ |
| bool | valid_ |
| bool | compute_shifts_ |
| Flag for shift computation. More... | |
| bool | start () |
| bool | finish () |
| Processor::Result | operator() (Composite &composite) |
| bool | init_ () |
| bool | hasType_ (Atom *a, SPECTRUM_TYPE type) |
Additional Inherited Members | |
Static Public Attributes inherited from BALL::ShiftModule | |
| static const char * | PROPERTY__SHIFT |
| static const char * | PROPERTY__EXPERIMENTAL__SHIFT |
Protected Attributes inherited from BALL::ShiftModule | |
| String | module_name_ |
| Parameters * | parameters_ |
| bool | valid_ |
A class representing a complete parameterized 1D NMR shift model. The model consists of peak list, a system, a spectrum type and parameters
Definition at line 18 of file shiftModel1D.h.
| Enumerator | |
|---|---|
| H | |
| N | |
| C | |
| H_ON_BACKBONE | |
| N_BACKBONE | |
| C_BACKBONE | |
Definition at line 29 of file shiftModel1D.h.
| BALL::ShiftModel1D::ShiftModel1D | ( | ) |
Default Constructor
| BALL::ShiftModel1D::ShiftModel1D | ( | 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::ShiftModel1D::ShiftModel1D | ( | const String & | filename, |
| SPECTRUM_TYPE | st, | ||
| double | origin, | ||
| double | dimension, | ||
| double | 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::ShiftModel1D::ShiftModel1D | ( | const ShiftModel1D & | model | ) |
Copy constructor
|
virtual |
Destructor
|
virtual |
Clear method.
Reimplemented from BALL::ShiftModule.
|
virtual |
Finish method
Reimplemented from BALL::ShiftModule.
|
inline |
Get the dimension
Definition at line 126 of file shiftModel1D.h.
|
inline |
Return the parameter filename.
Definition at line 83 of file shiftModel1D.h.
|
inline |
Get the origin
Definition at line 112 of file shiftModel1D.h.
|
inline |
Definition at line 90 of file shiftModel1D.h.
|
inline |
Get the peaks
Definition at line 97 of file shiftModel1D.h.
|
inline |
Get the spacing
Definition at line 140 of file shiftModel1D.h.
|
inline |
Return the system
Definition at line 154 of file shiftModel1D.h.
|
protected |
|
protected |
| bool BALL::ShiftModel1D::isValid | ( | ) | const |
Validity flag
|
virtual |
Application method
Reimplemented from BALL::UnaryProcessor< Composite >.
| void BALL::ShiftModel1D::operator>> | ( | Spectrum1D & | spectrum | ) |
|
inline |
Set the dimension
Definition at line 133 of file shiftModel1D.h.
| void BALL::ShiftModel1D::setFilename | ( | const String & | filename | ) |
Set the parameter filename.
| BALL::Exception::FileNotFound |
|
inline |
Set the origin
Definition at line 119 of file shiftModel1D.h.
|
inline |
Set the peaks
Definition at line 104 of file shiftModel1D.h.
|
inline |
Set the system
Definition at line 147 of file shiftModel1D.h.
|
virtual |
Start method
Reimplemented from BALL::ShiftModule.
|
protected |
Flag for shift computation.
Definition at line 234 of file shiftModel1D.h.
|
protected |
Definition at line 210 of file shiftModel1D.h.
|
protected |
Definition at line 206 of file shiftModel1D.h.
|
protected |
Definition at line 222 of file shiftModel1D.h.
|
protected |
Definition at line 202 of file shiftModel1D.h.
|
protected |
Definition at line 214 of file shiftModel1D.h.
|
protected |
Definition at line 226 of file shiftModel1D.h.
|
protected |
Definition at line 218 of file shiftModel1D.h.
|
protected |
Definition at line 231 of file shiftModel1D.h.