00001 00005 /* 00006 * Author: Tao Ju, 5/16/2007 <taoju@cs.wustl.edu>, code ported by Grant Tang 00007 * Copyright (c) 2000-2006 Baylor College of Medicine 00008 * 00009 * This software is issued under a joint BSD/GNU license. You may use the 00010 * source code in this file under either license. However, note that the 00011 * complete EMAN2 and SPARX software packages have some GPL dependencies, 00012 * so you are responsible for compliance with the licenses of these packages 00013 * if you opt to use BSD licensing. The warranty disclaimer below holds 00014 * in either instance. 00015 * 00016 * This complete copyright notice must be included in any revised version of the 00017 * source code. Additional authorship citations may be added, but existing 00018 * author citations must be preserved. 00019 * 00020 * This program is free software; you can redistribute it and/or modify 00021 * it under the terms of the GNU General Public License as published by 00022 * the Free Software Foundation; either version 2 of the License, or 00023 * (at your option) any later version. 00024 * 00025 * This program is distributed in the hope that it will be useful, 00026 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00027 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00028 * GNU General Public License for more details. 00029 * 00030 * You should have received a copy of the GNU General Public License 00031 * along with this program; if not, write to the Free Software 00032 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00033 * 00034 * */ 00035 00036 #ifndef _ISOSURFACE_H_ 00037 #define _ISOSURFACE_H_ 00038 00039 #include "emdata.h" 00040 00041 namespace EMAN 00042 { 00043 00044 class Isosurface { 00045 public: 00046 Isosurface() : _emdata(0), _surf_value(1) {} 00047 virtual ~Isosurface(){} 00048 00052 virtual void set_data(EMData* data) { 00053 _emdata = data; 00054 } 00055 00059 virtual void set_surface_value(const float value) = 0; 00060 00061 virtual float get_surface_value() const = 0; 00062 00066 virtual void set_sampling(const int size) = 0; 00067 00068 virtual int get_sampling() const = 0; 00069 00073 virtual int get_sampling_range() = 0; 00074 00075 virtual Dict get_isosurface() = 0; 00076 00077 virtual void setRGBorigin(int x, int y, int z) = 0; 00078 00079 virtual void setRGBscale(float i, float o) = 0; 00080 00081 virtual void setRGBmode(int mode) = 0; 00082 00083 virtual void setCmapData(EMData* data) = 0; 00084 00085 virtual void setCmapMinMax(float min, float max) = 0; 00086 00087 protected: 00088 EMData * _emdata; 00089 00090 float _surf_value; 00091 }; 00092 00093 } 00094 00095 #endif