-// Copyright (C) 2016 CEA/DEN, EDF R&D
+// Copyright (C) 2016-2021 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
label = tr("LAB_PROCESSING_INTERPOLATE_FIELD");
icon = tr("ICO_PROCESSING_INTERPOLATE_FIELD");
- actionId = _salomeModule->createStandardAction(label,this, SLOT(OnInterpolateField()),icon,label);
+ actionId = _salomeModule->createStandardAction(label, this, SLOT(OnInterpolateField()),
+ icon, label, FIELDSOp::OpProcessingInterpolation);
_salomeModule->createTool(actionId, processingToolbarId);
_salomeModule->action(actionId)->setIconVisibleInMenu(true);
_salomeModule->createMenu(actionId, processingMenuId);
void
ProcessingController::OnChangeUnderlyingMesh()
{
- // Get the selected objects in the study (SObject). In cas of a
+ // Get the selected objects in the study (SObject). In case of a
// multiple selection, we consider only the first item. At least one
// item must be selected.
SALOME_StudyEditor::SObjectList* listOfSObject = _studyEditor->getSelectedObjects();
if ( fieldSeriesId < 0)
return;
MEDCALC::FieldHandlerList* fieldHandlerList = MEDFactoryClient::getDataManager()->getFieldListInFieldseries(fieldSeriesId);
+ /* todo: always false!
if (fieldHandlerList->length() < 0)
return;
+ */
// For a field series, get the first real field entry:
MEDCALC::FieldHandler fieldHandler = (*fieldHandlerList)[0];
fieldId = fieldHandler.id;
if ( fieldSeriesId < 0)
return;
MEDCALC::FieldHandlerList* fieldHandlerList = MEDFactoryClient::getDataManager()->getFieldListInFieldseries(fieldSeriesId);
+ /* todo: always false!
if (fieldHandlerList->length() < 0)
return;
+ */
// For a field series, get the first real field entry:
MEDCALC::FieldHandler fieldHandler = (*fieldHandlerList)[0];
fieldId = fieldHandler.id;