void LedCounter::draw( ci::Vec2f pos ) { int i = 0; for( vector<LedDigit>::iterator p = mLedDigits.begin(); p != mLedDigits.end(); ++p ) { Vec2f posDigit = _getPosDigit( i++, pos ); p->draw( posDigit ); } }
void LedTimer::draw( ci::Vec2f pos ) { for( int i = 0; i < DIGIT_NUMBER; i++ ) { Vec2f posDigit = _getPosDigit( i, pos ); mLedDigits[i].draw( posDigit ); } Vec2f posSeparator = _getPosSeparator( pos ); mLedSeparator.draw( posSeparator ); }