GlobeEngine
HikingPath.h
Go to the documentation of this file.
1 #ifndef HikingEngine_HikingPath_h
2 #define HikingEngine_HikingPath_h
3 
4 #include "DrawablePolyLine.h"
5 #include <vector>
6 #include <stdio.h>
7 #include "BufferArray.h"
8 
9 namespace geHikingViewer {
10 
12  {
13  public:
14  HikingPath();
15  ~HikingPath();
16 
17  void addPointAtEnd(vmml::Vector3d _p, vmml::Vector4ub _color);
18  void removePointAtIdx(int _id);
19 
20  void setPositionAtIdx(int _idx, vmml::Vector3d _pos);
21  void setColorAtIdx(int _idx, vmml::Vector4ub _color);
22 
23  void recreateData();
24  void lineRevalidation();
25 
26  vmml::Vector2d getFocusPoint2d();
27  vmml::Vector3f getColor(int level);
28 
29  int getElementCount();
30 #ifndef __APPLE__
31  // GPU Feature buffer properties
34 #endif
35 
36  private:
37  std::vector< vmml::Vector3d > elements;
38  std::vector< vmml::Vector4ub > colors;
39 
40 #ifndef __APPLE__
41  ge::ShaderStorageBufferArray gpuFeatureInfo;
42 #endif
43 
44  };
45 }
46 #endif
int getElementCount()
Definition: HikingPath.cpp:97
void setColorAtIdx(int _idx, vmml::Vector4ub _color)
Definition: HikingPath.cpp:93
void setPositionAtIdx(int _idx, vmml::Vector3d _pos)
Definition: HikingPath.cpp:89
void recreateData()
Definition: HikingPath.cpp:85
GLuint getGPUFeatureBufferHandle()
Definition: HikingPath.cpp:79
vmml::Vector2d getFocusPoint2d()
Definition: HikingPath.cpp:27
Definition: HikingComposition.h:14
const vmml::Vector3f getColor() const
Definition: DrawableComponent.cpp:158
Definition: HikingPath.h:11
Definition: DrawablePolyLine.h:18
Definition: BufferArray.h:18
~HikingPath()
Definition: HikingPath.cpp:9
HikingPath()
Definition: HikingPath.cpp:5
void addPointAtEnd(vmml::Vector3d _p, vmml::Vector4ub _color)
Definition: HikingPath.cpp:13
void createGPUFeatureBufferAsLineCollection()
Definition: HikingPath.cpp:52
void removePointAtIdx(int _id)
Definition: HikingPath.cpp:18