| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/qt/TeQtAnimaThread.h
Go to the documentation of this file.

    00001 #ifndef  __TERRALIB_INTERNAL_QTANIMATHREAD_H
    00002 #define  __TERRALIB_INTERNAL_QTANIMATHREAD_H
    00003 #include <qthread.h>
    00004 #include<qdir.h>
    00005 #include<qstringlist.h>
    00006
    00007 #include "../../kernel/TeDefines.h"
    00008
    00009 class TeQtCanvas;
    00010 class Animation;
    00011
    00012 class TL_DLL TeQtAnimaThread : public QThread
    00013 {
    00014 public:
    00015            TeQtAnimaThread(){
    00016                       canvas_ = 0;
    00017                       pause_ = false;
    00018                       stop_ = true;
    00019                       rate_ = 1;
    00020                       frame_ = 0;
    00021                       frames_ = 0;
    00022                       pauseFrame_ = 0;
    00023            }
    00024
    00025            void run();
    00026            void stop();
    00027            void pause(bool b) {pause_ = b;}
    00028            bool pause() {return pause_;}
    00029            void frame(int n) {frame_ = n;}
    00030            int frame() {return frame_;}
    00031            void frames(int n) {frames_ = n;}
    00032            int frames() {return frames_;}
    00033            int pauseFrame(int pf) {return pauseFrame_ = pf;}
    00034            void canvas(TeQtCanvas* c) {canvas_ = c;}
    00035            void setAnimation(Animation* a, QDir d);
    00036            void showFrame(int i);
    00037
    00038 private:
    00039            bool                  pause_;
    00040            bool                  stop_;
    00041            int                              rate_;
    00042            int                              frame_;
    00043            int                              frames_;
    00044            int                              pauseFrame_;
    00045            TeQtCanvas*           canvas_;
    00046            Animation* animation_;
    00047            QDir                  dir_;
    00048            QStringList           fileList_;
    00049            void sleep(int t);
    00050 };
    00051 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines