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_Confluence.cxx
diff --git
a/src/HYDROData/HYDROData_Confluence.cxx
b/src/HYDROData/HYDROData_Confluence.cxx
index 7d898574240a556d7f414c7eba8f52f336323d9e..bf7ee295e82efe209f01863142be6b4a8f8a809b 100644
(file)
--- a/
src/HYDROData/HYDROData_Confluence.cxx
+++ b/
src/HYDROData/HYDROData_Confluence.cxx
@@
-7,8
+7,6
@@
#include <QStringList>
#include <QStringList>
-#define PYTHON_CONFLUENCE_ID "KIND_CONFLUENCE"
-
IMPLEMENT_STANDARD_HANDLE(HYDROData_Confluence,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Confluence,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_HANDLE(HYDROData_Confluence,HYDROData_NaturalObject)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Confluence,HYDROData_NaturalObject)
@@
-24,22
+22,14
@@
HYDROData_Confluence::~HYDROData_Confluence()
QStringList HYDROData_Confluence::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
{
QStringList HYDROData_Confluence::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 aConfluenceName = GetName();
+ // TODO
- aResList << QString( "%1 = %2.CreateObject( %3 );" )
- .arg( aConfluenceName ).arg( aDocName ).arg( PYTHON_CONFLUENCE_ID );
- aResList << QString( "%1.SetName( \"%2\" );" )
- .arg( aConfluenceName ).arg( aConfluenceName );
aResList << QString( "" );
aResList << QString( "" );
-
- // TODO
+ aResList << QString( "%1.Update();" ).arg( aName );
+ aResList << QString( "" );
return aResList;
}
return aResList;
}
@@
-56,5
+46,10
@@
TopoDS_Shape HYDROData_Confluence::GetShape3D() const
return getShape3D();
}
return getShape3D();
}
+void HYDROData_Confluence::UpdateLocalCS( double theDx, double theDy )
+{
+ //TODO
+}
+