double HistogramDialogComboBox::GetWindowLevel()
{
- if(_sliderwindowlevel != NULL)
- {
- return _sliderwindowlevel->GetValue();
- }
+ double val(0.0);
+ if(_sliderwindowlevel != NULL)
+ val= _sliderwindowlevel->GetValue();
+ return val; // JPR
}
double HistogramDialogComboBox::GetColorLevel()
{
- if(_slidercolor != NULL)
- {
- return _slidercolor->GetValue();
- }
+ double val(0.0);
+ if(_slidercolor != NULL)
+ val = _slidercolor->GetValue();
+ return val; // JPR
}
void HistogramDialogComboBox::OnColorLevelChanged(wxCommandEvent& event)
{
- _slidercolor->GetValue();
- wxCommandEvent newevent(wxEVT_SCROLL_THUMBTRACK,this->GetId());
- ProcessEvent(newevent);
+ _slidercolor->GetValue();
+ wxCommandEvent newevent(wxEVT_SCROLL_THUMBTRACK,this->GetId());
+ ProcessEvent(newevent);
}
void HistogramDialogComboBox::OnWindowLevelChanged(wxCommandEvent& event)
{
- _sliderwindowlevel->GetValue();
- wxCommandEvent newevent(wxEVT_SCROLL_THUMBTRACK,this->GetId());
- ProcessEvent(newevent);
+ _sliderwindowlevel->GetValue();
+ wxCommandEvent newevent(wxEVT_SCROLL_THUMBTRACK,this->GetId());
+ ProcessEvent(newevent);
}
void HistogramDialogComboBox::setImageData(vtkImageData* img)
{
- _maxgreyvalue = img->GetScalarRange()[1];
- _img = img;
- setSlidersValue();
+ _maxgreyvalue = img->GetScalarRange()[1];
+ _img = img;
+ setSlidersValue();
}
void HistogramDialogComboBox::setSlidersValue()