2 #include "HYDROData_Calculation.h"
4 #include "HYDROData_Document.h"
8 #define PYTHON_BATHYMETRY_ID "KIND_CALCULATION"
10 IMPLEMENT_STANDARD_HANDLE(HYDROData_Calculation, HYDROData_Object)
11 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Calculation, HYDROData_Object)
13 HYDROData_Calculation::HYDROData_Calculation()
17 HYDROData_Calculation::~HYDROData_Calculation()
21 QStringList HYDROData_Calculation::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
25 Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( this );
26 if ( aDocument.IsNull() )
29 QString aDocName = aDocument->GetDocPyName();
30 QString aCalculName = GetName();
32 aResList << QString( "%1 = %2.CreateObject( %3 );" )
33 .arg( aCalculName ).arg( aDocName ).arg( PYTHON_BATHYMETRY_ID );
34 aResList << QString( "%1.SetName( \"%2\" );" )
35 .arg( aCalculName ).arg( aCalculName );