#include "GEOM_Solver.hxx" #include #include #include #include #include #include "GEOM_Function.hxx" #include //============================================================================= /*! * 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; }