Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_River.cxx
diff --git
a/src/HYDROData/HYDROData_River.cxx
b/src/HYDROData/HYDROData_River.cxx
index 7193b0e4fbe4951d416f86f1e5799da4c932b7c9..b5958347a486cfe1d89b4d85cde30edd5123b9b9 100644
(file)
--- a/
src/HYDROData/HYDROData_River.cxx
+++ b/
src/HYDROData/HYDROData_River.cxx
@@
-7,8
+7,6
@@
#include <QStringList>
#include <QStringList>
-#define PYTHON_RIVER_ID "KIND_RIVER"
-
IMPLEMENT_STANDARD_HANDLE(HYDROData_River,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_River,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_HANDLE(HYDROData_River,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_River,HYDROData_NaturalObject)
@@
-24,24
+22,27
@@
HYDROData_River::~HYDROData_River()
QStringList HYDROData_River::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
{
QStringList HYDROData_River::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
{
- QStringList aResList;
-
- Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
- 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( "" );
+ aResList << QString( "%1.Update();" ).arg( aName );
+ aResList << QString( "" );
+
+ return aResList;
+}
+void HYDROData_River::Update()
+{
// TODO
// TODO
+ HYDROData_NaturalObject::Update();
+}
- return aResList;
+bool HYDROData_River::IsHas2dPrs() const
+{
+ return true;
}
TopoDS_Shape HYDROData_River::GetTopShape() const
}
TopoDS_Shape HYDROData_River::GetTopShape() const
@@
-56,5
+57,10
@@
TopoDS_Shape HYDROData_River::GetShape3D() const
return getShape3D();
}
return getShape3D();
}
+void HYDROData_River::UpdateLocalCS( double theDx, double theDy )
+{
+ //TODO
+}
+