GlobeEngine
ComparisonGrid.h
Go to the documentation of this file.
1 #ifndef GlobeEngine_ComparisonGrid_h
2 #define GlobeEngine_ComparisonGrid_h
3 
4 #include "OpenGL_Includes.h"
5 #include "Shader.h"
6 #include "CoordinateSystem.h"
7 
8 namespace geAstro {
9 
11  {
12  public:
13  void setupGrid(vmml::Vector2d _gridSteps, vmml::Vector2i _numberOfLines);
14  void createVAO();
15  vmml::Vector2d getGridExtent();
16  const std::vector<double>& getGridLineCoordinatesX();
17  const std::vector<double>& getGridLineCoordinatesY();
18  vmml::Vector2i getNumberOfLines();
19  private:
20  vmml::Vector2d gridSteps;
21  //number of lines excluding origin cross
22  vmml::Vector2i numberOfLines;
23  vmml::Vector2d gridExtent;
24  //needed as single vector as there may be a different number of lines on both axis
25  std::vector<double> gridLineCoordinatesX;
26  //needed as single vector as there may be a different number of lines on both axis
27  std::vector<double> gridLineCoordinatesY;
28  };
29 }
30 #endif
const std::vector< double > & getGridLineCoordinatesY()
Definition: ComparisonGrid.cpp:31
void createVAO()
Definition: ComparisonGrid.cpp:39
Definition: AstroCommon.h:18
void setupGrid(vmml::Vector2d _gridSteps, vmml::Vector2i _numberOfLines)
Definition: ComparisonGrid.cpp:5
Definition: ComparisonGrid.h:10
vmml::Vector2d getGridExtent()
Definition: ComparisonGrid.cpp:23
vmml::Vector2i getNumberOfLines()
Definition: ComparisonGrid.cpp:35
Definition: CoordinateSystem.h:17
const std::vector< double > & getGridLineCoordinatesX()
Definition: ComparisonGrid.cpp:27