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
CCP4File.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
//
5
6
#ifndef BALL_FORMAT_CCP4FILE_H
7
#define BALL_FORMAT_CCP4FILE_H
8
9
#ifndef BALL_SYSTEM_FILE_H
10
# include <
BALL/SYSTEM/file.h
>
11
#endif
12
13
#ifndef BALL_DATATYPE_REGULARDATA3D_H
14
# include <
BALL/DATATYPE/regularData3D.h
>
15
#endif
16
17
namespace
BALL
18
{
26
class
BALL_EXPORT
CCP4File
27
:
public
File
28
{
29
30
public
:
31
35
37
CCP4File
();
38
42
CCP4File
(
const
String
& name,
File::OpenMode
open_mode = std::ios::in);
43
45
virtual
~
CCP4File
();
46
48
51
53
virtual
void
clear();
54
56
59
61
bool
operator == (
const
CCP4File
& file)
const
;
62
64
65
66
70
virtual
bool
open(
const
String
& name,
File::OpenMode
open_mode = std::ios::in);
71
75
virtual
bool
readHeader();
76
80
virtual
bool
readSymmetryRecords();
81
84
virtual
bool
read(
RegularData3D
& map);
85
89
virtual
bool
writeHeader();
90
94
virtual
bool
write(
RegularData3D
& map);
95
97
100
102
103
private
:
104
const
CCP4File
& operator = (
const
CCP4File
& file);
105
106
protected
:
107
108
int
readBinValueasInt_(
char
* header,
Position
pos);
109
110
float
readBinValueasFloat_(
char
* header,
Position
pos);
111
113
bool
swap_bytes_
;
114
116
int
offset_symops_
;
117
119
int
col_axis_
;
120
int
row_axis_
;
121
int
sec_axis_
;
122
124
Vector3
start_
;
125
127
Vector3
extent_
;
128
130
Vector3
sampling_rate_
;
131
133
Vector3
cell_dimension_
;
134
136
Angle
alpha_, beta_,
gamma_
;
137
139
float
mean_density_
;
140
142
float
deviation_sigma_
;
143
145
int
space_group_
;
146
148
Vector3
origin_, xaxis_, yaxis_,
zaxis_
;
149
};
150
}
// namespace BALL
151
152
#endif // BALL_FORMAT_DCDFILE_H
Generated by
1.8.3.1