X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Digue.cxx;h=80149acc3e44b99634d32c8dd9d1851605bfb42f;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=077d7e8b96a3f631ad3263bfe590ea66acfd6400;hpb=3f67da828864f8d27b0aea2828bc8f5c5aaa9808;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Digue.cxx b/src/HYDROData/HYDROData_Digue.cxx index 077d7e8b..80149acc 100644 --- a/src/HYDROData/HYDROData_Digue.cxx +++ b/src/HYDROData/HYDROData_Digue.cxx @@ -5,10 +5,9 @@ #include +#include #include -#define PYTHON_DIGUE_ID "KIND_DIGUE" - IMPLEMENT_STANDARD_HANDLE(HYDROData_Digue,HYDROData_Channel) IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Digue,HYDROData_Channel) @@ -22,27 +21,23 @@ HYDROData_Digue::~HYDROData_Digue() { } -QStringList HYDROData_Digue::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const +QColor HYDROData_Digue::DefaultFillingColor() { - QStringList aResList; - - Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab ); - if ( aDocument.IsNull() ) - return aResList; - - QString aDocName = aDocument->GetDocPyName(); - QString aDigueName = GetName(); - - aResList << QString( "%1 = %2.CreateObject( %3 );" ) - .arg( aDigueName ).arg( aDocName ).arg( PYTHON_DIGUE_ID ); - aResList << QString( "%1.SetName( \"%2\" );" ) - .arg( aDigueName ).arg( aDigueName ); - aResList << QString( "" ); - - // TODO + return QColor( Qt::red ); +} - return aResList; +QColor HYDROData_Digue::DefaultBorderColor() +{ + return QColor( Qt::transparent ); } +QColor HYDROData_Digue::getDefaultFillingColor() const +{ + return DefaultFillingColor(); +} +QColor HYDROData_Digue::getDefaultBorderColor() const +{ + return DefaultBorderColor(); +}