Commits
David Mehringer authored a3400647a1d
205 205 | else { |
206 206 | success = false; |
207 207 | } |
208 208 | return success; |
209 209 | } |
210 210 | |
211 211 | void Histogram::defineLine( int index, QVector<double>& xVals, |
212 212 | QVector<double>& yVals, bool useLogY ) const{ |
213 213 | assert( xVals.size() == 2 ); |
214 214 | assert( yVals.size() == 2 ); |
215 - | int dataCount = xValues.size(); |
215 + | //int dataCount = xValues.size(); |
216 216 | assert( index >= 0 && index < dataCount); |
217 217 | xVals[0] = xValues[index]; |
218 218 | xVals[1] = xValues[index]; |
219 219 | yVals[0] = computeYValue( 0, useLogY ); |
220 220 | yVals[1] = computeYValue( yValues[index], useLogY ); |
221 221 | } |
222 222 | |
223 223 | void Histogram::defineStepHorizontal( int index, QVector<double>& xVals, |
224 224 | QVector<double>& yVals, bool useLogY ) const{ |
225 225 | assert( xVals.size() == 2 ); |
239 239 | xVals[1] = xValues[index]; |
240 240 | } |
241 241 | yVals[0] = computeYValue(yValues[index], useLogY); |
242 242 | yVals[1] = yVals[0]; |
243 243 | } |
244 244 | |
245 245 | void Histogram::defineStepVertical( int index, QVector<double>& xVals, |
246 246 | QVector<double>& yVals, bool useLogY ) const { |
247 247 | assert( xVals.size() == 2 ); |
248 248 | assert( yVals.size() == 2 ); |
249 - | int count = xValues.size(); |
249 + | //int count = xValues.size(); |
250 250 | assert( index >= 0 && index < count ); |
251 251 | if ( index > 0 ){ |
252 252 | xVals[0] = (xValues[index] + xValues[index-1])/2; |
253 253 | } |
254 254 | else { |
255 255 | xVals[0] = xValues[0]; |
256 256 | } |
257 257 | xVals[1] = xVals[0]; |
258 258 | |
259 259 | if ( index > 0 ){ |