GlobeEngine
DrawableGrid.h
Go to the documentation of this file.
1 //
2 // DrawableGrid.h
3 // GlobeEngine
4 //
5 // Created by Mathias Thöny on 27.12.11.
6 // Copyright (c) 2011 University of Zurich. All rights reserved.
7 //
8 
9 #ifndef GlobeEngine_DrawableGrid_h
10 #define GlobeEngine_DrawableGrid_h
11 
12 #include "OpenGL_Includes.h"
13 #include "DrawableComponent.h"
14 
15 namespace geUtil {
17  {
18  public:
20 
22 
23  void create();
24  void create(double _stepsize, double _width, GridAxis _axis, vmml::Vector3f _pos, vmml::Vector3f _color);
25  void create(int _steps, double _stepsize, GridAxis _axis);
26  void clear();
27  void draw(std::shared_ptr<ge::Camera> _cam);
28  void update();
29  void createPoints();
30 
31  private:
32  double stepsize;
33  int steps;
34  GridAxis axis;
35 
36  vmml::Vector3f color;
37  vmml::Vector3f midpoint;
38  std::vector<vmml::Vector3f> points;
39  };
40 }
41 #endif
Definition: DrawableComponent.h:25
Definition: DrawableGrid.h:19
Definition: DrawableGrid.h:16
void createPoints()
Definition: DrawableGrid.cpp:39
void clear()
Definition: DrawableGrid.cpp:4
GridAxis
Definition: DrawableGrid.h:19
Definition: DrawableGrid.h:19
void update()
Definition: DrawableGrid.cpp:134
Definition: DrawableGrid.h:19
void create()
Definition: DrawableGrid.cpp:9
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: DrawableGrid.cpp:139
Definition: DebugLogger.h:14
DrawableGrid()
Definition: DrawableGrid.h:21