Main Page | Class List | Directories | File List | Class Members | File Members

ObitImageDesc.h

Go to the documentation of this file.
00001 /* $Id: ObitImageDesc.h,v 1.7 2007/08/31 17:24:48 bcotton Exp $   */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2003-2007                                          */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;  This program is free software; you can redistribute it and/or    */
00006 /*;  modify it under the terms of the GNU General Public License as   */
00007 /*;  published by the Free Software Foundation; either version 2 of   */
00008 /*;  the License, or (at your option) any later version.              */
00009 /*;                                                                   */
00010 /*;  This program is distributed in the hope that it will be useful,  */
00011 /*;  but WITHOUT ANY WARRANTY; without even the implied warranty of   */
00012 /*;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
00013 /*;  GNU General Public License for more details.                     */
00014 /*;                                                                   */
00015 /*;  You should have received a copy of the GNU General Public        */
00016 /*;  License along with this program; if not, write to the Free       */
00017 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00018 /*;  MA 02139, USA.                                                   */
00019 /*;                                                                   */
00020 /*; Correspondence about this software should be addressed as follows:*/
00021 /*;         Internet email: bcotton@nrao.edu.                         */
00022 /*;         Postal address: William Cotton                            */
00023 /*;                         National Radio Astronomy Observatory      */
00024 /*;                         520 Edgemont Road                         */
00025 /*;                         Charlottesville, VA 22903-2475 USA        */
00026 /*--------------------------------------------------------------------*/
00027 #ifndef OBITIMAGEDESC_H 
00028 #define OBITIMAGEDESC_H 
00029 #include "Obit.h"
00030 #include "ObitErr.h"
00031 #include "ObitInfoList.h"
00032 
00033 /*-------- Obit: Software for the recently deceased ------------------*/
00053 /*----------------- Macroes ---------------------------*/
00059 #define ObitImageDescUnref(in) ObitUnref (in)
00060 
00066 #define ObitImageDescRef(in) ObitRef (in)
00067 
00074 #define ObitImageDescIsA(in) ObitIsA (in, ObitImageDescGetClass())
00075 
00077 #define IM_MAXDIM 7       /* maximum array dimension */
00078 
00079 #define IMLEN_VALUE 41
00080 
00081 #define IMLEN_KEYWORD 21
00082 
00083 /*-------------- enumerations -------------------------------------*/
00088 enum obitCoordType {
00090   OBIT_Equatorial, 
00092   OBIT_Galactic,  
00094   OBIT_Ecliptic
00095 }; /* end enum obitCoordType */
00097 typedef enum obitCoordType ObitCoordType;
00098 /*--------------Class definitions-------------------------------------*/
00104 typedef struct {
00105 #include "ObitImageDescDef.h"  /* actual definitions */
00106 } ObitImageDesc;
00107 
00108 /*---------------Public functions---------------------------*/
00110 void ObitImageDescClassInit (void);
00111 
00113 ObitImageDesc* newObitImageDesc (gchar *name);
00114 
00116 gconstpointer ObitImageDescGetClass (void);
00117 
00119 ObitImageDesc* 
00120 ObitImageDescCopy (ObitImageDesc* in, 
00121                    ObitImageDesc* out, ObitErr *err);
00122 
00124 void ObitImageDescCopyDesc (ObitImageDesc* in, ObitImageDesc* out,
00125                          ObitErr *err);
00126 
00128 ObitImageDesc* ObitImageDescDefault (gchar *name);
00129 
00131 void ObitImageDescCo (ObitImageDesc* in, ObitImageDesc* out,
00132                          ObitErr *err);
00133 
00135 void ObitImageDescIndex (ObitImageDesc* in);
00136 
00138 gboolean ObitImageDescCvtPixel(ObitImageDesc* in, ObitImageDesc* out, 
00139                                gfloat *inPixel, gfloat *outPixel, ObitErr *err);
00140 
00143 gboolean 
00144 ObitImageDescCvtZern(ObitImageDesc* in, ObitImageDesc* out, 
00145                      gint nZern, gfloat *ZCoef,
00146                      gfloat *inPixel, gfloat *outPixel, ObitErr *err);
00147 
00149 void ObitImageDescGetPos(ObitImageDesc* in, gfloat *inPixel, 
00150                          gdouble *pos, ObitErr *err);
00151 
00153 void ObitImageDescGetPixel(ObitImageDesc* in, gdouble *pos, 
00154                            gfloat *outPixel, ObitErr *err);
00155 
00157 gboolean ObitImageDescOverlap(ObitImageDesc *in1, ObitImageDesc *in2, ObitErr *err);
00158 
00160 gfloat ObitImageDescRotate(ObitImageDesc *in);
00161 
00163 void ObitImageDescGetPoint(ObitImageDesc *in, gdouble *RAPnt, gdouble *DecPnt);
00164 
00166 gfloat ObitImageDescAngle (ObitImageDesc *in, gfloat y, gfloat x);
00167 
00168 /*-------------------Class Info--------------------------*/
00174 typedef struct  {
00175 #include "ObitImageDescClassDef.h" /* Actual definition */
00176 } ObitImageDescClassInfo; 
00177 
00178 #endif /* OBITIMAGEDESC_H */ 
00179 

Generated on Fri Aug 31 22:13:04 2007 for Obit by  doxygen 1.3.9.1