//! Returns true if multiselection is enabled
virtual bool isMultiSelectionEnabled() const;
+ //! Enable or disable draw mode in the viewer
+ virtual bool enableDrawMode(bool isEnabled);
+
//! Perfroms the fit all for the active view
virtual void fitAll();
/// \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);
+ /// \param theTwist the twist angle in radians
+ virtual void setViewProjection( double theX, double theY, double theZ,
+ double theTwist );
/// Set selector
/// \param theSel a selector instance
/// Remove selection filter from the viewer
virtual void removeSelectionFilter(const Handle(SelectMgr_Filter)& theFilter);
+ /// Returns true if the selection filter is set to the viewer
+ /// \param theFilter a selection filter
+ virtual bool hasSelectionFilter(const Handle(SelectMgr_Filter)& theFilter);
+
/// Remove all selection filters from the viewer
virtual void clearSelectionFilters();
/// by mouse drugging. If this is impossible thet it has to return False.
virtual bool canDragByMouse() const;
+ /// Activate or deactivate viewer
+ /// \param toActivate - activation flag
+ void activateViewer(bool toActivate);
+
+ // Fit all along Z (perpendicular to display)
+ virtual void Zfitall();
+
private slots:
void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
void onTryCloseView(SUIT_ViewWindow*);
void onDeleteView(SUIT_ViewWindow*);
void onViewCreated(SUIT_ViewWindow*);
- void onActivated(SUIT_ViewWindow*);
+ void onActivated(SUIT_ViewManager*);
void onSelectionChanged();
void onViewTransformed(OCCViewer_ViewWindow::OperationType);