OpenIndy-Core  0.2.0.43
direction.h
Go to the documentation of this file.
1 #ifndef DIRECTION_H
2 #define DIRECTION_H
3 
4 #include <QObject>
5 
6 #include "element.h"
7 #include "oivec.h"
8 
9 namespace oi{
10 
11 using namespace math;
12 
14 {
15  Q_OBJECT
16 
17 public:
18  explicit Direction(QObject *parent = 0);
19  explicit Direction(const OiVec &v, QObject *parent = 0);
20  explicit Direction(const double &x, const double &y, const double &z, const double &h = 1.0, QObject *parent = 0);
21 
22  Direction(const Direction &copy, QObject *parent = 0);
23 
24  Direction &operator=(const Direction &copy);
25 
26  ~Direction();
27 
28  //###########################
29  //get or set direction vector
30  //###########################
31 
32  void setVector(const double &x, const double &y, const double &z, const double &h = 1.0);
33  void setVector(const OiVec &v);
34 
35  const OiVec &getVector() const;
36  const OiVec &getVectorH() const;
37 
38 private:
39  OiVec ijk; //vector of size 3 (i, j, k)
40  OiVec ijkH; //vector of size 4 (i, j, k, h)
41 
42 };
43 
44 }
45 
46 #endif // DIRECTION_H
The Element class.
Definition: element.h:17
The OiVec class.
Definition: oivec.h:22
Definition: coordinatesystem.h:15
Definition: direction.h:13
#define OI_CORE_EXPORT
Definition: types.h:11