GIRAFFE Pipeline Reference Manual

gipsfdata.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GIPSFDATA_H
29 #define GIPSFDATA_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_image.h>
34 
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40  typedef struct GiPsfData GiPsfData;
41 
42 
43  GiPsfData* giraffe_psfdata_new(void);
44  GiPsfData* giraffe_psfdata_create(cxint nfibers, cxint nbins,
45  cxint nx, cxint ny);
46  void giraffe_psfdata_delete(GiPsfData* self);
47  void giraffe_psfdata_clear(GiPsfData* self);
48 
49  void giraffe_psfdata_resize(GiPsfData* self, cxint nfibers, cxint nbins,
50  cxint nx, cxint ny);
51 
52  cxsize giraffe_psfdata_bins(const GiPsfData* self);
53  cxsize giraffe_psfdata_fibers(const GiPsfData* self);
54  cxsize giraffe_psfdata_xsize(const GiPsfData* self);
55  cxsize giraffe_psfdata_ysize(const GiPsfData* self);
56  cxsize giraffe_psfdata_parameters(const GiPsfData* self);
57 
58  cxbool giraffe_psfdata_contains(const GiPsfData* self,
59  const cxchar* name);
60 
61  const cxchar* giraffe_psfdata_get_name(const GiPsfData* self,
62  cxsize position);
63 
64  cxint giraffe_psfdata_set_model(GiPsfData* self, const cxchar* name);
65  const cxchar* giraffe_psfdata_get_model(const GiPsfData* self);
66 
67  cxint giraffe_psfdata_set_bin(GiPsfData* self, cxint fiber, cxint bin,
68  cxdouble position);
69  cxdouble giraffe_psfdata_get_bin(const GiPsfData* self,
70  cxint fiber, cxint bin);
71  const cpl_image* giraffe_psfdata_get_bins(const GiPsfData* self);
72 
73  cxint giraffe_psfdata_set(GiPsfData* self, const cxchar* name,
74  cxint fiber, cxint bin, cxdouble value);
75  cxdouble giraffe_psfdata_get(const GiPsfData* self, const cxchar* name,
76  cxint fiber, cxint bin);
77 
78  cxint giraffe_psfdata_set_data(GiPsfData* self, const cxchar* name,
79  const cpl_image* values);
80  const cpl_image* giraffe_psfdata_get_data(const GiPsfData* self,
81  const cxchar* name);
82 
83  cxint giraffe_psfdata_load(GiPsfData* self, const cxchar* filename);
84  cxint giraffe_psfdata_save(const GiPsfData* self,
85  cpl_propertylist* properties,
86  const cxchar* filename, cxcptr data);
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif /* GIPSFDATA_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.14.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Wed Mar 11 2015 13:19:42 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2004