00001 /* 00002 Arroyo - software for the simulation of electromagnetic wave propagation 00003 through turbulence and optics. 00004 00005 Copyright (c) 2000-2004 California Institute of Technology. Written by 00006 Dr. Matthew Britton. For comments or questions about this software, 00007 please contact the author at mbritton@astro.caltech.edu. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU General Public License as published by the 00011 Free Software Foundation; either version 2 of the License, or (at your 00012 option) any later version. 00013 00014 This program is provided "as is" and distributed in the hope that it 00015 will be useful, but WITHOUT ANY WARRANTY; without even the implied 00016 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. In no 00017 event shall California Institute of Technology be liable to any party 00018 for direct, indirect, special, incidental or consequential damages, 00019 including lost profits, arising out of the use of this software and its 00020 documentation, even if the California Institute of Technology has been 00021 advised of the possibility of such damage. The California Institute of 00022 Technology has no obligation to provide maintenance, support, updates, 00023 enhancements or modifications. See the GNU General Public License for 00024 more details. 00025 00026 You should have received a copy of the GNU General Public License along 00027 with this program; if not, write to the Free Software 00028 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00029 */ 00030 00031 #ifndef MODAL_EXPANSION_H 00032 #define MODAL_EXPANSION_H 00033 00034 #include <vector> 00035 #include <iostream> 00036 #include "AO_sim_base.h" 00037 00038 namespace Arroyo { 00039 class iofits; 00040 template <typename T> class pixel_array; 00041 } 00042 00043 namespace Arroyo { 00044 00045 class aperture; 00046 00050 00051 class modal_expansion { 00052 00053 public: 00054 00057 modal_expansion(){}; 00058 00061 virtual ~modal_expansion(){}; 00062 00065 virtual void read(const char * filename) = 0; 00066 00069 virtual void read(const Arroyo::iofits & iof) = 0; 00070 00073 virtual void write(const char * filename) const = 0; 00074 00077 virtual void write(Arroyo::iofits & iof) const = 0; 00078 00081 virtual void print(std::ostream & os, const char * prefix = "") const = 0; 00082 00085 virtual Arroyo::pixel_array<double> get_pixel_array(const std::vector<long> & axes, 00086 double pixscale, 00087 const aperture & ap) const = 0; 00088 00091 static modal_expansion * modal_expansion_factory(const char * filename); 00092 00095 static modal_expansion * modal_expansion_factory(const Arroyo::iofits & iof); 00096 00098 static int verbose_level; 00099 00100 }; 00101 00102 } 00103 00104 #endif
1.3.9.1