- wxStaticText *tittleText = new wxStaticText(panel, -1, _T(" Manual Paint"));
- wxStaticText *txtBrushSize = new wxStaticText(panel, -1, wxString(_T(" Brush size ")));
- _sldBrushSize = new wxSlider(panel, -1, 1, 1, 20, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
- wxStaticText *txtGrayLevel = new wxStaticText(panel, -1, wxString(_T(" Gray Level ")));
- _sldGrayLevel = new wxSlider(panel, -1, 0, 0, 50, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
- _graylevelCtrl = new wxTextCtrl(panel , -1);
+ wxStaticText *tittleText = new wxStaticText(panel, -1, _T(" Manual Paint"));
+ _txtBrushSize = new wxStaticText(panel, -1, wxString(_T(" Brush size ")));
+ _sldBrushSize = new wxSlider(panel, -1, 1, 1, 20, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
+ wxStaticText *txtGrayLevel = new wxStaticText(panel, -1, wxString(_T(" Gray Level ")));
+ _sldGrayLevel = new wxSlider(panel, -1, 0, 0, 50, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
+ _graylevelCtrl = new wxTextCtrl(panel , -1);
+ _txtToleranceFill = new wxStaticText(panel, -1, wxString(_T(" Tolerance fill ")));
+ _sldToleranceFill = new wxSlider(panel, -1, 50, 0, 50, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
+ _tolerancefillCtrl = new wxTextCtrl(panel , -1,_T("50") );
+ _txtDistanceFill = new wxStaticText(panel, -1, wxString(_T(" Distance fill ")));
+ _sldDistanceFill = new wxSlider(panel, -1, 500, 1, 500, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
+ _distancefillCtrl = new wxTextCtrl(panel , -1,_T("500") );
+ //DFCH -- BarSlices
+ double range[2];
+ GetScalarRange( range );
+ int min = 0;//range[0];
+ int max = 6000;//range[1];
+ _mBarSlices = new mBarRange( panel, 70, 65 );
+ _mBarSlices->SetMin( 0 );
+ _mBarSlices->SetStart( 0 );
+ _mBarSlices->SetOrientation( true );
+ _mBarSlices->setActiveStateTo( true );
+ _mBarSlices->setVisibleLabels( true );
+ _mBarSlices->setDeviceEndMargin( 10 );
+ _mBarSlices->setDeviceBlitStart( 10, 10 );
+ _mBarSlices->setIfWithActualDrawed( false );
+ _mBarSlices->setRepresentedValues( min, max );
+ _mBarSlices->SetStart( min );
+ _mBarSlices->SetEnd( max );
+ //DFCH -- End BarSlices