Salome HOME
Initial implementation of the feature
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI_SalomeViewer.cpp
index aa417a4622f585eb0de4663b7ce0dba1fdc309d4..1f0d054f491c861650d04b4d833b68c8a6739529 100644 (file)
@@ -561,6 +561,14 @@ void SHAPERGUI_SalomeViewer::setColorScaleTextHeigth(int theH)
   }
 }
 
+void SHAPERGUI_SalomeViewer::setColorScaleTextColor(const QColor& theColor)
+{
+  if (mySelector) {
+    Quantity_Color aColor(theColor.redF(), theColor.greenF(), theColor.blueF(), Quantity_TOC_RGB);
+    mySelector->viewer()->getColorScale()->SetColor(aColor);
+  }
+}
+
 void SHAPERGUI_SalomeViewer::setColorScaleTitle(const QString& theText)
 {
   if (mySelector) {
@@ -568,6 +576,18 @@ void SHAPERGUI_SalomeViewer::setColorScaleTitle(const QString& theText)
   }
 }
 
+void SHAPERGUI_SalomeViewer::setFitter(OCCViewer_Fitter* theFitter)
+{
+  if (mySelector)
+    mySelector->viewer()->setFitter(theFitter);
+}
+
+OCCViewer_Fitter* SHAPERGUI_SalomeViewer::fitter() const
+{
+  if (mySelector)
+    return mySelector->viewer()->fitter();
+  return 0;
+}
 
 
 //void SHAPERGUI_SalomeViewer::Zfitall()