BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
FORMAT
bruker2DFile.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_FORMAT_BRUKER2DFILE_H
6
#define BALL_FORMAT_BRUKER2DFILE_H
7
8
#ifndef BALL_FORMAT_JCAMPFILE_H
9
# include <
BALL/FORMAT/JCAMPFile.h
>
10
#endif
11
12
#ifndef BALL_DATATYPE_REGULARDATA2D_H
13
# include <
BALL/DATATYPE/regularData2D.h
>
14
#endif
15
16
namespace
BALL
17
{
24
class
BALL_EXPORT
Bruker2DFile
25
:
public
File
26
{
27
public
:
28
31
Bruker2DFile
();
32
37
Bruker2DFile
(
const
String
& name,
OpenMode
open_mode = std::ios::in | std::ios::binary);
38
41
virtual
~
Bruker2DFile
();
42
46
void
read();
47
51
void
read(
const
String
&name);
52
54
const
RegularData2D
&
getData
()
const
{
return
spectrum_; }
56
RegularData2D
&
getData
() {
return
spectrum_; }
57
60
std::list<std::pair<int, int> > getPeakList()
const
;
61
64
std::pair<double, double> getShift(
Position
x,
Position
y);
65
68
std::pair<Position, Position> getPosition(
double
x,
double
y);
69
72
void
setShiftRange(
double
offsetf1,
double
offsetf2,
double
swidthf1,
double
swidthf2,
73
double
bfreqf1,
double
bfreqf2,
double
spointnumf1,
double
spointnumf2);
74
75
private
:
76
const
Bruker2DFile
& operator = (
const
Bruker2DFile
& file);
77
78
protected
:
80
JCAMPFile
parsf1_
;
81
JCAMPFile
parsf2_
;
82
83
Size
minx_
;
84
Size
maxx_
;
85
Size
miny_
;
86
Size
maxy_
;
87
88
// To be replaced by regularData2D
89
RegularData2D
dat_
;
90
double
soffsetf1_
;
91
double
soffsetf2_
;
92
double
swidthf1_
;
93
double
swidthf2_
;
94
double
bfreqf1_
;
95
double
bfreqf2_
;
96
Size
spointnumf1_
;
97
Size
spointnumf2_
;
98
RegularData2D
spectrum_
;
99
};
100
}
101
102
#endif
Generated by
1.8.3.1