Changeset 9959 in ntrip for trunk/BNC/src/bncfigureppp.cpp
- Timestamp:
- Jan 26, 2023, 11:51:50 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncfigureppp.cpp
r8252 r9959 29 29 * Class: bncFigurePPP 30 30 * 31 * Purpose: 31 * Purpose: 32 32 * 33 33 * Author: Mervart … … 35 35 * Created: 11-Nov-2009 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 60 60 // Destructor 61 61 //////////////////////////////////////////////////////////////////////////// 62 bncFigurePPP::~bncFigurePPP() { 62 bncFigurePPP::~bncFigurePPP() { 63 63 for (int ii = 0; ii < _pos.size(); ++ii) { 64 64 delete _pos[ii]; … … 66 66 } 67 67 68 // 68 // 69 69 //////////////////////////////////////////////////////////////////////////// 70 70 void bncFigurePPP::reset() { … … 77 77 } 78 78 79 // 79 // 80 80 //////////////////////////////////////////////////////////////////////////// 81 81 void bncFigurePPP::slotNewPosition(QByteArray staID, bncTime time, QVector<double> xx){ … … 85 85 bncSettings settings; 86 86 87 if (settings.value("PPP/audioResponse").toString() != "" ) { 87 if (settings.value("PPP/audioResponse").toString() != "" ) { 88 88 _audioResponseThreshold = settings.value("PPP/audioResponse").toDouble(); 89 89 } … … 136 136 } 137 137 138 // 138 // 139 139 //////////////////////////////////////////////////////////////////////////// 140 140 void bncFigurePPP::paintEvent(QPaintEvent *) { … … 157 157 // -------------------------------------------------------- 158 158 _neuMax = 0.0; 159 double neu[_pos.size()][3];159 vector< vector<double> > neu(_pos.size(), vector<double>(3)); 160 160 for (int ii = 0; ii < _pos.size(); ++ii) { 161 161 for (int ic = 0; ic < 3; ++ic) { … … 172 172 _neuMax = 0.151; 173 173 } 174 174 175 175 unsigned hour, minute; 176 176 double second; … … 223 223 if ( xFirstCharTic > pltPoint(_tMin, 0.0).x()) { 224 224 painter.setPen(QColor(Qt::black)); 225 painter.drawText(int(xFirstCharTic), int(pntTic.y() + ww * 1.7), 225 painter.drawText(int(xFirstCharTic), int(pntTic.y() + ww * 1.7), 226 226 strTic); 227 painter.drawLine(pntTic.x(), pntTic.y(), 227 painter.drawLine(pntTic.x(), pntTic.y(), 228 228 pntTic.x(), pntTic.y()+ww/2); 229 229 }
Note:
See TracChangeset
for help on using the changeset viewer.