Changeset 2157 in ntrip for trunk/BNC/bncfigureppp.cpp
- Timestamp:
- Jan 1, 2010, 11:37:23 AM (14 years ago)
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.