Elaboradar 0.1
Caricamento in corso...
Ricerca in corso...
Nessun risultato
RadarSite.h
Vai alla documentazione di questo file.
1
6#ifndef RADARELAB_RADAR_SITE_
7#define RADARELAB_RADAR_SITE_
8
9#include <limits>
10#include <iostream>
11#include <string>
12
13using namespace std;
14
15 /*
16 * \brief Class to store radar site coordinate
17 */
18class RadarSite{
19 public:
22// /*! \sa checkLatitude*/
23 double lat_r;
26// /*! \sa checkLongitude*/
27 double lon_r;
30 double height_r = 0. ;
33 double antennaTowerHeight = 0.;
35 std::string source ;
36
37 public:
49 RadarSite() {
50 setRadarCoord(0.,0.,0.,0.);
51 source = "";
52 }
61 RadarSite(double latr,double lonr,double heightr, double aTH, std::string source)
62 : lat_r(latr), lon_r(lonr),height_r(heightr),antennaTowerHeight(aTH), source(source)
63 {
64 }
65
71 RadarSite(const RadarSite& v)
72 {
73 this->lat_r = v.lat_r ;
74 this->lon_r = v.lon_r ;
75 this->height_r = v.height_r ;
76 this->antennaTowerHeight = v.antennaTowerHeight ;
77 this->source = v.source ;
78 }
79
80 void setRadarCoord(float latr,float lonr,float heightr, float aTH) {
81 this->lat_r = latr ;
82 this->lon_r = lonr ;
83 this->height_r = heightr ;
84 this->antennaTowerHeight = aTH ;
85
86 }
87 double getTotalHeight () const { return (this->height_r + this->antennaTowerHeight) ; }
88private:
89};
90
91#endif
92
93