]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_ViewerProxy.h
Salome HOME
Implementation of Fitter
[modules/shaper.git] / src / XGUI / XGUI_ViewerProxy.h
index 384372390d326e7956c66b1924c5b6d0befed289..d87e4fcfaa3a67274d7e3af3fa74cfdadd20862c 100644 (file)
 #include <AIS_Trihedron.hxx>
 #include <AIS_ListOfInteractive.hxx>
 
-#ifndef HAVE_SALOME
+#ifdef HAVE_SALOME
+#include <OCCViewer_ViewModel.h>
+#else
+  #include <AppElements_Viewer.h>
   #include <AppElements_ViewWindow.h>
 #endif
 
+
+
 class XGUI_Workshop;
 /**
  * \ingroup GUI
@@ -150,6 +155,10 @@ Q_OBJECT
   // \param theH is number of intervals
   virtual void setColorScaleTextHeigth(int theH);
 
+  //! Set color of text of color scale
+  // \param theH is number of intervals
+  virtual void setColorScaleTextColor(const QColor& theColor);
+
   //! Set title of color scale
   // \param theText is a title
   virtual void setColorScaleTitle(const QString& theText);
@@ -160,6 +169,16 @@ Q_OBJECT
   // Fit all along Z (perpendicular to display)
   //virtual void Zfitall();
 
+#ifdef HAVE_SALOME
+  void setFitter(OCCViewer_Fitter* theFitter);
+  OCCViewer_Fitter* currentFitter() const;
+#else
+  void setFitter(AppElements_Fitter* theFitter);
+  AppElements_Fitter* currentFitter() const;
+#endif
+
+  void unsetFitter();
+
 signals:
   /// Emits by mouse entering the view port
   void enterViewPort();
@@ -206,7 +225,6 @@ private slots:
   ResultPtr myResult;
   AIS_ListOfInteractive myHighlights;
 
-  bool myShowHighlight;
 };
 
 #endif