X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ViewPort.h;h=f22cc9d92808d6a4a1cdb951bf4e5f11e57d5793;hb=fc2acc7bd36f7bff6ec1f5095bf7c44be15e2574;hp=fa4104508146186d34225fd27926d5dbb23209c7;hpb=22ab5a1af17c4bf55fa2b1d5ba4cb2c5ef87ebaa;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ViewPort.h b/src/XGUI/XGUI_ViewPort.h index fa4104508..f22cc9d92 100644 --- a/src/XGUI/XGUI_ViewPort.h +++ b/src/XGUI/XGUI_ViewPort.h @@ -2,7 +2,8 @@ #define XGUI_ViewPort_H #include "XGUI.h" -#include "XGUI_ViewBackground.h" + +#include #include #include @@ -11,20 +12,20 @@ class XGUI_ViewWindow; -class XGUI_EXPORT XGUI_ViewPort: public QWidget +class XGUI_EXPORT XGUI_ViewPort : public QWidget { Q_OBJECT -public: + public: XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer, V3d_TypeOfView theType = V3d_ORTHOGRAPHIC); - ~XGUI_ViewPort(); + virtual ~XGUI_ViewPort(); virtual QPaintEngine* paintEngine() const { return 0; } - QImage dumpView(QRect theRect = QRect(), bool toUpdate = true); + QImage dumpView(unsigned char*& theData, QRect theRect = QRect(), bool toUpdate = true); Handle(V3d_View) getView() const { @@ -52,28 +53,28 @@ public: return myIsAdvancedZoomingEnabled; } - XGUI_ViewBackground background() const + Qtx::BackgroundData background() const { return myBackground; } - void setBackground(const XGUI_ViewBackground& bgData); + void setBackground(const Qtx::BackgroundData& bgData); - void syncronizeWith( const XGUI_ViewPort* ref ); + void syncronizeWith(const XGUI_ViewPort* ref); signals: - void vpChangeBackground(const XGUI_ViewBackground&); + void vpChangeBackground(const Qtx::BackgroundData&); void vpClosed(); void vpMapped(); void vpTransformed(); void vpUpdated(); void resized(); -protected: + protected: virtual void paintEvent(QPaintEvent*); virtual void resizeEvent(QResizeEvent*); -private: + private: Handle(V3d_View) activeView() const { return myActiveView; @@ -94,7 +95,7 @@ private: double myScale; - XGUI_ViewBackground myBackground; + Qtx::BackgroundData myBackground; int myBgImgHeight; int myBgImgWidth; };