EMAN2
isosurface.h
Go to the documentation of this file.
1/*
2 * Author: Tao Ju, 5/16/2007 <taoju@cs.wustl.edu>, code ported by Grant Tang
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 _ISOSURFACE_H_
33#define _ISOSURFACE_H_
34
35#include "emdata.h"
36
37namespace EMAN
38{
39
40 class Isosurface {
41 public:
43 virtual ~Isosurface(){}
44
48 virtual void set_data(EMData* data) {
49 _emdata = data;
50 }
51
55 virtual void set_surface_value(const float value) = 0;
56
57 virtual float get_surface_value() const = 0;
58
62 virtual void set_sampling(const int size) = 0;
63
64 virtual int get_sampling() const = 0;
65
69 virtual int get_sampling_range() = 0;
70
71 virtual Dict get_isosurface() = 0;
72
73 virtual void setRGBorigin(int x, int y, int z) = 0;
74
75 virtual void setRGBscale(float i, float o) = 0;
76
77 virtual void setRGBmode(int mode) = 0;
78
79 virtual void setCmapData(EMData* data) = 0;
80
81 virtual void setCmapMinMax(float min, float max) = 0;
82
83 protected:
85
87 };
88
89}
90
91#endif
Dict is a dictionary to store <string, EMObject> pair.
Definition: emobject.h:385
EMData stores an image's data and defines core image processing routines.
Definition: emdata.h:82
virtual void setRGBorigin(int x, int y, int z)=0
virtual void setRGBmode(int mode)=0
virtual void set_surface_value(const float value)=0
Set Isosurface value.
virtual ~Isosurface()
Definition: isosurface.h:43
virtual int get_sampling_range()=0
Get the number of feasible samplings.
virtual void setRGBscale(float i, float o)=0
virtual float get_surface_value() const =0
virtual void setCmapData(EMData *data)=0
EMData * _emdata
Definition: isosurface.h:84
virtual int get_sampling() const =0
virtual void set_sampling(const int size)=0
Set Grid Size.
virtual Dict get_isosurface()=0
virtual void set_data(EMData *data)
Sets Voxel data for Isosurface implementation.
Definition: isosurface.h:48
virtual void setCmapMinMax(float min, float max)=0
E2Exception class.
Definition: aligner.h:40
#define y(i, j)
Definition: projector.cpp:1516
#define x(i)
Definition: projector.cpp:1517