2 #include "GEOM_Solver.hxx"
3 #include <TDF_Label.hxx>
4 #include <TFunction_Function.hxx>
5 #include <TFunction_Driver.hxx>
6 #include <TFunction_Logbook.hxx>
7 #include <TFunction_DriverTable.hxx>
8 #include "GEOM_Function.hxx"
9 #include <Standard_GUID.hxx>
11 //=============================================================================
15 //=============================================================================
16 bool GEOM_Solver::Update(int theDocID, TDF_LabelSequence& theSeq)
21 //=============================================================================
25 //=============================================================================
26 bool GEOM_Solver::UpdateObject(Handle(GEOM_Object) theObject, TDF_LabelSequence& theSeq)
31 //=============================================================================
35 //=============================================================================
36 bool GEOM_Solver::ComputeFunction(Handle(GEOM_Function) theFunction)
38 if(theFunction == NULL) return false;
39 Standard_GUID aGUID = theFunction->GetDriverGUID();
41 Handle(TFunction_Driver) aDriver;
42 if(!TFunction_DriverTable::Get()->FindDriver(aGUID, aDriver)) return false;
44 aDriver->Init(theFunction->GetEntry());
46 TFunction_Logbook aLog;
47 if(aDriver->Execute(aLog) == 0) return false;