GIRAFFE Pipeline Reference Manual

gislitgeometry.h
1 /*
2  * This file is part of the GIRAFFE Pipeline
3  * Copyright (C) 2002-2019 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef GISLITGEOMETRY_H
21 #define GISLITGEOMETRY_H
22 
23 #include <cxmacros.h>
24 #include <cxtypes.h>
25 #include <cxstring.h>
26 
27 #include <gitable.h>
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 
45 
46  cpl_matrix *fps;
47  cpl_matrix *rindex;
48 
49  cpl_matrix *xf;
50  cpl_matrix *yf;
51 
55  cxint nsubslits;
56 
63  cpl_matrix **subslits;
64 
65 };
66 
67 typedef struct GiSlitGeometry GiSlitGeometry;
68 
69 
74 
77 
78 void giraffe_slitgeometry_set(GiSlitGeometry *, cxint, cpl_matrix *);
79 cpl_matrix* giraffe_slitgeometry_get(GiSlitGeometry *, cxint);
81 
82 
83 GiTable *giraffe_slitgeometry_load(const GiTable *fibers,
84  const cxchar *filename, cxint pos,
85  const cxchar *tag);
86 cpl_frame *giraffe_slitgeometry_save(const GiTable *slitgeometry);
87 
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif /* GISLITGEOMETRY_H */
void giraffe_slitgeometry_resize(GiSlitGeometry *, cxint)
Destructive resize of a GiSlitGeometry.
void giraffe_slitgeometry_print(GiSlitGeometry *)
Dump the the information contained in a GiSlitGeometry to output.
cxint giraffe_slitgeometry_size(GiSlitGeometry *)
Returns current size of a GiSlitGeometry.
cpl_matrix * giraffe_slitgeometry_get(GiSlitGeometry *, cxint)
Gets a reference to the matrix at a specified position.
GiSlitGeometry * giraffe_slitgeometry_new(void)
Create a new GiSlitGeometry.
void giraffe_slitgeometry_set(GiSlitGeometry *, cxint, cpl_matrix *)
Sets (copies) a cpl_matrix to a specified position of the 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.
GiSlitGeometry * giraffe_slitgeometry_duplicate(GiSlitGeometry *)
Creates a (deep) copy of the GiSlitGeometry.
GiSlitGeometry * giraffe_slitgeometry_create(GiTable *, cxbool)
Create a slit geometry object from a slit geometry table.
void giraffe_slitgeometry_delete(GiSlitGeometry *)
Destroy an GiSlitGeometry.
The slit geometry object definition.
cpl_matrix ** subslits

This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004