GIRAFFE Pipeline Reference Manual

gislitgeometry.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 GISLITGEOMETRY_H
29 #define GISLITGEOMETRY_H
30 
31 #include <cxmacros.h>
32 #include <cxtypes.h>
33 #include <cxstring.h>
34 
35 #include <gitable.h>
36 
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 
53 
54  cpl_matrix *fps;
55  cpl_matrix *rindex;
56 
57  cpl_matrix *xf;
58  cpl_matrix *yf;
59 
63  cxint nsubslits;
64 
71  cpl_matrix **subslits;
72 
73 };
74 
75 typedef struct GiSlitGeometry GiSlitGeometry;
76 
77 
82 
85 
86 void giraffe_slitgeometry_set(GiSlitGeometry *, cxint, cpl_matrix *);
87 cpl_matrix* giraffe_slitgeometry_get(GiSlitGeometry *, cxint);
89 
90 
91 GiTable *giraffe_slitgeometry_load(const GiTable *fibers,
92  const cxchar *filename, cxint pos,
93  const cxchar *tag);
94 cpl_frame *giraffe_slitgeometry_save(const GiTable *slitgeometry);
95 
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* GISLITGEOMETRY_H */
The slit geometry object definition.
GiSlitGeometry * giraffe_slitgeometry_duplicate(GiSlitGeometry *)
Creates a (deep) copy of the GiSlitGeometry.
GiSlitGeometry * giraffe_slitgeometry_new(void)
Create a new GiSlitGeometry.
GiSlitGeometry * giraffe_slitgeometry_create(GiTable *, cxbool)
Create a slit geometry object from a slit geometry table.
cxint giraffe_slitgeometry_size(GiSlitGeometry *)
Returns current size of a GiSlitGeometry.
void giraffe_slitgeometry_resize(GiSlitGeometry *, cxint)
Destructive resize of a GiSlitGeometry.
void giraffe_slitgeometry_delete(GiSlitGeometry *)
Destroy an GiSlitGeometry.
GiTable * giraffe_slitgeometry_load(const GiTable *fibers, const cxchar *filename, cxint pos, const cxchar *tag)
Load the slit geometry information for a given fiber setup.
cpl_matrix * giraffe_slitgeometry_get(GiSlitGeometry *, cxint)
Gets a reference to the matrix at a specified position.
void giraffe_slitgeometry_print(GiSlitGeometry *)
Dump the the information contained in a GiSlitGeometry to output.
cpl_matrix ** subslits
void giraffe_slitgeometry_set(GiSlitGeometry *, cxint, cpl_matrix *)
Sets (copies) a cpl_matrix to a specified position of the GiSlitGeometry.

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