#ifndef XGUI_ViewPort_H
#define XGUI_ViewPort_H
+#include "XGUI.h"
#include "XGUI_ViewBackground.h"
#include <QWidget>
class XGUI_ViewWindow;
-class XGUI_ViewPort: public QWidget
+class XGUI_EXPORT XGUI_ViewPort: public QWidget
{
Q_OBJECT
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
{
void fitRect(const QRect& rect);
void startZoomAtPoint(int x, int y);
void zoom(int x0, int y0, int x, int y);
- void fitAll(bool theKeepScale = false, bool theWithZ = true, bool theUpd = true);
+ void fitAll(bool theKeepScale = false, bool theWithZ = true, bool theUpd = true);
void setAdvancedZoomingEnabled(const bool theState)
{
{
return myBackground;
}
+
void setBackground(const XGUI_ViewBackground& bgData);
+ void syncronizeWith( const XGUI_ViewPort* ref );
+
signals:
void vpChangeBackground(const XGUI_ViewBackground&);
void vpClosed();
void vpMapped();
void vpTransformed();
void vpUpdated();
+ void resized();
protected:
virtual void paintEvent(QPaintEvent*);