src/morphology_filter/src/groupbox.cpp
////////////////////////////////////////////////////////////////////////////////
//
// Observation-related member functions.
//
Observation-related member functions.
Observation - related member functions .
void GroupBox::update()
{
  if (param_manager_) {
    ObservedParameterManager::Operation op = param_manager_->operation();
    auto it = find_if(operation_mapping.begin(), operation_mapping.end(),
                      [op](const pair<decltype(operation_mapping)::key_type,
                           decltype(operation_mapping)::mapped_type>& pr)
                      { return pr.second == op; });
    assert(it != operation_mapping.end());
    op_combo_->setCurrentText(it->first);
    iter_spinbox_->setValue(param_manager_->numIterations());
  }
}
void GroupBox :: update ( ) { if ( param_manager_ ) { ObservedParameterManager :: Operation op = param_manager_ -> operation ( ) ; auto it = find_if ( operation_mapping . begin ( ) , operation_mapping . end ( ) , [ op ] ( const pair < decltype ( operation_mapping ) :: key_type , decltype ( operation_mapping ) :: mapped_type > & pr ) { return pr . second == op ; } ) ; assert ( it != operation_mapping . end ( ) ) ; op_combo_ -> setCurrentText ( it -> first ) ; iter_spinbox_ -> setValue ( param_manager_ -> numIterations ( ) ) ; } }
Observation-related member functions.
Observation - related member functions .
// Update op_combo_. // Update iter_spinbox_.