EMAN2
xplorio.h
Go to the documentation of this file.
1/*
2 * Author: Steven Ludtke, 04/10/2003 (sludtke@bcm.edu)
3 * Copyright (c) 2000-2006 Baylor College of Medicine
4 *
5 * This software is issued under a joint BSD/GNU license. You may use the
6 * source code in this file under either license. However, note that the
7 * complete EMAN2 and SPARX software packages have some GPL dependencies,
8 * so you are responsible for compliance with the licenses of these packages
9 * if you opt to use BSD licensing. The warranty disclaimer below holds
10 * in either instance.
11 *
12 * This complete copyright notice must be included in any revised version of the
13 * source code. Additional authorship citations may be added, but existing
14 * author citations must be preserved.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 *
30 * */
31
32#ifndef eman__xplorio_h__
33#define eman__xplorio_h__ 1
34
35#include "imageio.h"
36
37namespace EMAN
38{
60 class XplorIO : public ImageIO
61 {
62 public:
63 explicit XplorIO(const string & fname, IOMode rw_mode = READ_ONLY);
64 ~XplorIO();
65
67 static bool is_valid(const void *first_block);
68
69 private:
73
74 int nx;
75 int ny;
76 int nz;
77
78 float apix_x;
79 float apix_y;
80 float apix_z;
81
83 float cell_beta;
84 float cell_gama;
85
86 static const string SECTION_MODE;
87 static const int NFLOAT_PER_LINE;
88 static const int INTEGER_SIZE;
89 static const int FLOAT_SIZE;
90 static const char * OUTFORMAT;
91 };
92
93}
94
95
96#endif //eman__xplorio_h__
ImageIO classes are designed for reading/writing various electron micrography image formats,...
Definition: imageio.h:127
IOMode rw_mode
Definition: imageio.h:353
XPLOR image format is in ASCII:
Definition: xplorio.h:61
static bool is_valid(const void *first_block)
Definition: xplorio.cpp:148
static const char * OUTFORMAT
Definition: xplorio.h:90
int nlines_in_header
Definition: xplorio.h:72
bool is_big_endian
Definition: xplorio.h:70
float cell_beta
Definition: xplorio.h:83
bool is_new_file
Definition: xplorio.h:71
DEFINE_IMAGEIO_FUNC
Definition: xplorio.h:66
float cell_alpha
Definition: xplorio.h:82
static const int FLOAT_SIZE
Definition: xplorio.h:89
float cell_gama
Definition: xplorio.h:84
float apix_y
Definition: xplorio.h:79
float apix_x
Definition: xplorio.h:78
static const string SECTION_MODE
Definition: xplorio.h:86
static const int NFLOAT_PER_LINE
Definition: xplorio.h:87
XplorIO(const string &fname, IOMode rw_mode=READ_ONLY)
Definition: xplorio.cpp:56
float apix_z
Definition: xplorio.h:80
static const int INTEGER_SIZE
Definition: xplorio.h:88
E2Exception class.
Definition: aligner.h:40