From: Nicolas RECHATIN Date: Thu, 29 Jul 2021 11:55:01 +0000 (+0200) Subject: fix Volume API to addVolume X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43e8fb7e1ff9a54b3ce92bbcaf23c7899efce3e8;p=modules%2Fshaper.git fix Volume API to addVolume --- diff --git a/src/OperaAPI/OperaAPI_Volume.cpp b/src/OperaAPI/OperaAPI_Volume.cpp index b90926804..29f43e84d 100644 --- a/src/OperaAPI/OperaAPI_Volume.cpp +++ b/src/OperaAPI/OperaAPI_Volume.cpp @@ -67,7 +67,7 @@ void OperaAPI_Volume::dump(ModelHighAPI_Dumper& theDumper) const const std::string& aDocName = theDumper.name(aBase->document()); AttributeStringPtr anAttrMedium = aBase->string(OperaPlugin_Volume::MEDIUM()); - theDumper << aBase << " = model.Volume(" << aDocName << ", " << anAttrMedium << ", "; + theDumper << aBase << " = model.addVolume(" << aDocName << ", " << anAttrMedium << ", "; AttributeSelectionListPtr anAttrList = aBase->selectionList(OperaPlugin_Volume::VOLUME_LIST_ID()); if (anAttrList->isWholeResultAllowed() && !anAttrList->selectionType().empty()) @@ -79,7 +79,7 @@ void OperaAPI_Volume::dump(ModelHighAPI_Dumper& theDumper) const } //================================================================================================== -VolumePtr Volume(const std::shared_ptr& thePart, +VolumePtr addVolume(const std::shared_ptr& thePart, const ModelHighAPI_Double& theMedium, const std::list& theObjectList) { diff --git a/src/OperaAPI/OperaAPI_Volume.h b/src/OperaAPI/OperaAPI_Volume.h index cf7f49045..69d0d1593 100644 --- a/src/OperaAPI/OperaAPI_Volume.h +++ b/src/OperaAPI/OperaAPI_Volume.h @@ -74,7 +74,7 @@ typedef std::shared_ptr VolumePtr; /// \ingroup CPPHighAPI /// \brief Create Volume feature. OPERAAPI_EXPORT -VolumePtr Volume(const std::shared_ptr& thePart, +VolumePtr addVolume(const std::shared_ptr& thePart, const ModelHighAPI_Double& theMedium, const std::list& theObjectList);