Changeset 2157 in ntrip
- Timestamp:
- Jan 1, 2010, 11:37:23 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigureppp.cpp
r2156 r2157 84 84 } 85 85 86 // 86 // Coordinate Transformation 87 87 //////////////////////////////////////////////////////////////////////////// 88 88 QPoint bncFigurePPP::pltPoint(double tt, double yy) { 89 89 90 const static double scale0 = 0. 8;90 const static double scale0 = 0.9; 91 91 double tScale = scale0 * _width / _tRange; 92 92 double yScale = scale0 * _height / (2.0 * _xyzMax); 93 93 double tOffset = _tRange / 10.0; 94 double yOffset = _xyzMax / 10.0; 94 95 95 int tNew = int( (tt -_tMin+tOffset) * tScale);96 int yNew = int( (yy +_xyzMax) * yScale);96 int tNew = int( (tt - _tMin + tOffset) * tScale ); 97 int yNew = int( (yy + _xyzMax + yOffset) * yScale ); 97 98 98 99 return QPoint(tNew, yNew); -
trunk/BNC/bncfigureppp.h
r2145 r2157 48 48 }; 49 49 50 QPoint pltPoint(double tt, double yy); 51 50 52 QMutex _mutex; 51 53 QVector<pppPos*> _pos; 54 double _xyzMax; 55 double _tRange; 56 double _tMin; 57 int _width; 58 int _height; 52 59 }; 53 60
Note:
See TracChangeset
for help on using the changeset viewer.