~daggerstab/stellarium/comets-asteroids-importer

« back to all changes in this revision

Viewing changes to plugins/Satellites/src/Satellite.hpp

  • Committer: Bogdan Marinov
  • Date: 2010-11-16 19:58:21 UTC
  • mfrom: (4759.10.15 trunk)
  • Revision ID: bogdan.marinov84@gmail.com-20101116195821-ngtg61tompdxyz03
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
#include "StelObject.hpp"
30
30
#include "StelTextureTypes.hpp"
 
31
#include "StelSphereGeometry.hpp"
31
32
 
32
33
#include "StelPainter.hpp"
33
34
#include "gsatellite/gSatTEME.hpp"
36
37
#include "gsatellite/gVector.hpp"
37
38
 
38
39
 
39
 
#define DRAWORBIT_SLOTS_NUMBER    131
40
 
#define DRAWORBIT_FADE_NUMBER     10
41
 
#define DRAWORBIT_SLOT_SECNUMBER  10
42
 
 
43
 
 
44
40
class StelPainter;
45
41
class StelLocation;
46
42
 
95
91
        double getDoppler(double freq) const;
96
92
        static float showLabels;
97
93
 
 
94
        // when the observer location changes we need to
 
95
        void recalculateOrbitLines(void);
 
96
 
98
97
public:
99
 
    void enableDrawOrbit(bool b);
 
98
        void enableDrawOrbit(bool b);
100
99
 
101
100
private:
102
101
        //draw orbits methods
103
102
        void computeOrbitPoints();
104
 
        void drawOrbit(const StelCore* core, StelPainter& painter);
 
103
        void drawOrbit(StelPainter& painter);
105
104
        //! returns 0 - 1.0 for the DRAWORBIT_FADE_NUMBER segments at
106
105
        //! each end of an orbit, with 1 in the middle.
107
106
        float calculateOrbitSegmentIntensity(int segNum);
124
123
        static StelTextureSP hintTexture;
125
124
        static float hintBrightness;
126
125
        static float hintScale;
 
126
        static SphericalCap viewportHalfspace;
 
127
        static int orbitLineSegments;
 
128
        static int orbitLineFadeSegments;
 
129
        static int orbitLineSegmentDuration;
 
130
        static bool orbitLinesFlag;
127
131
 
128
132
        void draw(const StelCore* core, StelPainter& painter, float maxMagHints);
129
133
        void setObserverLocation(StelLocation* loc=NULL);