Changeset 2157 in ntrip


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

* empty log message *

Location:
trunk/BNC
Files:
2 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);
  • trunk/BNC/bncfigureppp.h

    r2145 r2157  
    4848  };
    4949
     50  QPoint pltPoint(double tt, double yy);
     51
    5052  QMutex           _mutex;
    5153  QVector<pppPos*> _pos;
     54  double           _xyzMax;
     55  double           _tRange;
     56  double           _tMin;
     57  int              _width;
     58  int              _height;
    5259};
    5360
Note: See TracChangeset for help on using the changeset viewer.