2 #include "HYDROData_Digue.h"
4 #include "HYDROData_Document.h"
6 #include <TopoDS_Shape.hxx>
10 #define PYTHON_DIGUE_ID "KIND_DIGUE"
12 IMPLEMENT_STANDARD_HANDLE(HYDROData_Digue,HYDROData_ArtificialObject)
13 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Digue,HYDROData_ArtificialObject)
16 HYDROData_Digue::HYDROData_Digue()
17 : HYDROData_ArtificialObject()
21 HYDROData_Digue::~HYDROData_Digue()
25 QStringList HYDROData_Digue::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
29 Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( this );
30 if ( aDocument.IsNull() )
33 QString aDocName = aDocument->GetDocPyName();
34 QString aDigueName = GetName();
36 aResList << QString( "%1 = %2.CreateObject( %3 );" )
37 .arg( aDigueName ).arg( aDocName ).arg( PYTHON_DIGUE_ID );
38 aResList << QString( "%1.SetName( \"%2\" );" )
39 .arg( aDigueName ).arg( aDigueName );
40 aResList << QString( "" );
47 TopoDS_Shape HYDROData_Digue::GetTopShape() const
53 TopoDS_Shape HYDROData_Digue::GetShape3D() const