X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOCCViewer%2FOCCViewer_ViewPort3d.h;h=99428489804e23f294917cd1d090782ed98f5f5f;hb=6be4218f6cc0936dfadd3cfd7d780df51a8d6afa;hp=9f591a3c63aa44196fc5620ed6efb4eb8f5c6289;hpb=c4b058d18583af7f94042eb55d4b933dd222d2e6;p=modules%2Fgui.git diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.h b/src/OCCViewer/OCCViewer_ViewPort3d.h index 9f591a3c6..994284898 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.h +++ b/src/OCCViewer/OCCViewer_ViewPort3d.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 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 @@ -29,13 +29,12 @@ #include "Qtx.h" #include +#include class QColor; class QString; class QRect; -class Handle(V3d_Viewer); - #ifdef WIN32 #pragma warning ( disable:4251 ) #endif @@ -66,8 +65,10 @@ public: // void setActive( V3d_TypeOfView ); virtual bool syncronize( const OCCViewer_ViewPort3d* ); +#if OCC_VERSION_LARGE <= 0x07000000 double getZSize() const; void setZSize( double ); +#endif void getAxialScale( double&, double&, double& ); @@ -94,6 +95,9 @@ public: void showStaticTrihedron( bool ); + void setDefaultCursor( Qt::CursorShape theCursorShape ); + QCursor* getDefaultCursor() const; + signals: void vpChangeBackground( const Qtx::BackgroundData& ); void vpClosed(OCCViewer_ViewPort3d*); @@ -102,6 +106,9 @@ signals: public slots: virtual bool synchronize( OCCViewer_ViewPort* ); +private slots: + void repaintViewAfterMove(); + protected: // EVENTS virtual void paintEvent( QPaintEvent* ); @@ -117,6 +124,7 @@ private: bool setWindow( const Handle(V3d_View)& ); bool mapped( const Handle(V3d_View)& ) const; void updateBackground(); + void setDefaultParams(); private: Handle(V3d_View) myActiveView; @@ -130,6 +138,7 @@ private: Qtx::BackgroundData myBackground; int myBgImgHeight; int myBgImgWidth; + QCursor* myCursor; }; #ifdef WIN32