00001 /* $Id: ObitImageFitData.h,v 1.2 2007/08/31 17:24:48 bcotton Exp $ */ 00002 /*--------------------------------------------------------------------*/ 00003 /*; Copyright (C) 2006,2007 */ 00004 /*; Associated Universities, Inc. Washington DC, USA. */ 00005 /*; */ 00006 /*; This program is free software; you can redistribute it and/or */ 00007 /*; modify it under the terms of the GNU General Public License as */ 00008 /*; published by the Free Software Foundation; either version 2 of */ 00009 /*; the License, or (at your option) any later version. */ 00010 /*; */ 00011 /*; This program is distributed in the hope that it will be useful, */ 00012 /*; but WITHOUT ANY WARRANTY; without even the implied warranty of */ 00013 /*; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 00014 /*; GNU General Public License for more details. */ 00015 /*; */ 00016 /*; You should have received a copy of the GNU General Public */ 00017 /*; License along with this program; if not, write to the Free */ 00018 /*; Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, */ 00019 /*; MA 02139, USA. */ 00020 /*; */ 00021 /*;Correspondence about this software should be addressed as follows: */ 00022 /*; Internet email: bcotton@nrao.edu. */ 00023 /*; Postal address: William Cotton */ 00024 /*; National Radio Astronomy Observatory */ 00025 /*; 520 Edgemont Road */ 00026 /*; Charlottesville, VA 22903-2475 USA */ 00027 /*--------------------------------------------------------------------*/ 00028 #ifndef OBITIMAGEFITDATA_H 00029 #define OBITIMAGEFITDATA_H 00030 00031 #include "Obit.h" 00032 #include "ObitErr.h" 00033 #include "ObitImage.h" 00034 #include "ObitFitRegion.h" 00035 00036 /*-------- Obit: Software for the recently deceased ------------------*/ 00055 /*--------------Class definitions-------------------------------------*/ 00057 typedef void (*ObitImageFitDataFuncFP) 00058 (gpointer data, gdouble* p, gdouble *f, gdouble* grad, 00059 gint iflag); 00060 00062 typedef struct { 00063 #include "ObitImageFitDataDef.h" /* this class definition */ 00064 } ObitImageFitData; 00065 00066 /*-------------- enumerations -------------------------------------*/ 00067 /*----------------- Macroes ---------------------------*/ 00073 #define ObitImageFitDataUnref(in) ObitUnref (in) 00074 00080 #define ObitImageFitDataRef(in) ObitRef (in) 00081 00088 #define ObitImageFitDataIsA(in) ObitIsA (in, ObitImageFitDataGetClass()) 00089 00090 /*---------------Public functions---------------------------*/ 00092 void ObitImageFitDataClassInit (void); 00093 00095 ObitImageFitData* newObitImageFitData (gchar* name); 00096 00098 ObitImageFitData* 00099 ObitImageFitDataCreate (gchar* name, ObitFitRegion *reg, ObitInfoList *bounds, 00100 ObitImage *image, ObitErr *err); 00102 typedef ObitImageFitData* 00103 (*ObitImageFitDataCreateFP) (gchar* name, ObitFitRegion *reg, 00104 ObitInfoList *bounds, ObitImage *image, 00105 ObitErr *err); 00106 00108 void ObitImageFitData2Reg (ObitImageFitData* data, ObitFitRegion *reg); 00109 typedef void (*ObitImageFitData2RegFP) 00110 (ObitImageFitData* data, ObitFitRegion *reg); 00111 00113 gconstpointer ObitImageFitDataGetClass (void); 00114 /*----------- ClassInfo Structure -----------------------------------*/ 00120 typedef struct { 00121 #include "ObitImageFitDataClassDef.h" 00122 } ObitImageFitDataClassInfo; 00123 00124 #endif /* OBITIMAGEFITDATA_H */
1.3.9.1