MCPcopy Create free account
hub / github.com/LMMS/lmms / clearInvisible

Method clearInvisible

src/gui/widgets/Graph.cpp:696–703  ·  view source on GitHub ↗

Clear any part of the graph that isn't displayed

Source from the content-addressed store, hash-verified

694
695// Clear any part of the graph that isn't displayed
696void graphModel::clearInvisible()
697{
698 const int graph_length = length();
699 const int full_graph_length = m_samples.size();
700 for( int i = graph_length; i < full_graph_length; i++ )
701 m_samples[i] = 0;
702 emit samplesChanged( graph_length, full_graph_length - 1 );
703}
704
705void graphModel::drawSampleAt( int x, float val )
706{

Callers 6

sinWaveClickedMethod · 0.80
triangleWaveClickedMethod · 0.80
sawWaveClickedMethod · 0.80
sqrWaveClickedMethod · 0.80
noiseWaveClickedMethod · 0.80
usrWaveClickedMethod · 0.80

Calls 2

lengthFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected