23 #ifndef OCCVIEWER_VIEWPORT_H 
   24 #define OCCVIEWER_VIEWPORT_H 
   33 #include <Aspect_Window.hxx> 
   41 #pragma warning ( disable:4251 ) 
   59   void                           setSketchingEnabled( 
bool );
 
   60   bool                           isSketchingEnabled() 
const;
 
   61   void                           setTransformEnabled( 
bool );
 
   62   bool                           isTransformEnabled() 
const;
 
   64   virtual QColor                 backgroundColor() 
const;
 
   65   virtual void                   setBackgroundColor( 
const QColor& );
 
   67   void                           redrawPainters();
 
   69   virtual void                   onUpdate();
 
   71   virtual QPaintEngine*          paintEngine() 
const;
 
   75   void                           selectVisualId();
 
   78   virtual void                   paintEvent( QPaintEvent *);
 
   79   virtual void                   mouseMoveEvent( QMouseEvent *);
 
   80   virtual void                   mouseReleaseEvent( QMouseEvent *);
 
   81   virtual void                   mousePressEvent( QMouseEvent *);
 
   82   virtual void                   mouseDoubleClickEvent( QMouseEvent *);
 
   83   virtual void                   keyPressEvent( QKeyEvent *);
 
   84   virtual void                   keyReleaseEvent( QKeyEvent *);
 
   87   virtual void                   reset() = 0;
 
   88   virtual void                   pan( 
int, 
int ) = 0;
 
   89   virtual void                   setCenter( 
int, 
int ) = 0;
 
   90   virtual void                   fitRect( 
const QRect& ) = 0;
 
   91   virtual void                   zoom( 
int, 
int, 
int, 
int ) = 0;
 
   92   virtual void                   fitAll( 
bool keepScale = 
false, 
bool withZ = 
true, 
bool upd = 
true ) = 0;
 
   98   virtual void                   onChangeBackground();
 
  101   void                           vpKeyEvent( QKeyEvent* );
 
  102   void                           vpMouseEvent( QMouseEvent* );
 
  103   void                           vpDrawExternal( QPainter* );
 
  104   void                           vpChangeBGColor( QColor );
 
  112   Handle(Aspect_Window)          myWindow;
 
  113   bool                           myEnableSketching;
 
  114   bool                           myEnableTransform;
 
  115   bool                           myPaintersRedrawing; 
 
  123 #pragma warning ( default:4251 )