- Timestamp:
- Jan 1, 2010, 11:52:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncfigureppp.cpp ¶
r2158 r2159 113 113 if (_pos.size() > 1) { 114 114 115 // Find the minimum and maximum values116 // -----------------------------------117 115 _tRange = _pos[_pos.size()-1]->time - _pos[0]->time; // in sec 118 116 _tMin = _pos[0]->time.gpssec(); 119 117 120 _neuMax = 0.0;121 118 // Reference Coordinates 119 // --------------------- 122 120 double xyzRef[3]; 123 121 xyzRef[0] = _pos[0]->xyz[0]; … … 129 127 // North, East and Up differences wrt Reference Coordinates 130 128 // -------------------------------------------------------- 129 _neuMax = 0.0; 131 130 double neu[_pos.size()][3]; 132 131 for (int ii = 0; ii < _pos.size(); ++ii) { … … 153 152 painter.drawLine(pltPoint(_tMin, -_neuMax), pltPoint(_tMin, _neuMax)); 154 153 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 155 171 for (int ii = 1; ii < _pos.size(); ++ii) { 156 172 double t1 = _tMin + (_pos[ii-1]->time - _pos[0]->time);
Note:
See TracChangeset
for help on using the changeset viewer.