Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (47 sloc) 1.52 KB
/*
* File: SatViewer.h
* Author: Ivan Ryazanov
*
* Created on April 13, 2019, 9:45 PM
*/
#ifndef SATVIEWER_H
#define SATVIEWER_H
#include "locutils/Location.h"
#include "satutils/Satellite.h"
#include "zrvutils/ZrvIoList.h"
class SatViewer : public QObject {
Q_OBJECT
public:
SatViewer();
SatViewer(const SatViewer& orig);
virtual ~SatViewer();
static void aerv(const double loc_rg[], const double sat_rg[], double aerv[]);
void appendSatellite(Satellite* sat);
void appendLocation(Location* loc);
void removeSatellite(Satellite *sat);
void removeLocation(Location *loc);
void clearSatellites();
void clearLocations();
void setCurrentSatelliteIndex(long unsigned int index);
void setCurrentLocationIndex(long unsigned int index);
void setCurrentSatellite(Satellite* sat);
void setCurrentLocation(Location* loc);
void setTime(double value);
const std::list<Satellite *> &satellites() { return m_satellites; }
const std::list<Location *> &locations() { return m_locations; }
Satellite *currentSatellite();
Location *currentLocation();
ZrvIoList *ioList() { return &m_ioList; }
double time() { return m_time; }
signals:
void currentChanged(Satellite *sat, Location *loc, double *time);
void timeChanged();
private:
std::list<Satellite *> m_satellites;
std::list<Location *> m_locations;
Satellite *m_currentSatellite;
Location *m_currentLocation;
double m_time;
ZrvIoList m_ioList;
};
#endif /* SATVIEWER_H */
You can’t perform that action at this time.