2 #ifndef XGUI_ViewPort_H
3 #define XGUI_ViewPort_H
6 #include <V3d_Viewer.hxx>
7 #include <V3d_View.hxx>
11 class XGUI_ViewPort : public QWidget
15 XGUI_ViewPort(XGUI_ViewWindow* theParent,
16 const Handle(V3d_Viewer)& theViewer,
17 V3d_TypeOfView theType = V3d_ORTHOGRAPHIC);
20 virtual QPaintEngine* paintEngine() const { return 0; }
24 Handle(V3d_View) getView() const { return activeView(); }
27 //void vpChangeBackground( const Qtx::BackgroundData& );
33 virtual void paintEvent( QPaintEvent* );
34 virtual void resizeEvent( QResizeEvent* );
38 Handle(V3d_View) activeView() const { return myActiveView; }
40 bool mapView( const Handle(V3d_View)& theView);
41 bool setWindow( const Handle(V3d_View)& theView);
42 bool mapped( const Handle(V3d_View)& theView) const;
43 void updateBackground();
44 void attachWindow( const Handle(V3d_View)& theView, const Handle(Aspect_Window)& theWnd);
47 Handle(V3d_View) myOrthoView;
48 Handle(V3d_View) myPerspView;
49 Handle(V3d_View) myActiveView;
51 Handle(Aspect_Window) myWindow;
53 bool myPaintersRedrawing;