From 52c2625757faadeb4c21daa6ff2f0558e750bfa2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me?= Date: Mon, 16 Nov 2020 11:08:10 +0100 Subject: [PATCH] #20296 fix naming code --- src/ExchangeAPI/ExchangeAPI_Import.cpp | 10 +++++----- src/ExchangeAPI/ExchangeAPI_Import.h | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) 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 */, -- 2.39.2