X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSTEPPlugin%2FSTEPPlugin_IECallBack.cxx;h=6e1afd2c59787357500dc9d38efc5234d989f6d3;hb=4558fc1b449496ec26465a580259e0132b913644;hp=ac08697164d4d722623bc28b5d16aec8f69ab1a1;hpb=5e3080a50e2ddb3beb564c81d4b8b5aa62fe86e3;p=modules%2Fgeom.git diff --git a/src/STEPPlugin/STEPPlugin_IECallBack.cxx b/src/STEPPlugin/STEPPlugin_IECallBack.cxx index ac0869716..6e1afd2c5 100644 --- a/src/STEPPlugin/STEPPlugin_IECallBack.cxx +++ b/src/STEPPlugin/STEPPlugin_IECallBack.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -46,12 +46,11 @@ STEPPlugin_IECallBack::~STEPPlugin_IECallBack() */ //============================================================================= bool -STEPPlugin_IECallBack::Export( int theDocId, - const Handle(GEOM_Object) theOriginal, - const TCollection_AsciiString& theFileName, - const TCollection_AsciiString& theFormatName ) +STEPPlugin_IECallBack::Export( const Handle(GEOM_Object) theOriginal, + const TCollection_AsciiString& theFileName, + const TCollection_AsciiString& theFormatName ) { - STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine(), theDocId ); + STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() ); const STEPPlugin_IOperations::LengthUnit aUnit = STEPPlugin_IOperations::LengthUnit_Meter; aPluginOperations->ExportSTEP( theOriginal, theFileName, aUnit ); @@ -64,13 +63,12 @@ STEPPlugin_IECallBack::Export( int theDocId, */ //============================================================================= Handle(TColStd_HSequenceOfTransient) -STEPPlugin_IECallBack::Import( int theDocId, - const TCollection_AsciiString& theFormatName, - const TCollection_AsciiString& theFileName ) +STEPPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName, + const TCollection_AsciiString& theFileName ) { - STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine(), theDocId ); + STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() ); bool anIsIgnoreUnits = ( theFormatName == "STEP_SCALE" ) ? true : false; - return aPluginOperations->ImportSTEP( theFileName, anIsIgnoreUnits ); + return aPluginOperations->ImportSTEP( theFileName, anIsIgnoreUnits, false ); } //============================================================================= @@ -79,11 +77,10 @@ STEPPlugin_IECallBack::Import( int theDocId, */ //============================================================================= TCollection_AsciiString -STEPPlugin_IECallBack::ReadValue( int theDocId, - const TCollection_AsciiString& theFileName, - const TCollection_AsciiString& theFormatName, - const TCollection_AsciiString& theParameterName ) +STEPPlugin_IECallBack::ReadValue( const TCollection_AsciiString& theFileName, + const TCollection_AsciiString& theFormatName, + const TCollection_AsciiString& theParameterName ) { - STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine(), theDocId ); + STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() ); return aPluginOperations->ReadValue( theFileName, theParameterName ); }