+ //! Set size of color scale
+ // \param theW is width relative to current view width
+ // \param theh is height relative to current view heigth
+ virtual void setColorScaleSize(double theW, double theH);
+
+ //! Set range of color scale
+ // \param theMin is a minimal value
+ // \param theMax is a maximal value
+ virtual void setColorScaleRange(double theMin, double theMax);
+
+ //! Set number of intervals of color scale
+ // \param theNb is number of intervals
+ virtual void setColorScaleIntervals(int theNb);
+
+ //! Set text heigth of color scale
+ // \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);
+
+ //! Set color scale parameters according to user preferences and window size
+ void setupColorScale();
+
+ // Fit all along Z (perpendicular to display)
+ //virtual void Zfitall();
+
+#ifdef HAVE_SALOME
+ virtual void setFitter(OCCViewer_Fitter* theFitter);
+ virtual OCCViewer_Fitter* fitter() const;
+#else
+ virtual void setFitter(AppElements_Fitter* theFitter);
+ virtual AppElements_Fitter* fitter() const;
+#endif
+
+signals:
+ /// Emits by mouse entering the view port
+ void enterViewPort();
+
+ /// Emits by mouse leaving of the view port
+ void leaveViewPort();
+
+protected:
+ /// processes the application signals to catch the mouse leaving state of the main window
+ /// \param theObject
+ /// \param theEvent
+ bool eventFilter(QObject *theObject, QEvent *theEvent);
+
+private slots:
+ void onViewCreated(ModuleBase_IViewWindow* theWnd);
+
+#ifndef HAVE_SALOME
+ void onTryCloseView(AppElements_ViewWindow*);
+ void onDeleteView(AppElements_ViewWindow*);
+ void onViewCreated(AppElements_ViewWindow*);
+ void onActivated(AppElements_ViewWindow*);
+
+ void onMousePress(AppElements_ViewWindow*, QMouseEvent*);
+ void onMouseRelease(AppElements_ViewWindow*, QMouseEvent*);
+ void onMouseDoubleClick(AppElements_ViewWindow*, QMouseEvent*);
+ void onMouseMove(AppElements_ViewWindow*, QMouseEvent*);
+
+ void onKeyPress(AppElements_ViewWindow*, QKeyEvent*);
+ void onKeyRelease(AppElements_ViewWindow*, QKeyEvent*);
+
+ void onViewTransformed(AppElements_ViewWindow::OperationType);
+#else
+ void onMouseMove(ModuleBase_IViewWindow*, QMouseEvent*);
+ void onKeyPress(ModuleBase_IViewWindow*, QKeyEvent*);
+ void onKeyRelease(ModuleBase_IViewWindow*, QKeyEvent*);
+#endif