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
debug of tests for DTM
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_Region.cxx
diff --git
a/src/HYDROData/HYDROData_Region.cxx
b/src/HYDROData/HYDROData_Region.cxx
index 0a0604d84e71dbcee638c651714de1a63149b205..698cfc944925502b5744e9ae3adc281bc39b5523 100644
(file)
--- a/
src/HYDROData/HYDROData_Region.cxx
+++ b/
src/HYDROData/HYDROData_Region.cxx
@@
-44,6
+44,7
@@
#include <ShapeUpgrade_UnifySameDomain.hxx>
#include <QStringList>
#include <ShapeUpgrade_UnifySameDomain.hxx>
#include <QStringList>
+#include <QColor>
//#define DEB_GET_REGION_SHAPE
//#define DEB_GET_REGION_SHAPE
@@
-433,9
+434,13
@@
QStringList HYDROData_Region::DumpToPython( const QString& thePyScriptPath
.arg( aMergeObject->GetObjPyName() );
}
}
.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" );
// add zone
setPythonReferenceObject( thePyScriptPath, theTreatedObjects, aResList, aZone, "AddZone" );
+
}
return aResList;
}
return aResList;