- if (!_thresholdGo)
- {
- interfMainPanel::getInstance()->onThreshold();
- _thresholdGo=true;
- }
- else
- {
- interfMainPanel::getInstance()->onThresholdRemove( );
- _thresholdGo=false;
- }
-}
-
-void interfThresholdPanel::onThresholdStop()
-{
- if (_thresholdGo)
- {
- interfMainPanel::getInstance()->onThresholdRemove( );
- _thresholdGo=false;
- }
-}
-
-void interfThresholdPanel::onThresholdInstantChange(double range[])
-{
- range[0] = _mBarThreshold->GetStart();
- range[1] = _mBarThreshold->GetEnd();
-}
-
-void interfThresholdPanel::onThresholdInterpolation(wxCommandEvent& event)
-{
- interfMainPanel::getInstance()->onThresholdInterpolation(_interpolationCheckBox->GetValue());
-}
-
-void interfThresholdPanel::onChangeOpacity(wxScrollEvent& event)
-{
- int opacity = _opacity->GetValue();
- interfMainPanel::getInstance()->onThresholdChangeOpacity(opacity);
-}
-
-
-BEGIN_EVENT_TABLE(interfMirrorPanel, wxPanel)
- EVT_SCROLL(interfMirrorPanel :: onChangeWidth)
-END_EVENT_TABLE()
-
-BEGIN_EVENT_TABLE(interfThresholdPanel, wxPanel)
- EVT_COMMAND(wxID_ANY, wxEVT_TSBAR_START, interfThresholdPanel :: onThresholdChange)
- EVT_COMMAND(wxID_ANY, wxEVT_TSBAR_END, interfThresholdPanel :: onThresholdChange)
- EVT_COMMAND(wxID_ANY, wxEVT_TSBAR_MOVED, interfThresholdPanel :: onThresholdChange)
- EVT_SCROLL(interfThresholdPanel :: onChangeOpacity)
-END_EVENT_TABLE()
-
-