C++ main module for gpm Package  1.0
GPMG_MovieThread.h
Go to the documentation of this file.
1 #ifndef GPMG_MovieThread_H
2 #define GPMG_MovieThread_H
3 
4 
5 #include "GUI_Thread.h"
6 
8 
9 
10 
12 
17 class GPMG_MovieThread : public GUI_Thread {
18 SP_OBJECT(GPMG_MovieThread);
19 
20 // ATTRIBUTES
21 
22 
23 private:
24 
25 
26  int mAction;
27  // ASSOCIATIONS
28 
29  WP::GPMG_MovieGraphDrawPanel mPanel;
30 
31 protected:
32 
33 
34  // CONSTRUCTORS
35 
39 
40 
41  // DESTRUCTORS
42 
43 
46  virtual ~GPMG_MovieThread(void);
47 
48 
49 public:
50  // CONSTRUCTORS
53  static inline SP::GPMG_MovieThread New() {
54  SP::GPMG_MovieThread p(new GPMG_MovieThread(),
55  GPMG_MovieThread::Delete());
56  p->setThis(p);
57  return p;
58  };
59 
60  // METHODS
61 
64  inline void setPanel(SP::GPMG_MovieGraphDrawPanel panel) {
65  mPanel=panel;
66  }
69  inline void setAction(const int& code) {
70  mAction=code;
71  };
72 
73 
74  // GET Methods
77  inline int getAction() const {
78  return mAction;
79  };
80 
81  // OTHERS
84  virtual void threadHasFinished();
85 
88  virtual void threadHasBeenSuspended(const int& i);
89 
90 };
91 #endif
virtual ~GPMG_MovieThread(void)
destroy the parent node
Definition: GPMG_MovieThread.cpp:11
virtual void threadHasBeenSuspended(const int &i)
methods called when the thread has been suspended
Definition: GPMG_MovieThread.cpp:24
this class describes a thread for movie generation
Definition: GPMG_MovieThread.h:17
void setPanel(SP::GPMG_MovieGraphDrawPanel panel)
set the panel
Definition: GPMG_MovieThread.h:64
DEFINE_SPTR(GPMG_MovieGraphDrawPanel)
virtual void threadHasFinished()
methods called when the thread has finished
Definition: GPMG_MovieThread.cpp:15
int getAction() const
get code of movie thread
Definition: GPMG_MovieThread.h:77
void setAction(const int &code)
set action of movie thread
Definition: GPMG_MovieThread.h:69
static SP::GPMG_MovieThread New()
create a GPMG_MovieThread shared pointer
Definition: GPMG_MovieThread.h:53
this class describes a Graph Draw Panel.
Definition: GPMG_MovieGraphDrawPanel.h:17
GPMG_MovieThread()
create a parent menu
Definition: GPMG_MovieThread.cpp:5