- enum OperationType{ NOTHING, PANVIEW, ZOOMVIEW, ROTATE,
- PANGLOBAL, WINDOWFIT, FITALLVIEW, RESETVIEW,
- FRONTVIEW, BACKVIEW, TOPVIEW, BOTTOMVIEW, LEFTVIEW, RIGHTVIEW,
- CLOCKWISEVIEW, ANTICLOCKWISEVIEW };
+ //! Types of viewer operations
+ enum OperationType
+ {
+ NOTHING,
+ PANVIEW,
+ ZOOMVIEW,
+ ROTATE,
+ PANGLOBAL,
+ WINDOWFIT,
+ FITALLVIEW,
+ RESETVIEW,
+ FRONTVIEW,
+ BACKVIEW,
+ TOPVIEW,
+ BOTTOMVIEW,
+ LEFTVIEW,
+ RIGHTVIEW,
+ CLOCKWISEVIEW,
+ ANTICLOCKWISEVIEW
+ };
+
+ XGUI_ViewWindow(XGUI_Viewer* theViewer, V3d_TypeOfView theType);
+
+ virtual ~XGUI_ViewWindow();
+
+ //! Returns view port object
+ XGUI_ViewPort* viewPort() const
+ {
+ return myViewPort;
+ }
+
+ //! Retrurns current interaction style
+ XGUI::InteractionStyle interactionStyle() const
+ {
+ return myInteractionStyle;
+ }
+
+ //! Disable or enable given operation type
+ void setTransformEnabled(const OperationType, const bool);
+
+ //! Returns true if the given operation type is enabled
+ bool transformEnabled(const OperationType) const;
+
+ //! Returns View background object
+ XGUI_ViewBackground background() const;
+
+ //! Sets View background object
+ void setBackground(const XGUI_ViewBackground& theBackground);
+
+ //! Returns true if the current view window can be closed
+ bool closable() const { return myClosable; }
+
+ //! Sets the current view window closable or not
+ void setClosable( const bool isClosable ) { myClosable = isClosable; }
+
+ //! Enable/Disable drawing of ribbon line
+ void enableDrawMode(bool toEnable) { myEnableDrawMode = toEnable; }
+
+ //! Returns true if ribbon line drawing enabled
+ bool isDrawModeEnabled() const { return myEnableDrawMode; }