Lines Matching refs:i
120 for( int i = 1; i < m_nValues; i++ ) in findMinX() local
121 if( m_pXValues[ i ] < fMin ) in findMinX()
122 fMin = m_pXValues[ i ]; in findMinX()
133 for( int i = 1; i < m_nValues; i++ ) in findMinY() local
134 if( m_pNewYValues[ i ] < fMin ) in findMinY()
135 fMin = m_pNewYValues[ i ]; in findMinY()
146 for( int i = 1; i < m_nValues; i++ ) in findMaxX() local
147 if( m_pXValues[ i ] > fMax ) in findMaxX()
148 fMax = m_pXValues[ i ]; in findMaxX()
159 for( int i = 1; i < m_nValues; i++ ) in findMaxY() local
160 if( m_pNewYValues[ i ] > fMax ) in findMaxY()
161 fMax = m_pNewYValues[ i ]; in findMaxY()
173 for( int i = 1; i < m_nValues; i++ ) in computeExtremes() local
175 if( m_pXValues[ i ] > m_fMaxX ) in computeExtremes()
176 m_fMaxX = m_pXValues[ i ]; in computeExtremes()
177 else if( m_pXValues[ i ] < m_fMinX ) in computeExtremes()
178 m_fMinX = m_pXValues[ i ]; in computeExtremes()
179 if( m_pOrigYValues[ i ] > m_fMaxY ) in computeExtremes()
180 m_fMaxY = m_pOrigYValues[ i ]; in computeExtremes()
181 else if( m_pOrigYValues[ i ] < m_fMinY ) in computeExtremes()
182 m_fMinY = m_pOrigYValues[ i ]; in computeExtremes()
259 for( int i = 0; i < m_nValues; i++ ) in computeNew() local
261 m_pNewYValues[ i ] = yleft + ( m_pXValues[ i ] - xleft )*factor; in computeNew()
269 int i; in computeNew() local
275 for( i = 0L; i < nSorted; i++ ) in computeNew()
276 transform( m_aHandles[i].maPos, nodex[ i ], nodey[ i ] ); in computeNew()
278 for( i = 0; i < m_nValues; i++ ) in computeNew()
280 double x = m_pXValues[ i ]; in computeNew()
281 m_pNewYValues[ i ] = interpolate( x, nodex, nodey, nSorted ); in computeNew()
284 if( m_pNewYValues[ i ] > m_fMaxY ) in computeNew()
285 m_pNewYValues[ i ] = m_fMaxY; in computeNew()
286 else if( m_pNewYValues[ i ] < m_fMinY ) in computeNew()
287 m_pNewYValues[ i ] = m_fMinY; in computeNew()
306 for( int i = 0; i < nNodes; i++ ) in interpolate() local
308 double sum = pNodeY[ i ]; in interpolate()
311 if( n != i ) in interpolate()
314 sum /= pNodeX[ i ] - pNodeX[ n ]; in interpolate()
382 for( int i = 0; i < m_nValues-1; i++ ) in drawOriginal() local
384 drawLine( m_pXValues[ i ], m_pOrigYValues[ i ], in drawOriginal()
385 m_pXValues[ i+1 ], m_pOrigYValues[ i+1 ] ); in drawOriginal()
398 for( int i = 0; i < m_nValues-1; i++ ) in drawNew() local
400 drawLine( m_pXValues[ i ], m_pNewYValues[ i ], in drawNew()
401 m_pXValues[ i+1 ], m_pNewYValues[ i+1 ] ); in drawNew()
411 for(sal_uInt32 i(0L); i < m_aHandles.size(); i++) in drawHandles() local
413 m_aHandles[i].draw(*this, m_aMarkerBitmap); in drawHandles()
544 for( int i = 0; i < m_nValues; i++ ) in IMPL_LINK() local
546 m_pNewYValues[ i ] = m_fMinY + (m_fMaxY-m_fMinY)/(m_fMaxX-m_fMinX)*(m_pXValues[i]-m_fMinX); in IMPL_LINK()
552 for( int i = 0; i < m_nValues; i++ ) in IMPL_LINK() local
554 m_pNewYValues[ i ] = m_fMaxY - (m_fMaxY-m_fMinY)/(m_fMaxX-m_fMinX)*(m_pXValues[i]-m_fMinX); in IMPL_LINK()
566 for( int i = 0; i < m_nValues; i++ ) in IMPL_LINK() local
568 …m_pNewYValues[ i ] = m_fMinY + (m_fMaxY-m_fMinY)*(std::exp((m_pXValues[i]-m_fMinX)/(m_fMaxX-m_fMin… in IMPL_LINK()
577 for(sal_uInt32 i(0L); i < m_aHandles.size(); i++) in IMPL_LINK() local
581 transform( m_aHandles[i].maPos, x, y ); in IMPL_LINK()
592 if( 0 == i ) in IMPL_LINK()
593 m_aHandles[i].maPos = transform( m_fMinX, m_pNewYValues[ nIndex ] ); in IMPL_LINK()
594 else if( m_aHandles.size() - 1L == i ) in IMPL_LINK()
595 m_aHandles[i].maPos = transform( m_fMaxX, m_pNewYValues[ nIndex ] ); in IMPL_LINK()
597 m_aHandles[i].maPos = transform( m_pXValues[ nIndex ], m_pNewYValues[ nIndex ] ); in IMPL_LINK()