-
#ifndef NewGeom_SalomeViewer_H
#define NewGeom_SalomeViewer_H
#include "NewGeom.h"
-#include <XGUI_SalomeViewer.h>
+#include <ModuleBase_IViewer.h>
class SUIT_ViewWindow;
class QMouseEvent;
class NewGeom_OCCSelector;
-class NewGeom_SalomeViewer: public XGUI_SalomeViewer
+class NewGeom_SalomeViewer : public ModuleBase_IViewer
{
- Q_OBJECT
-public:
+Q_OBJECT
+ public:
NewGeom_SalomeViewer(QObject* theParent);
//! Returns AIS_InteractiveContext from current OCCViewer
//! 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;
+
+ //! Perfroms the fit all for the active view
+ virtual void fitAll();
+
+ //! Sets the view projection
+ /// \param theX the X projection value
+ /// \param theY the Y projection value
+ /// \param theZ the Z projection value
+ virtual void setViewProjection(double theX, double theY, double theZ);
+
void setSelector(NewGeom_OCCSelector* theSel);
- NewGeom_OCCSelector* selector() const { return mySelector; }
+ NewGeom_OCCSelector* selector() const
+ {
+ return mySelector;
+ }
-private slots:
+ private slots:
void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
void onMouseDoubleClick(SUIT_ViewWindow*, QMouseEvent*);
void onKeyPress(SUIT_ViewWindow*, QKeyEvent*);
void onKeyRelease(SUIT_ViewWindow*, QKeyEvent*);
-
-private:
+ private:
NewGeom_OCCSelector* mySelector;
};