vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gesture.h
Go to the documentation of this file.
1 /* gesture - list of mvectors
2  * Ludek Pokluda, xpokluda@fi.muni.cz
3  * v0.0.2 22.11.2002
4  */
5 
6 
7 /*
8  * SPoint - starting position of gesture
9  * RVect - relative vector (it's used for translation to SPoint position
10  */
11 
12 
13 #ifndef _GESTURE_
14 #define _GESTURE_
15 
16 #include <vector>
17 
18 #include "mvect.h"
19 
20 namespace mv{
21 
22 class CGesture{
23  public:
24  CMVect RVect; //relative vector
25  std::vector<CMVect *> Vectors;
26  //std::vector<Point *> Points;
27 // CPoint SPoint; //starting position of gesture
28  gmVector3 SPoint; //starting position of gesture
29  bool Movable; //if SPoint is not absolute = TRUE;
30  double WTime; //wait time (in seconds) before gesture is played (if in forward direction)
31 public:
32 
33 
34  CGesture();
35  CGesture(const CGesture &othergesture);
36  ~CGesture();
37 
38  void addVectOnEnd(CMVect *newmvect);
39  void delVectOnEnd();
40  void delAllVect();
41 
42  void setSPoint(gmVector3 newpoint) {SPoint = newpoint;};
43  gmVector3 getSPoint() {return SPoint;};
44 
45  void setMovable(bool val) {Movable = val;};
46  bool getMovable() {return Movable;};
47 
48  void setWTime(double newwtime) {WTime = newwtime;};
49  double getWTime() {return WTime;};
50 };
51 
52 }
53 
54 #endif