Salome HOME
debug of tests for DTM
[modules/hydro.git] / src / HYDROData / HYDROData_Region.cxx
index 0a0604d84e71dbcee638c651714de1a63149b205..698cfc944925502b5744e9ae3adc281bc39b5523 100644 (file)
@@ -44,6 +44,7 @@
 #include <ShapeUpgrade_UnifySameDomain.hxx>
 
 #include <QStringList>
+#include <QColor>
 
 //#define DEB_GET_REGION_SHAPE
 
@@ -433,9 +434,13 @@ QStringList HYDROData_Region::DumpToPython( const QString&       thePyScriptPath
                                                         .arg( aMergeObject->GetObjPyName() );
       }
     }
-
+    // set color
+    QColor zoneColor = aZone->GetColor(Qt::darkBlue);
+    aResList << QString( "%1.SetColor( QColor( %2, %3, %4 ))" )
+                 .arg( aZone->GetObjPyName() ).arg( zoneColor.red() ).arg( zoneColor.green() ).arg( zoneColor.blue() );
     // add zone
     setPythonReferenceObject( thePyScriptPath, theTreatedObjects, aResList, aZone, "AddZone" );
+
   }
 
   return aResList;