00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TRAILGROUP_HPP
00021 #define TRAILGROUP_HPP
00022
00023 #include "VecMath.hpp"
00024 #include "StelCore.hpp"
00025 #include "StelObjectType.hpp"
00026
00027 class StelPainter;
00028
00029 class TrailGroup
00030 {
00031 public:
00032 TrailGroup(float atimeExtent);
00033
00034 void draw(StelCore* core, StelPainter*);
00035
00036
00037 void update();
00038
00039
00040 void setJ2000ToTrailNative(const Mat4d& m);
00041
00042 void addObject(const StelObjectP&, const Vec3f* col=NULL);
00043
00044 void setOpacity(float op) {opacity=op;}
00045
00047 void reset();
00048
00049 private:
00050 class Trail
00051 {
00052 public:
00053 Trail(const StelObjectP& obj, const Vec3f& col) : stelObject(obj), color(col) {;}
00054 StelObjectP stelObject;
00055
00056 QList<Vec3d> posHistory;
00057 Vec3f color;
00058 };
00059
00060 QList<Trail> allTrails;
00061
00062
00063 float timeExtent;
00064
00065 QList<float> times;
00066
00067 Mat4d j2000ToTrailNative;
00068 Mat4d j2000ToTrailNativeInverted;
00069
00070 float opacity;
00071 };
00072
00073 #endif // TRAILMGR_HPP