// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
+
#ifdef WNT
#pragma warning( disable:4786 )
#endif
{
std::string anOperation = anOperators.Value( i ).ToCString();
if ( GetOperatorParameters( anOperation, theParams, theValues ) )
- theOperations.push_back( anOperation );
+ theOperations.push_back( anOperation );
else
nbOperatorErrors++;
}
* GetOperatorParameters
*/
//=============================================================================
-bool GEOMImpl_IHealingOperations::GetOperatorParameters( const std::string theOperation,
- std::list<std::string>& theParams,
- std::list<std::string>& theValues )
+bool GEOMImpl_IHealingOperations::GetOperatorParameters( const std::string theOperation,
+ std::list<std::string>& theParams,
+ std::list<std::string>& theValues )
{
ShHealOper_ShapeProcess aHealer;
int nbParamValueErrors( 0 );
TCollection_AsciiString aParam( (Standard_CString)(*it).c_str() );
TCollection_AsciiString aValue;
if ( aHealer.GetParameter( aParam, aValue ) ) {
- theParams.push_back( aParam.ToCString() );
- theValues.push_back( aValue.ToCString() );
+ theParams.push_back( aParam.ToCString() );
+ theValues.push_back( aValue.ToCString() );
}
else
- nbParamValueErrors++;
+ nbParamValueErrors++;
}
}
else
// set error code, check parameters
SetErrorCode(KO);
- if ( theObject.IsNull() ) // if theFaces.IsNull() - it's OK, it means that ALL faces must be removed..
+ if (theObject.IsNull()) // if theFaces.IsNull() - it's OK, it means that ALL faces must be removed..
return NULL;
Handle(GEOM_Function) aFunction, aLastFunction = theObject->GetLastFunction();
- if(aLastFunction.IsNull()) return NULL; //There is no function which creates an object to be processed
+ if (aLastFunction.IsNull()) return NULL; //There is no function which creates an object to be processed
// Add a new object
- Handle(GEOM_Object) aNewObject = GetEngine()->AddObject( GetDocID(), GEOM_COPY );
+ Handle(GEOM_Object) aNewObject = GetEngine()->AddObject(GetDocID(), GEOM_COPY);
//Add the function
aFunction = aNewObject->AddFunction(GEOMImpl_HealingDriver::GetID(), SUPPRESS_FACES);
- if(aFunction.IsNull()) return NULL;
+ if (aFunction.IsNull()) return NULL;
//Check if the function is set correctly
- if(aFunction->GetDriverGUID() != GEOMImpl_HealingDriver::GetID()) return NULL;
+ if (aFunction->GetDriverGUID() != GEOMImpl_HealingDriver::GetID()) return NULL;
// prepare "data container" class IHealing
- GEOMImpl_IHealing HI(aFunction);
- HI.SetFaces( theFaces );
- HI.SetOriginal( aLastFunction );
+ GEOMImpl_IHealing HI (aFunction);
+ HI.SetFaces(theFaces);
+ HI.SetOriginal(aLastFunction);
//Compute the translation
try {
}
catch (Standard_Failure)
{
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
+ Handle(Standard_Failure) aFail = Standard_Failure::Caught();
SetErrorCode(aFail->GetMessageString());
return NULL;
}
return aNewObject;
}
-
//=============================================================================
/*!
* CloseContour
}
catch (Standard_Failure)
{
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
+ Handle(Standard_Failure) aFail = Standard_Failure::Caught();
SetErrorCode(aFail->GetMessageString());
return NULL;
}
}
catch (Standard_Failure)
{
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
+ Handle(Standard_Failure) aFail = Standard_Failure::Caught();
SetErrorCode(aFail->GetMessageString());
return NULL;
}
}
catch (Standard_Failure)
{
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
+ Handle(Standard_Failure) aFail = Standard_Failure::Caught();
SetErrorCode(aFail->GetMessageString());
return NULL;
}
}
catch (Standard_Failure)
{
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
+ Handle(Standard_Failure) aFail = Standard_Failure::Caught();
SetErrorCode(aFail->GetMessageString());
return NULL;
}
*/
//=============================================================================
bool GEOMImpl_IHealingOperations::GetFreeBoundary (Handle(GEOM_Object) theObject,
- Handle(TColStd_HSequenceOfTransient)& theClosed,
- Handle(TColStd_HSequenceOfTransient)& theOpen )
+ Handle(TColStd_HSequenceOfTransient)& theClosed,
+ Handle(TColStd_HSequenceOfTransient)& theOpen )
{
// set error code, check parameters
SetErrorCode(KO);
}
Handle(GEOM_Function) aFunction, aLastFunction = theObject->GetLastFunction();
- if (aLastFunction.IsNull())
+ if (aLastFunction.IsNull())
return NULL; //There is no function which creates an object to be processed
//Add the function
return NULL; //There is no function which creates an object to be processed
// Add a new object
- Handle(GEOM_Object) aNewObject = GetEngine()->AddObject( GetDocID(), GEOM_COPY );
+ Handle(GEOM_Object) aNewObject = GetEngine()->AddObject( GetDocID(), theObject->GetType() );
//Add the function
aFunction = aNewObject->AddFunction(GEOMImpl_HealingDriver::GetID(), CHANGE_ORIENTATION);
SetErrorCode(OK);
return aNewObject;
}
-