]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SHAPERGUI/SHAPERGUI_SalomeViewer.h
Salome HOME
Merge commit 'f709219506b7cd587e94abc5ebed18d629df92d8'
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI_SalomeViewer.h
index dc1e59fe529da1b6b53e5b6176e310fa8011fbe2..d914f7c1d20956981325f35b4fa5c1f3a3cee53d 100644 (file)
@@ -37,6 +37,7 @@ class QKeyEvent;
 class SHAPERGUI_OCCSelector;
 class OCCViewer_Viewer;
 class SUIT_ViewManager;
+class AIS_TextLabel;
 
 /**
 * \ingroup Salome
@@ -168,7 +169,6 @@ Q_OBJECT
   /// \param toActivate - activation flag
   void activateViewer(bool toActivate);
 
-
   // Methods for color scale management
 
   //! Returns True if ColorScale is visible
@@ -208,12 +208,15 @@ Q_OBJECT
   // \param theText is a title
   virtual void setColorScaleTitle(const QString& theText);
 
+  //! Sets the text displayed in right-top corner of the 3D view
+  //! \param theText the text to display, or empty string to erase presentation;
+  //!        the first item is the font name and text color
+  //! \param theSize size of the text font
+  virtual void setText(const ModuleBase_IViewer::TextColor& theText, const int theSize);
+
   virtual void setFitter(OCCViewer_Fitter* theFitter);
   virtual OCCViewer_Fitter* fitter() const;
 
-  // Fit all along Z (perpendicular to display)
-  //virtual void Zfitall();
-
  private slots:
   void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
   void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
@@ -242,6 +245,9 @@ Q_OBJECT
   SHAPERGUI_OCCSelector* mySelector;
   SHAPERGUI_SalomeView* myView;
   bool myIsSelectionChanged;
+  /// Presentation of names of all displayed SHAPER group results in 3D view,
+  /// a text in right-top corner of the view.
+  NCollection_List<Handle(AIS_TextLabel)> myText;
 };