~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/analyzers/baranalyzer.cpp

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
void BarAnalyzer::resizeEvent( QResizeEvent * e )
47
47
{
48
 
    qDebug() << "Baranalyzer Resized(" << width() << "x" << height() << ")";
49
48
    init();
50
49
}
51
50
 
61
60
    MAX_DOWN = int(0 -(qMax(1, height() / 50)));
62
61
    MAX_UP = int(qMax(1, height() / 25));
63
62
 
64
 
    qDebug() << "BAND_COUNT = " << BAND_COUNT << " MAX_UP = " << MAX_UP << "MAX_DOWN = " << MAX_DOWN;
65
 
 
66
63
    barVector.resize( BAND_COUNT, 0 );
67
64
    roofVector.resize( BAND_COUNT, height() -5 );
68
65
    roofVelocityVector.resize( BAND_COUNT, ROOF_VELOCITY_REDUCTION_FACTOR );
97
94
}
98
95
 
99
96
 
100
 
void BarAnalyzer::analyze( QPainter& p, const Scope &s )
 
97
void BarAnalyzer::analyze( QPainter& p, const Scope &s, bool new_frame)
101
98
{
102
99
    //Analyzer::interpolate( s, m_bands );
103
100