From: Jérôme Date: Mon, 16 Nov 2020 10:08:10 +0000 (+0100) Subject: #20296 fix naming code X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52c2625757faadeb4c21daa6ff2f0558e750bfa2;p=modules%2Fshaper.git #20296 fix naming code --- diff --git a/src/ExchangeAPI/ExchangeAPI_Import.cpp b/src/ExchangeAPI/ExchangeAPI_Import.cpp index 550d3384e..84a949a67 100644 --- a/src/ExchangeAPI/ExchangeAPI_Import.cpp +++ b/src/ExchangeAPI/ExchangeAPI_Import.cpp @@ -71,9 +71,9 @@ void ExchangeAPI_Import::setParameters(const std::string & theFilePath, const bool theMaterials, const bool theColor) { - fillAttribute(theFilePath, mystepfilePath); - fillAttribute("STEP", myimporttype); - fillAttribute(theScalInterUnits, myscalinterunits); + fillAttribute(theFilePath, mystepFilePath); + fillAttribute("STEP", myimportType); + fillAttribute(theScalInterUnits, myscalInterUnits); fillAttribute(theMaterials,mymaterials); fillAttribute(theColor,mycolors); execute(); @@ -88,7 +88,7 @@ void ExchangeAPI_Import::setFilePath(const std::string & theFilePath) setParameters(theFilePath,true,false,false); }else{ fillAttribute(theFilePath, myfilePath); - fillAttribute(anExtension, myimporttype); + fillAttribute(anExtension, myimportType); execute(); } } @@ -123,7 +123,7 @@ void ExchangeAPI_Import::dump(ModelHighAPI_Dumper& theDumper) const theDumper << aBase << " = model.addImportStep(" << aPartName << ", \"" << aFilePath << "\"" ; - theDumper << ", " << scalinterunits()->value() + theDumper << ", " << scalInterUnits()->value() << ", " << materials()->value() << ", " << colors()->value() << ")"<< std::endl; }else{ diff --git a/src/ExchangeAPI/ExchangeAPI_Import.h b/src/ExchangeAPI/ExchangeAPI_Import.h index 9cb21b70c..302489918 100644 --- a/src/ExchangeAPI/ExchangeAPI_Import.h +++ b/src/ExchangeAPI/ExchangeAPI_Import.h @@ -62,11 +62,11 @@ public: INTERFACE_6(ExchangePlugin_ImportFeature::ID(), filePath, ExchangePlugin_ImportFeature::FILE_PATH_ID(), ModelAPI_AttributeString, /** File path */, - importtype, ExchangePlugin_ImportFeature::IMPORT_TYPE_ID(), + importType, ExchangePlugin_ImportFeature::IMPORT_TYPE_ID(), ModelAPI_AttributeString, /**import type */, - stepfilePath, ExchangePlugin_ImportFeature::STEP_FILE_PATH_ID(), + stepFilePath, ExchangePlugin_ImportFeature::STEP_FILE_PATH_ID(), ModelAPI_AttributeString, /**step File path */, - scalinterunits, ExchangePlugin_ImportFeature::STEP_SCALE_INTER_UNITS_ID(), + scalInterUnits, ExchangePlugin_ImportFeature::STEP_SCALE_INTER_UNITS_ID(), ModelAPI_AttributeBoolean, /** Scale internationals units */, materials, ExchangePlugin_ImportFeature::STEP_MATERIALS_ID(), ModelAPI_AttributeBoolean, /** Materials */,