Luiza  v03-01
GloriaObjectList.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 
4 #ifndef GloriaObjectList_h
5 #define GloriaObjectList_h 1
6 
7 
8 /*
9  * This source code is part of the LUIZA software package for GLORIA.
10  * You are free to use this source files for your own development as
11  * long as it stays in a public research context. You are not
12  * allowed to use it for commercial purpose. You must put this
13  * header with author names in all development based on this file.
14  *
15  */
16 
17 
18 #include "GloriaFitsTable.h"
19 
20 using namespace std;
21 
22 namespace gloria{
23 
25 
36 
37 
38  public:
39 
41 
44 
45 
46  // Data access methods
47  // ===================
48 
50  inline void AddObject(double ccdx, double ccdy, double signal) { AddRow(ccdx,ccdy,signal); };
51 
52 
54  inline void AddObject(double ccdx, double ccdy) { AddRow(ccdx,ccdy); };
55 
56 
58  inline void AddObject() { AddRow(); };
59 
60 
62  inline int GetObjectNumber() {return _nRow;};
63 
65  inline double GetObjectXpos( int iObject)
66  { return ((GloriaTableColumnOf<double> *)_columns.at(0))->At(iObject); };
67 
69  inline double GetObjectYpos( int iObject)
70  { return ((GloriaTableColumnOf<double> *)_columns.at(1))->At(iObject); };
71 
73  inline double GetObjectSignal( int iObject)
74  { return ((GloriaTableColumnOf<double> *)_columns.at(2))->At(iObject); };
75 
77  inline vector<double>& GetXposVector()
78  { return ((GloriaTableColumnOf<double> *)_columns.at(0))->Data(); };
79 
81  inline vector<double>& GetYposVector()
82  { return ((GloriaTableColumnOf<double> *)_columns.at(1))->Data(); };
83 
84 
86  inline vector<double>& GetSignalVector()
87  { return ((GloriaTableColumnOf<double> *)_columns.at(2))->Data(); };
88 
90  inline void SetObjectXpos( int iObject, double ccdx)
91  { ((GloriaTableColumnOf<double> *)_columns.at(0))->At(iObject) = ccdx; };
92 
94  inline void SetObjectYpos( int iObject, double ccdy)
95  { ((GloriaTableColumnOf<double> *)_columns.at(1))->At(iObject) = ccdy; };
96 
98  inline void SetObjectSignal( int iObject, double signal)
99  { ((GloriaTableColumnOf<double> *)_columns.at(2))->At(iObject) = signal; };
100 
102  inline GloriaFitsTable& GetTable() { return *(( GloriaFitsTable *) this ); };
103 
104  } ;
105 
106 
107 }
108 
109 #endif
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
vector< double > & GetSignalVector()
Returns vector of object signal values.
Definition: GloriaObjectList.h:86
int GetObjectNumber()
Returns number of objects in the list.
Definition: GloriaObjectList.h:62
void SetObjectSignal(int iObject, double signal)
Set object signal.
Definition: GloriaObjectList.h:98
double GetObjectYpos(int iObject)
Get object Y position on CCD.
Definition: GloriaObjectList.h:69
Table column class for different content types.
Definition: GloriaTableColumn.h:185
GloriaFitsTable & GetTable()
Returns the table itself.
Definition: GloriaObjectList.h:102
double GetObjectSignal(int iObject)
Get object signal.
Definition: GloriaObjectList.h:73
void SetObjectXpos(int iObject, double ccdx)
Set object X position on CCD.
Definition: GloriaObjectList.h:90
double GetObjectXpos(int iObject)
Get object X position on CCD.
Definition: GloriaObjectList.h:65
void AddObject()
Add new object to the list.
Definition: GloriaObjectList.h:58
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
void AddObject(double ccdx, double ccdy)
Add new object to the list.
Definition: GloriaObjectList.h:54
Class for storing object (star images on CCD) lists.
Definition: GloriaObjectList.h:35
void SetObjectYpos(int iObject, double ccdy)
Set object Y position on CCD.
Definition: GloriaObjectList.h:94
void AddObject(double ccdx, double ccdy, double signal)
Add new object to the list.
Definition: GloriaObjectList.h:50
vector< double > & GetYposVector()
Returns vector of object positions on CCD in Y.
Definition: GloriaObjectList.h:81
vector< double > & GetXposVector()
Returns vector of object positions on CCD in X.
Definition: GloriaObjectList.h:77