|
BALL
1.4.79
|
#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< 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 | |
| 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) throw (Exception::FileNotFound) |
| 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 |
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) |
| bool | hasType_ (Atom *a, SPECTRUM_TYPE type) |
Protected Attributes | |
| 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... | |
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 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 | ) | |
| throw | ( | Exception::FileNotFound | |||
| ) | |||||
Set the parameter filename.
|
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.
1.8.7