#include "StelProjector.hpp" #include "StelPainter.hpp" #include "StelApp.hpp" #include "StelCore.hpp" #include "StelTextureMgr.hpp" #include "StelUtils.hpp" #include "TleTraj.hpp" #include "TleTrajMgr.hpp" #include <QtOpenGL/QtOpenGL> uint TleTraj::timeWindow; StelLocation TleTraj::location; SphericalCap TleTraj::viewportHalfspace = SphericalCap(); uint TleTraj::orbitLineSegments; StelTextureSP TleTraj::hintTexture; TleTraj::TleTraj(): isInitialized(false), isVisible(false), orbitColor(NULL), curTime_utc(0.), lastEvalTime(0.), tle(NULL) { memset(&curData, 0, sizeof(curData)); // qDebug() << "TleTraj inited"; } TleTraj::~TleTraj() { // qDebug() << "TleTraj deinited"; tle = NULL; orbitColor = NULL; }
#include <QTextStream> #include <QRegExp> #include <QDebug> #include <QVariant> #include <QSettings> #include <QByteArray> #include "gsatellite/gTime.hpp" #include <cmath> // static data members - will be initialised in the Satallites class (the StelObjectMgr) float Satellite::showLabels = true; float Satellite::hintBrightness = 0.0; float Satellite::hintScale = 1.f; SphericalCap Satellite::viewportHalfspace = SphericalCap(); int Satellite::orbitLineSegments = 90; int Satellite::orbitLineFadeSegments = 4; int Satellite::orbitLineSegmentDuration = 20; bool Satellite::orbitLinesFlag = true; Satellite::Satellite(const QString& identifier, const QVariantMap& map) : initialized(false), visible(true), newlyAdded(false), orbitValid(false), hintColor(0.0,0.0,0.0), lastUpdated(), pSatWrapper(NULL) { // return initialized if the mandatory fields are not present if (identifier.isEmpty()) return; if (!map.contains("name") || !map.contains("tle1") || !map.contains("tle2")) return;