@@ -35,7 +35,6 @@ LfpDisplayCanvas::LfpDisplayCanvas(LfpDisplayNode* processor_) :
3535{
3636
3737 nChans = processor->getNumInputs ();
38- nChansVisible = nChans;
3938 std::cout << " Setting num inputs on LfpDisplayCanvas to " << nChans << std::endl;
4039
4140 displayBuffer = processor->getDisplayBufferAddress ();
@@ -1280,7 +1279,6 @@ void LfpDisplayOptions::comboBoxChanged(ComboBox* cb)
12801279 if (cb == channelDisplaySkipSelection)
12811280 {
12821281 const int skipAmt = pow (2 , cb->getSelectedId () - 2 );
1283- std::cout << skipAmt << std::endl;
12841282
12851283 if (skipAmt != 0 ) lfpDisplay->removeAllChildren (); // if show all
12861284
@@ -1407,10 +1405,6 @@ void LfpDisplayOptions::comboBoxChanged(ComboBox* cb)
14071405
14081406// canvas->resized();
14091407 canvas->resizeToChannels ();
1410- std::cout << " Number of visible channels: " << drawableChannels.size () << std::endl;
1411- for (int i = 0 ; i < lfpDisplay->getNumChildComponents (); i++) {
1412- std::cout << ((LfpChannelDisplay*)lfpDisplay->getChildComponent (i))->getChannelNumber () << std::endl;
1413- }
14141408 }
14151409 else if (cb == timebaseSelection)
14161410 {
@@ -1962,6 +1956,7 @@ void LfpDisplay::setNumChannels(int numChannels)
19621956
19631957 channels.clear ();
19641958 channelInfo.clear ();
1959+ drawableChannels.clear ();
19651960
19661961 totalHeight = 0 ;
19671962
@@ -2077,7 +2072,6 @@ void LfpDisplay::resized()
20772072 totalHeight += disp->getChannelHeight ();
20782073
20792074 }
2080- std::cout << " resized to: " << totalHeight << " with drawableChannel size: " << drawableChannels.size () << std::endl;
20812075
20822076 canvas->fullredraw = true ; // issue full redraw
20832077 if (singleChan != -1 )
@@ -2339,7 +2333,6 @@ void LfpDisplay::setChannelsReversed(bool state)
23392333
23402334 // necessary to overwrite lfpChannelBitmap's display
23412335 refresh ();
2342- std::cout << " reversing channels" << std::endl;
23432336}
23442337
23452338
@@ -2575,10 +2568,20 @@ bool LfpDisplay::getEnabledState(int chan)
25752568#pragma mark - LfpChannelDisplay -
25762569// ------------------------------------------------------------------
25772570
2578- LfpChannelDisplay::LfpChannelDisplay (LfpDisplayCanvas* c, LfpDisplay* d, LfpDisplayOptions* o, int channelNumber) :
2579- canvas(c), display(d), options(o), isSelected(false ), chan(channelNumber),
2580- channelOverlap(300 ), channelHeight(40 ), range(1000 .0f ),
2581- isEnabled(true ), inputInverted(false ), canBeInverted(true ), drawMethod(false )
2571+ LfpChannelDisplay::LfpChannelDisplay (LfpDisplayCanvas* c, LfpDisplay* d, LfpDisplayOptions* o, int channelNumber)
2572+ : canvas(c),
2573+ display(d),
2574+ options(o),
2575+ isSelected(false ),
2576+ chan(channelNumber),
2577+ channelOverlap(300 ),
2578+ channelHeight(40 ),
2579+ range(1000 .0f ),
2580+ isEnabled(true ),
2581+ inputInverted(false ),
2582+ canBeInverted(true ),
2583+ drawMethod(false ),
2584+ isHidden(false )
25822585{
25832586
25842587
0 commit comments