#define XGUI_ViewPort_H
#include "XGUI.h"
-#include "XGUI_ViewBackground.h"
+
+#include <Qtx.h>
#include <QWidget>
#include <V3d_Viewer.hxx>
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);
virtual ~XGUI_ViewPort();
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
{
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;
double myScale;
- XGUI_ViewBackground myBackground;
+ Qtx::BackgroundData myBackground;
int myBgImgHeight;
int myBgImgWidth;
};