Changeset 2145 in ntrip


Ignore:
Timestamp:
Dec 31, 2009, 11:15:50 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigureppp.cpp

    r2142 r2145  
    6161//
    6262////////////////////////////////////////////////////////////////////////////
    63 void bncFigurePPP::slotNewPosition(const bncTime& time, const double* xyz) {
     63void bncFigurePPP::slotNewPosition(bncTime time, double x, double y, double z){
    6464
    6565  const static int MAXNUMPOS = 1000;
     
    7070
    7171  newPos->time   = time;
    72   newPos->xyz[0] = xyz[0];
    73   newPos->xyz[1] = xyz[1];
    74   newPos->xyz[2] = xyz[2];
     72  newPos->xyz[0] = x;
     73  newPos->xyz[1] = y;
     74  newPos->xyz[2] = z;
    7575
    7676  _pos.push_back(newPos);
     77
     78  //// beg test
     79  cout << newPos->time.timestr(1) << " "
     80       << newPos->xyz[0]          << " "
     81       << newPos->xyz[1]          << " "
     82       << newPos->xyz[2]          << endl;
     83  //// end test
    7784
    7885  if (_pos.size() > MAXNUMPOS) {
     
    8794////////////////////////////////////////////////////////////////////////////
    8895void bncFigurePPP::paintEvent(QPaintEvent *) {
     96
     97  cout << "paintEvent" << endl;
    8998
    9099  int xMin =   0;
  • trunk/BNC/bncfigureppp.h

    r2142 r2145  
    3636
    3737 public slots:
    38   void slotNewPosition(const bncTime& time, const double* xyz);
     38  void slotNewPosition(bncTime time, double x, double y, double z);
    3939
    4040 protected:
  • trunk/BNC/bncgetthread.cpp

    r2144 r2145  
    289289    _PPPclient = new bncPPPclient(_staID);
    290290    qRegisterMetaType<bncTime>("bncTime");
    291     connect(_PPPclient, SIGNAL(newPosition(const bncTime&, const double*)),
    292             this, SIGNAL(newPosition(const bncTime&, const double*)));
     291    connect(_PPPclient, SIGNAL(newPosition(bncTime, double, double, double)),
     292            this, SIGNAL(newPosition(bncTime, double, double, double)));
    293293  }
    294294
  • trunk/BNC/bncgetthread.h

    r2142 r2145  
    8282   void newMessage(QByteArray msg, bool showOnScreen);
    8383   void getThreadFinished(QByteArray staID);
    84    void newPosition(const bncTime& time, const double*);
     84   void newPosition(bncTime time, double x, double y, double z);
    8585
    8686 protected:
  • trunk/BNC/bncpppclient.cpp

    r2143 r2145  
    334334  // ---------------
    335335  if (_model->update(_epoData) == success) {
    336     double xyz[3];
    337     xyz[0] = _model->x();
    338     xyz[1] = _model->y();
    339     xyz[2] = _model->z();
    340     emit newPosition(_model->time(), xyz);   
    341   }
    342 }
    343 
     336    emit newPosition(_model->time(), _model->x(), _model->y(), _model->z());
     337  }
     338}
     339
  • trunk/BNC/bncpppclient.h

    r2142 r2145  
    9393
    9494 signals:
    95    void newPosition(const bncTime& time, const double*);
     95  void newPosition(bncTime time, double x, double y, double z);
    9696
    9797 private:
  • trunk/BNC/bncwindow.cpp

    r2142 r2145  
    12221222        connect(thread, SIGNAL(newLatency(QByteArray, double)),
    12231223                _bncFigureLate, SLOT(slotNewLatency(QByteArray, double)));
    1224         disconnect(thread, SIGNAL(newPosition(const bncTime&, const double*)),
    1225                    _bncFigurePPP, SLOT(slotNewPosition(const bncTime&, const double*)));
    1226         connect(thread, SIGNAL(newPosition(const bncTime&, const double*)),
    1227                 _bncFigurePPP, SLOT(slotNewPosition(const bncTime&, const double*)));
     1224        disconnect(thread,
     1225                   SIGNAL(newPosition(bncTime, double, double, double)),
     1226                   _bncFigurePPP,
     1227                   SLOT(slotNewPosition(bncTime, double, double, double)));
     1228        connect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     1229                _bncFigurePPP,
     1230                SLOT(slotNewPosition(bncTime, double, double, double)));
    12281231        break;
    12291232      }
Note: See TracChangeset for help on using the changeset viewer.