Changeset 2157 in ntrip for trunk/BNC/bncfigureppp.cpp


Ignore:
Timestamp:
Jan 1, 2010, 11:37:23 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigureppp.cpp

    r2156 r2157  
    8484}
    8585
    86 //
     86// Coordinate Transformation
    8787////////////////////////////////////////////////////////////////////////////
    8888QPoint bncFigurePPP::pltPoint(double tt, double yy) {
    8989
    90   const static double scale0  = 0.8;
     90  const static double scale0  = 0.9;
    9191  double tScale  = scale0 * _width  / _tRange;
    9292  double yScale  = scale0 * _height / (2.0 * _xyzMax);
    9393  double tOffset = _tRange / 10.0;
     94  double yOffset = _xyzMax / 10.0;
    9495
    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 );
    9798
    9899  return QPoint(tNew, yNew);
Note: See TracChangeset for help on using the changeset viewer.