EMAN2
df3io.h
Go to the documentation of this file.
1/*
2 * Author: Grant Tang, 08/06/2010 (gtang@bcm.edu)
3 * Copyright (c) 2000-2010 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 __df3io_h__
33#define __df3io_h__
34
35#include "imageio.h"
36#include <cstdio>
37
52namespace EMAN
53{
54 class Df3IO : public ImageIO
55 {
56 public:
57 explicit Df3IO(const string & fname, IOMode rw_mode = READ_ONLY);
58 ~Df3IO();
59
61 static bool is_valid(const void *first_block, off_t file_size = 0);
62 private:
63 unsigned short nx, ny, nz;
65 float rendermin;
66 float rendermax;
68 };
69}
70
71
72#endif //__df3io_h__
Df3IO(const string &fname, IOMode rw_mode=READ_ONLY)
Definition: df3io.cpp:40
float rendermin
Definition: df3io.h:65
unsigned short ny
Definition: df3io.h:63
bool is_new_file
Definition: df3io.h:64
float rendermax
Definition: df3io.h:66
unsigned short nx
Definition: df3io.h:63
static bool is_valid(const void *first_block, off_t file_size=0)
Definition: df3io.cpp:264
DEFINE_IMAGEIO_FUNC
Definition: df3io.h:60
int renderbits
Definition: df3io.h:67
unsigned short nz
Definition: df3io.h:63
ImageIO classes are designed for reading/writing various electron micrography image formats,...
Definition: imageio.h:127
IOMode rw_mode
Definition: imageio.h:353
E2Exception class.
Definition: aligner.h:40