Salome HOME
Dump Bathymetry data to python script (Feature #13).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_TwoImagesDlg.cxx
index 8a313ec962575b95f7418d47b41bb9e169fa09bc..145db26b49c28aff3a077a5aa9e9597692d58cdf 100644 (file)
@@ -108,6 +108,13 @@ QString HYDROGUI_TwoImagesDlg::getImageName() const
   return myImageName->text();
 }
 
+void HYDROGUI_TwoImagesDlg::setSelectedImages( const QString& theName1,
+                                               const QString& theName2 )
+{
+  myImage1->SetName( theName1 );
+  myImage2->SetName( theName2 );
+}
+
 bool HYDROGUI_TwoImagesDlg::getSelectedImages( QString& theName1,
                                                QString& theName2 ) const
 {
@@ -115,3 +122,20 @@ bool HYDROGUI_TwoImagesDlg::getSelectedImages( QString& theName1,
   theName2 = myImage2->GetName();
   return !theName1.isEmpty() && !theName2.isEmpty();
 }
+
+void HYDROGUI_TwoImagesDlg::setColor( const QColor& theColor )
+{
+  if( theColor.alpha() == 0 ) // transparent
+    myTransparent->setChecked( true );
+  else
+    myColor->setChecked( true );
+  myColorBox->setColor( theColor );
+}
+
+QColor HYDROGUI_TwoImagesDlg::getColor() const
+{
+  QColor aColor( 255, 255, 255, 0 ); // transparent
+  if( myColor->isChecked() )
+    aColor = myColorBox->color();
+  return aColor;
+}