GlobeEngine
UnitCircles.h
Go to the documentation of this file.
1 #ifndef ExoViewer_UnitGrid_h
2 #define ExoViewer_UnitGrid_h
3 
4 #include "OpenGL_Includes.h"
5 #include <math.h>
6 #include "Common.h"
7 #include "DrawableComponent.h"
8 
9 namespace geAstro{
10 
12 {
13 public:
14  UnitCircles();
15  ~UnitCircles();
16  void clear();
17  void create(){};
18  void create(vmml::Vector3d _position, float inclination, float omega, float w, std::shared_ptr<ge::Shader> _programForOrbits, vmml::Vector3d _color, bool _colorPerVertex, bool _isVisible);
19  void createGeometry(float inclination, float omega, float w);
20  void update();
21  void setAlpha(float _alpha);
22  void setUnitSize(double _unitSize);
23  void setNumberOfRings(int _numberOfRings);
24  void setScaleFactor(double _scaleFactor);
25  void setScaled(bool _scaled);
26  void draw(std::shared_ptr<ge::Camera> _cam);
27  void reloadShader(std::shared_ptr<ge::Shader> _programForOrbits);
28 
29 private:
30  double scale(double _value);
31 
32  int numberOfPoints;
33  float alpha;
34  double unitSize;
35  int numberOfRings;
36  double scaleFactor;
37  bool scaled;
38 
39 };
40 
41 }
42 
43 #endif
Definition: DrawableComponent.h:25
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: UnitCircles.cpp:87
~UnitCircles()
Definition: UnitCircles.cpp:10
void createGeometry(float inclination, float omega, float w)
Definition: UnitCircles.cpp:37
void reloadShader(std::shared_ptr< ge::Shader > _programForOrbits)
Definition: UnitCircles.cpp:23
void update()
Definition: UnitCircles.cpp:83
void clear()
Definition: UnitCircles.cpp:14
Definition: AstroCommon.h:18
void create()
Definition: UnitCircles.h:17
void setScaled(bool _scaled)
Definition: UnitCircles.cpp:122
Definition: UnitCircles.h:11
void setAlpha(float _alpha)
Definition: UnitCircles.cpp:106
UnitCircles()
Definition: UnitCircles.cpp:5
void setScaleFactor(double _scaleFactor)
Definition: UnitCircles.cpp:118
void setNumberOfRings(int _numberOfRings)
Definition: UnitCircles.cpp:114
void setUnitSize(double _unitSize)
Definition: UnitCircles.cpp:110