EMAN2
libEM
io
icosio.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__icosio_h__
33
#define eman__icosio_h__ 1
34
35
#include "
imageio.h
"
36
37
namespace
EMAN
38
{
39
50
class
IcosIO
:
public
ImageIO
51
{
52
public
:
53
explicit
IcosIO
(
const
string
& fname,
IOMode
rw_mode
=
READ_ONLY
);
54
~IcosIO
();
55
56
DEFINE_IMAGEIO_FUNC
;
57
static
bool
is_valid
(
const
void
*first_block);
58
59
private
:
60
enum
61
{
STAMP
= 72,
STAMP1
= 72,
STAMP2
= 20,
STAMP3
= 20 };
62
63
struct
IcosHeader
64
{
65
int
stamp
;
/* = 72 */
66
char
title
[72];
/* title of the map */
67
int
stamp1
;
/* = 72 */
68
int
stamp2
;
/* = 20 */
69
int
nx
;
/* number of rows */
70
int
ny
;
/* number of columnss */
71
int
nz
;
/* number of sections */
72
float
min
;
73
float
max
;
74
int
stamp3
;
/* = 20 */
75
};
76
77
private
:
78
IcosHeader
icosh
;
79
bool
is_big_endian
;
80
bool
is_new_file
;
81
};
82
83
84
}
85
86
87
#endif
//eman__icosio_h__
EMAN::IcosIO
ICOS file = header + data.
Definition:
icosio.h:51
EMAN::IcosIO::STAMP3
@ STAMP3
Definition:
icosio.h:61
EMAN::IcosIO::STAMP
@ STAMP
Definition:
icosio.h:61
EMAN::IcosIO::STAMP2
@ STAMP2
Definition:
icosio.h:61
EMAN::IcosIO::STAMP1
@ STAMP1
Definition:
icosio.h:61
EMAN::IcosIO::is_big_endian
bool is_big_endian
Definition:
icosio.h:79
EMAN::IcosIO::IcosIO
IcosIO(const string &fname, IOMode rw_mode=READ_ONLY)
Definition:
icosio.cpp:40
EMAN::IcosIO::is_valid
static bool is_valid(const void *first_block)
Definition:
icosio.cpp:80
EMAN::IcosIO::icosh
IcosHeader icosh
Definition:
icosio.h:78
EMAN::IcosIO::~IcosIO
~IcosIO()
Definition:
icosio.cpp:48
EMAN::IcosIO::is_new_file
bool is_new_file
Definition:
icosio.h:80
EMAN::IcosIO::DEFINE_IMAGEIO_FUNC
DEFINE_IMAGEIO_FUNC
Definition:
icosio.h:56
EMAN::ImageIO
ImageIO classes are designed for reading/writing various electron micrography image formats,...
Definition:
imageio.h:127
EMAN::ImageIO::rw_mode
IOMode rw_mode
Definition:
imageio.h:353
EMAN::ImageIO::IOMode
IOMode
Definition:
imageio.h:130
EMAN::ImageIO::READ_ONLY
@ READ_ONLY
Definition:
imageio.h:130
imageio.h
EMAN
E2Exception class.
Definition:
aligner.h:40
EMAN::IcosIO::IcosHeader
Definition:
icosio.h:64
EMAN::IcosIO::IcosHeader::stamp1
int stamp1
Definition:
icosio.h:67
EMAN::IcosIO::IcosHeader::nx
int nx
Definition:
icosio.h:69
EMAN::IcosIO::IcosHeader::title
char title[72]
Definition:
icosio.h:66
EMAN::IcosIO::IcosHeader::max
float max
Definition:
icosio.h:73
EMAN::IcosIO::IcosHeader::stamp3
int stamp3
Definition:
icosio.h:74
EMAN::IcosIO::IcosHeader::ny
int ny
Definition:
icosio.h:70
EMAN::IcosIO::IcosHeader::min
float min
Definition:
icosio.h:72
EMAN::IcosIO::IcosHeader::nz
int nz
Definition:
icosio.h:71
EMAN::IcosIO::IcosHeader::stamp
int stamp
Definition:
icosio.h:65
EMAN::IcosIO::IcosHeader::stamp2
int stamp2
Definition:
icosio.h:68
Generated by
1.9.2