mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-06 23:00:36 +05:00
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
|
|
||
|
#include "GEOM_Solver.hxx"
|
||
|
#include <TDF_Label.hxx>
|
||
|
#include <TFunction_Function.hxx>
|
||
|
#include <TFunction_Driver.hxx>
|
||
|
#include <TFunction_Logbook.hxx>
|
||
|
#include <TFunction_DriverTable.hxx>
|
||
|
#include "GEOM_Function.hxx"
|
||
|
#include <Standard_GUID.hxx>
|
||
|
|
||
|
//=============================================================================
|
||
|
/*!
|
||
|
* Update
|
||
|
*/
|
||
|
//=============================================================================
|
||
|
bool GEOM_Solver::Update(int theDocID, TDF_LabelSequence& theSeq)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
//=============================================================================
|
||
|
/*!
|
||
|
* UpdateObject
|
||
|
*/
|
||
|
//=============================================================================
|
||
|
bool GEOM_Solver::UpdateObject(Handle(GEOM_Object) theObject, TDF_LabelSequence& theSeq)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
//=============================================================================
|
||
|
/*!
|
||
|
* ComputeFunction
|
||
|
*/
|
||
|
//=============================================================================
|
||
|
bool GEOM_Solver::ComputeFunction(Handle(GEOM_Function) theFunction)
|
||
|
{
|
||
|
if(theFunction == NULL) return false;
|
||
|
Standard_GUID aGUID = theFunction->GetDriverGUID();
|
||
|
|
||
|
Handle(TFunction_Driver) aDriver;
|
||
|
if(!TFunction_DriverTable::Get()->FindDriver(aGUID, aDriver)) return false;
|
||
|
|
||
|
aDriver->Init(theFunction->GetEntry());
|
||
|
|
||
|
TFunction_Logbook aLog;
|
||
|
if(aDriver->Execute(aLog) == 0) return false;
|
||
|
|
||
|
return true;
|
||
|
}
|