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