]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fix Volume API to addVolume
authorNicolas RECHATIN <nicolas.rechatin@cea.fr>
Thu, 29 Jul 2021 11:55:01 +0000 (13:55 +0200)
committerNicolas RECHATIN <nicolas.rechatin@cea.fr>
Thu, 29 Jul 2021 11:55:01 +0000 (13:55 +0200)
src/OperaAPI/OperaAPI_Volume.cpp
src/OperaAPI/OperaAPI_Volume.h

index b909268040d00d58c67a4aa1b8d6a643bd6977ff..29f43e84d1f398a4b81c60ca9c6fd55029b7cb6d 100644 (file)
@@ -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<ModelAPI_Document>& thePart,
+VolumePtr addVolume(const std::shared_ptr<ModelAPI_Document>& thePart,
                     const ModelHighAPI_Double& theMedium,
                     const std::list<ModelHighAPI_Selection>& theObjectList)
 {
index cf7f490457c8a36c918d242df323ebad1491f01f..69d0d1593dae28da8018d41136b1a243cfb39bce 100644 (file)
@@ -74,7 +74,7 @@ typedef std::shared_ptr<OperaAPI_Volume> VolumePtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Volume feature.
 OPERAAPI_EXPORT
-VolumePtr Volume(const std::shared_ptr<ModelAPI_Document>& thePart,
+VolumePtr addVolume(const std::shared_ptr<ModelAPI_Document>& thePart,
                  const ModelHighAPI_Double& theMedium,
                  const std::list<ModelHighAPI_Selection>& theObjectList);