GlobeEngine
HikingFrameBufferObject.h
Go to the documentation of this file.
1 
2 #ifndef HikingEngine_HikingKPatchbintree_h
3 #define HikingEngine_HikingKPatchbintree_h
4 
5 #include <vmmlib/vmmlib.hpp>
6 #include <memory>
7 #include "FrameBufferObject.h"
8 #include "Camera.h"
9 
10 namespace geHikingViewer {
11 
13  {
14  public:
17  vmml::Vector4d getWorldPosition(int _x, int _y, std::shared_ptr<ge::Camera> _cam);
18 
19  std::vector<std::vector<float> > calculateHeights(vmml::Vector2f oldMP, vmml::Vector2f newMP, float heightThreshold, std::shared_ptr<ge::Camera> _cam);
20  //vmml::Vector2f isVisibleObjectCoordinate(vmml::Vector2f viewport, vmml::Vector3f objPosition, std::shared_ptr<ge::Camera> _cam);
21  int calculateDangerZone(vmml::Vector2f oldMP, vmml::Vector2f newMP, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection, std::shared_ptr<ge::Camera> _cam);
22  int calculateDangerLine(vmml::Vector2f oldMP, vmml::Vector2f newMP, bool isMainLine, float directionToLine, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection, float sampling);
23  int getDangerPointLevel(int x, int y, bool isMainLine, float directionToLine, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection);
24  private:
25  vmml::Vector4d toUnitCube(vmml::Vector4d _in, std::shared_ptr<ge::Camera> _cam);
26 
27  };
28 
29 }
30 #endif
~HikingFrameBufferObject()
Definition: HikingFrameBufferObject.cpp:9
Definition: HikingComposition.h:14
std::vector< std::vector< float > > calculateHeights(vmml::Vector2f oldMP, vmml::Vector2f newMP, float heightThreshold, std::shared_ptr< ge::Camera > _cam)
Definition: HikingFrameBufferObject.cpp:481
Definition: FrameBufferObject.h:20
vmml::Vector4d getWorldPosition(int _x, int _y, std::shared_ptr< ge::Camera > _cam)
Definition: HikingFrameBufferObject.cpp:22
int getDangerPointLevel(int x, int y, bool isMainLine, float directionToLine, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection)
Definition: HikingFrameBufferObject.cpp:33
Definition: HikingFrameBufferObject.h:12
HikingFrameBufferObject()
Definition: HikingFrameBufferObject.cpp:5
int calculateDangerZone(vmml::Vector2f oldMP, vmml::Vector2f newMP, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection, std::shared_ptr< ge::Camera > _cam)
Definition: HikingFrameBufferObject.cpp:303
int calculateDangerLine(vmml::Vector2f oldMP, vmml::Vector2f newMP, bool isMainLine, float directionToLine, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection, float sampling)
Definition: HikingFrameBufferObject.cpp:385