Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / XGUI / XGUI_ViewerProxy.h
index 7d26c492438eda38740cd7fa357cfc6ce5474c8a..2d2864dd4f9a7cafd85d8687f25eca655852a23c 100644 (file)
@@ -13,7 +13,7 @@ class XGUI_ViewWindow;
 * It is reccomennded to use this class in operation for accessing to viewer 
 * functionality instead of direct access to a viewer
 */
-class XGUI_ViewerProxy: public XGUI_SalomeViewer
+class XGUI_EXPORT XGUI_ViewerProxy: public XGUI_SalomeViewer
 {
   Q_OBJECT
 public:
@@ -28,6 +28,25 @@ public:
   //! Returns Vsd_View object from currently active view window
   virtual Handle(V3d_View) activeView() const;
 
+  //! Enable or disable selection in the viewer
+  virtual void enableSelection(bool isEnabled);
+
+  //! Returns true if selection is enabled
+  virtual bool isSelectionEnabled() const;
+
+  //! Enable or disable multiselection in the viewer
+  virtual void enableMultiselection(bool isEnable);
+
+  //! Returns true if multiselection is enabled
+  virtual bool isMultiSelectionEnabled() const;
+
+  //! Sets the view projection
+  /// \param theX the X projection value
+  /// \param theY the Y projection value
+  /// \param theZ the Z projection value
+  void setViewProjection(double theX, double theY, double theZ);
+
+  /// Connects to a viewer according to current environment
   void connectToViewer();
 
 private slots: