23 #ifndef OCCVIEWER_VIEWPORT3D_H 
   24 #define OCCVIEWER_VIEWPORT3D_H 
   26 #include <Basics_OCCTVersion.hxx> 
   31 #include <V3d_View.hxx> 
   32 #include <V3d_Viewer.hxx> 
   39 #pragma warning ( disable:4251 ) 
   46   friend class OCCViewer_ViewTransformer;
 
   55   Handle(V3d_Viewer)    getViewer() const;
 
   57   virtual 
void          setBackgroundColor( const QColor& 
color);    
 
   58   virtual QColor        backgroundColor() const;                     
 
   59   void                  setBackground( const 
Qtx::BackgroundData& color);
 
   60   Qtx::BackgroundData   background() const;
 
   62   virtual 
int           getBgImgHeight(){
return myBgImgHeight; };
 
   68 #if OCC_VERSION_LARGE <= 0x07000000 
   69   double                getZSize() 
const;
 
   70   void                  setZSize( 
double );
 
   73   void                  getAxialScale( 
double&, 
double&, 
double& );
 
   79   virtual void          pan( 
int , 
int );
 
   81   virtual void          fitRect( 
const QRect& );
 
   82   virtual void          startZoomAtPoint( 
int, 
int );
 
   83   virtual void          zoom( 
int, 
int, 
int, 
int );
 
   84   virtual void          fitAll( 
bool keepScale = 
false, 
bool withZ = 
true, 
bool upd = 
true );
 
   85   virtual void          rotateXY( 
double );
 
   86   virtual void          setAxialScale( 
double, 
double, 
double );
 
   88   virtual void          startRotation( 
int, 
int, 
int, 
const gp_Pnt& );
 
   89   virtual void          rotate( 
int, 
int, 
int, 
const gp_Pnt& );
 
   90   virtual void          endRotation();
 
   96   void                  showStaticTrihedron( 
bool );
 
   98   void                  setDefaultCursor( Qt::CursorShape theCursorShape );
 
   99   QCursor*              getDefaultCursor() 
const;
 
  110   void                  repaintViewAfterMove();
 
  115   virtual void          resizeEvent( QResizeEvent* );
 
  118   virtual void          attachWindow( 
const Handle(V3d_View)&, 
const Handle(Aspect_Window)& );
 
  122   Handle(V3d_View)      inactiveView() const;
 
  123   bool                  mapView( const 
Handle(V3d_View)& );
 
  124   bool                  setWindow( const 
Handle(V3d_View)& );
 
  125   bool                  mapped( const 
Handle(V3d_View)& ) const;
 
  126   void                  updateBackground();
 
  127   void                  setDefaultParams();
 
  130   Handle(V3d_View)      myActiveView;
 
  131 #if OCC_VERSION_LARGE <= 0x06070100 
  132   Handle(V3d_View)      myOrthoView;
 
  133   Handle(V3d_View)      myPerspView;
 
  145 #pragma warning ( default:4251 )