23 #ifndef SG_VLBI_SOURCE_INFO_H
24 #define SG_VLBI_SOURCE_INFO_H
34 #include <QtCore/QString>
35 #include <QtCore/QList>
36 #include <QtCore/QMap>
82 inline double getK()
const {
return k_;};
84 inline double getB()
const {
return b_;};
86 inline double getX()
const {
return x_;};
88 inline double getY()
const {
return y_;};
90 inline void setK(
double d) {
k_ = d;};
92 inline void setB(
double d) {
b_ = d;};
94 inline void setX(
double d) {
x_ = d;};
96 inline void setY(
double d) {
y_ = d;};
98 double tauS(
double f,
double u,
double v)
const;
113 bool estK=
true,
bool estB=
true,
bool estCoo=
true) :
StructModel(k, b, x, y)
151 static double arcLength(
double ra_1,
double dn_1,
double ra_2,
double dn_2);
155 static QString
dn2String(
double dn,
bool mandatorySign=
false);
163 SgVlbiSourceInfo(
int idx=-1,
const QString& key=
"Unknown",
const QString& aka=
"Unknown too");
198 inline double getRA()
const;
202 inline double getDN()
const;
227 inline void setRA(
double ra);
232 inline void setDN(
double dn);
265 double tauS(
double f,
double u,
double v);
336 bool estK=
false,
bool estB=
false,
bool estR=
false)
QMap< QString, SgVlbiSourceInfo * >::iterator SourcesByName_it
QMap< QString, SgVlbiSourceInfo * > SourcesByName
void setEstimatePosition(bool b)
bool getEstimateRatio() const
void setEstimateSpIdx(bool b)
void prepareModel(double u, double v)
bool getEstimatePosition() const
bool getEstimateSpIdx() const
StructModelMp(double k, double b, double x, double y, bool estK=true, bool estB=true, bool estCoo=true)
void setEstimateRatio(bool b)
double tauS(double f, double u, double v) const
StructModel(double k, double b, double x, double y)
const QString & getAprioriComments() const
void addSrcStructPoint(double k, double b, double x, double y, bool estK=false, bool estB=false, bool estR=false)
void setTotalScanNum(int n)
SgVlbiSourceInfo(int idx=-1, const QString &key="Unknown", const QString &aka="Unknown too")
double tauS(double f, double u, double v)
void setAprioriComments(const QString &str)
double getAl2Estd() const
static QString dn2String(double dn, bool mandatorySign=false)
void applyStatusBits(short bitArray)
void setAl2Estd(double l)
bool getIsSsModelEstimating() const
void incTotalScanNum(int n=1)
static const QString className()
double getAl2ExtA() const
int procdScanNum_
total number of scans for the source;
void setProcdScanNum(int n)
int getTotalScanNum() const
double RA_
number of processed scans for the source;
bool isSsModelEstimating_
QList< StructModelMp > & sModel()
int calcNumOfEstimatedSsmParameters() const
const QList< StructModelMp > & sModel() const
bool loadIntermediateResults(QDataStream &)
void incProcdScanNum(int n=1)
void processPartials4SrcStructModel(QList< SgParameter * > ¶meters, double f, double u, double v)
QString aprioriReference_
void clearSrcStructPoints()
void setAprioriReference(const QString &ref)
QList< StructModelMp > sModel_
static QString ra2String(double ra)
bool saveIntermediateResults(QDataStream &) const
void setAl2ExtA(double l)
int getProcdScanNum() const
void setIsSsModelEstimating(bool is)
static double arcLength(double ra_1, double dn_1, double ra_2, double dn_2)
short calculateStatusBits()
@ Attr_TEST
for testing purposes.
@ Attr_APPLY_SSM
apply the source structure model;
@ Attr_HAS_A_PRIORI_POS
indicates that the source has a priori position;
@ Attr_ESTIMATE_VEL
estimate source velocity;
@ Attr_CONSTRAIN_COO
constrain source position in estimation;
@ Attr_NOT_VALID
omit the source;
@ Attr_ESTIMATE_COO
estimate source position;
@ Attr_CONSTRAIN_VEL
constrain source velocity in estimation;
const QString & getAprioriReference() const