X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOCCViewer%2FOCCViewer_ViewFrame.h;h=dbc87d48c3d2178efd794427b2f03863759e4f6c;hb=a02bf230b856e127c34d5b1f7b529f0116fc4123;hp=35935b630b8541e44a5bd257086f4628125de2a0;hpb=a774d4fbdaea509f44006ad9061057e2423d7cdc;p=modules%2Fgui.git diff --git a/src/OCCViewer/OCCViewer_ViewFrame.h b/src/OCCViewer/OCCViewer_ViewFrame.h index 35935b630..dbc87d48c 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.h +++ b/src/OCCViewer/OCCViewer_ViewFrame.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -27,6 +27,7 @@ #include "OCCViewer_ViewWindow.h" #include +#include class SUIT_Desktop; class OCCViewer_Viewer; @@ -45,6 +46,8 @@ public: OCCViewer_ViewWindow* getView( const int ) const; + OCCViewer_ViewWindow* getActiveView() const; + virtual OCCViewer_ViewPort3d* getViewPort() { return getView(MAIN_VIEW)->getViewPort(); } OCCViewer_ViewPort3d* getViewPort(int theView); @@ -69,6 +72,32 @@ public: virtual int interactionStyle() const { return getView(MAIN_VIEW)->interactionStyle(); } virtual void setInteractionStyle( const int i ); + virtual int projectionType() const; + virtual void setProjectionType( int ); + + virtual int stereoType() const; + virtual void setStereoType( const int ); + + virtual int anaglyphFilter() const; + virtual void setAnaglyphFilter( const int ); + + virtual void setStereographicFocus( const int, const double ); + virtual int stereographicFocusType() const; + virtual double stereographicFocusValue() const; + + virtual void setInterocularDistance( const int, const double ); + virtual int interocularDistanceType() const; + virtual double interocularDistanceValue() const; + + virtual bool isReverseStereo() const; + virtual void setReverseStereo( const bool ); + + virtual bool isVSync() const; + virtual void setVSync( const bool ); + + virtual bool isQuadBufferSupport() const; + virtual void setQuadBufferSupport( const bool ); + virtual int zoomingStyle() const { return getView(MAIN_VIEW)->zoomingStyle(); } virtual void setZoomingStyle( const int ); @@ -78,6 +107,8 @@ public: virtual bool isPreselectionEnabled() const { return getView(MAIN_VIEW)->isPreselectionEnabled(); } virtual void enablePreselection( bool ); + virtual bool enableDrawMode( bool ); + virtual void setViewManager( SUIT_ViewManager* ); virtual bool eventFilter(QObject* watched, QEvent* e) { return SUIT_ViewWindow::eventFilter(watched, e); } @@ -88,7 +119,9 @@ public: virtual Qtx::BackgroundData background() const; virtual void setBackground( const Qtx::BackgroundData& ); - virtual void setDropDownButtons( bool ); + virtual void showStaticTrihedron( bool ); + + virtual void setDropDownButtons( bool ); virtual SUIT_CameraProperties cameraProperties(); @@ -118,10 +151,11 @@ public slots: virtual void activateSetRotationGravity() {} virtual void activateSetRotationSelected( double theX, double theY, double theZ ) {} - virtual void activateStartPointSelection() {} + virtual void activateStartPointSelection( TopAbs_ShapeEnum ) {} virtual void updateGravityCoords() {} void onMaximizedView( OCCViewer_ViewWindow*, bool ); + void returnTo3dView(); virtual void onDumpView(); @@ -131,16 +165,19 @@ protected: private slots: void onContextMenuRequested(QContextMenuEvent*); + void onMousePressed(SUIT_ViewWindow*, QMouseEvent*); private: void connectViewSignals( OCCViewer_ViewWindow* theView ); void updateWindowTitle( OCCViewer_ViewWindow* theView ); void createSubViews(); void splitSubViews(); + void setSubViewParams( OCCViewer_ViewWindow* theView ); QList myViews; QGridLayout* myLayout; OCCViewer_ViewWindow* myMaximizedView; + OCCViewer_ViewWindow* myActiveView; int mySplitMode; QList myViewsMode;