Ignore:
Timestamp:
12/10/07 18:43:33 (17 years ago)
Author:
mattausch
Message:

worked on visualization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.h

    r2017 r2562  
    55 
    66 
    7 namespace GtpVisibilityPreprocessor { 
     7namespace GtpVisibilityPreprocessor  
     8{ 
    89 
    910class QtGlRendererWidget; 
    1011 
     12 
    1113class QtGlViewer : public QGLWidget 
    1214{ 
    13  
    14   //Q_OBJECT 
     15        //Q_OBJECT 
    1516 
    1617        friend class QtGlRendererWidget; 
     
    1920public: 
    2021        QtGlRendererWidget *mRenderer; 
    21          
     22 
    2223        QtGlViewer(QWidget *parent, 
    23                            QtGlRendererWidget *renderer); 
    24          
    25   virtual ~QtGlViewer(){}; 
    26    
    27   QSize minimumSizeHint() const; 
    28   QSize sizeHint() const; 
    29    
    30   // This method has to be rendefined by all renderer implementations 
    31   virtual void RenderScene(); 
    32    
     24                QtGlRendererWidget *renderer); 
     25 
     26        virtual ~QtGlViewer(){}; 
     27 
     28        QSize minimumSizeHint() const; 
     29        QSize sizeHint() const; 
     30 
     31        // This method has to be rendefined by all renderer implementations 
     32        virtual void RenderScene(); 
     33 
     34        void timerEvent(QTimerEvent *event); 
     35 
    3336protected: 
    34   void initializeGL(); 
    35   void paintGL(); 
    36   void resizeGL(int width, int height); 
    37   void mousePressEvent(QMouseEvent *event); 
    38   void mouseMoveEvent(QMouseEvent *event); 
     37        void initializeGL(); 
     38        void paintGL(); 
     39        void resizeGL(int width, int height); 
     40        void mousePressEvent(QMouseEvent *event); 
     41        void mouseMoveEvent(QMouseEvent *event); 
    3942 
    4043        void keyPressEvent ( QKeyEvent * e ); 
    41          
    42   bool mWireframe; 
     44 
     45        bool mWireframe; 
     46 
     47        int timerId; 
    4348 
    4449private: 
    4550 
    4651        float manipulatorLastQuat[4]; 
    47   float scale; 
    48   QPoint lastPos; 
     52        float scale; 
     53        QPoint lastPos; 
    4954 
    5055}; 
Note: See TracChangeset for help on using the changeset viewer.