#include <QStringList>
-#define PYTHON_RIVER_ID "KIND_RIVER"
-
IMPLEMENT_STANDARD_HANDLE(HYDROData_River,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_River,HYDROData_NaturalObject)
QStringList HYDROData_River::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
{
- QStringList aResList;
-
- Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( this );
- if ( aDocument.IsNull() )
- return aResList;
+ QStringList aResList = dumpObjectCreation( theTreatedObjects );
+ QString aName = GetObjPyName();
- QString aDocName = aDocument->GetDocPyName();
- QString aRiverName = GetName();
+ // TODO
- aResList << QString( "%1 = %2.CreateObject( %3 );" )
- .arg( aRiverName ).arg( aDocName ).arg( PYTHON_RIVER_ID );
- aResList << QString( "%1.SetName( \"%2\" );" )
- .arg( aRiverName ).arg( aRiverName );
+ aResList << QString( "" );
+ aResList << QString( "%1.Update();" ).arg( aName );
aResList << QString( "" );
+ return aResList;
+}
+
+void HYDROData_River::Update()
+{
// TODO
+ HYDROData_NaturalObject::Update();
+}
- return aResList;
+bool HYDROData_River::IsHas2dPrs() const
+{
+ return true;
}
TopoDS_Shape HYDROData_River::GetTopShape() const