Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OpenGlUnitVector.hpp
Go to the documentation of this file.
1 /*
2  * UnitVector.hpp
3  *
4  * Created on: Jul 5, 2014
5  * Author: nano
6  */
7 
8 #ifndef UNITVECTOR_HPP_
9 #define UNITVECTOR_HPP_
10 
11 #include "../../../common/common.hpp"
12 
13 #include <GL/gl.h>
14 #include <GL/glu.h>
15 #include <iostream>
16 #include <vector>
17 
18 namespace phoxonics {
19 namespace visual {
20 
22 public:
24  virtual ~OpenGlUnitVector();
25 
26  void init();
27  void render(double const mouse_x, double const mouse_y);
28 
29  std::vector<std::vector<double>> charges_from_matrix;
30  std::vector<std::vector<double>> charges_to_matrix;
32 
33 private:
34  void calc_vertexes(double start_x, double start_y, double end_x, double end_y, double& x1,
35  double& y1, double& x2, double& y2);
36 
37  double arrow_lenght_ { 0.4 };
38  double arrow_degrees_ { 0.5 };
39 };
40 
41 } /* namespace visual */
42 } /* namespace phoxonics */
43 
44 #endif /* UNITVECTOR_HPP_ */
Definition: OpenGlUnitVector.hpp:21
virtual ~OpenGlUnitVector()
Definition: OpenGlUnitVector.cpp:16
Definition: CommonBase.hpp:14
std::vector< std::vector< double > > charges_from_matrix
Definition: OpenGlUnitVector.hpp:29
std::vector< std::vector< double > > charges_to_matrix
Definition: OpenGlUnitVector.hpp:30
void init()
Definition: OpenGlUnitVector.cpp:20
phoxonics::common::Matrix matrix
Definition: OpenGlUnitVector.hpp:31
OpenGlUnitVector()
Definition: OpenGlUnitVector.cpp:13
void render(double const mouse_x, double const mouse_y)
Definition: OpenGlUnitVector.cpp:35
Definition: Matrix.hpp:21