Changeset 2159 in ntrip


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigureppp.cpp

    r2158 r2159  
    113113  if (_pos.size() > 1) {
    114114
    115     // Find the minimum and maximum values
    116     // -----------------------------------
    117115    _tRange = _pos[_pos.size()-1]->time - _pos[0]->time; // in sec
    118116    _tMin   = _pos[0]->time.gpssec();
    119117
    120     _neuMax = 0.0;
    121 
     118    // Reference Coordinates
     119    // ---------------------
    122120    double xyzRef[3];
    123121    xyzRef[0] = _pos[0]->xyz[0];
     
    129127    // North, East and Up differences wrt Reference Coordinates
    130128    // --------------------------------------------------------
     129    _neuMax = 0.0;
    131130    double neu[_pos.size()][3];
    132131    for (int ii = 0; ii < _pos.size(); ++ii) {
     
    153152      painter.drawLine(pltPoint(_tMin, -_neuMax), pltPoint(_tMin, _neuMax));
    154153
     154      if      (_neuMax <  1.0) {
     155        painter.drawText(pltPoint(0,  0.5), " 0.5 m");
     156        painter.drawText(pltPoint(0, -0.5), "-0.5 m");
     157      }
     158      else if (_neuMax <  2.0) {
     159        painter.drawText(pltPoint(0,  1.0), " 1.0 m");
     160        painter.drawText(pltPoint(0, -1.0), "-1.0 m");
     161      }
     162      else if (_neuMax < 10.0) {
     163        painter.drawText(pltPoint(0,  5.0), " 5.0 m");
     164        painter.drawText(pltPoint(0, -5.0), "-5.0 m");
     165      }
     166      else {
     167        painter.drawText(pltPoint(0, 10.0), " 10.0 m");
     168        painter.drawText(pltPoint(0,-10.0), "-10.0 m");
     169      }
     170
    155171      for (int ii = 1; ii < _pos.size(); ++ii) {
    156172        double t1 = _tMin + (_pos[ii-1]->time - _pos[0]->time);
Note: See TracChangeset for help on using the changeset viewer.