GlobeEngine
geHikingViewer::HikingEngine Class Reference

#include <HikingEngine.h>

Inheritance diagram for geHikingViewer::HikingEngine:
ge::Engine

Public Member Functions

 HikingEngine ()
 
 ~HikingEngine ()
 
void clear ()
 
void destroy ()
 
void create (std::string _pathFile)
 
void initializeScene (std::string _pathFile=0)
 
void drawScene ()
 
void resize (int _w, int _h)
 
void update ()
 
void focusCamera ()
 
void switchCameraToTop ()
 
vmml::Vector3d calculateSight (bool glCoords)
 
void updateFramebufferStandardID ()
 
void switchTerrainShader ()
 
void switchDanger ()
 
bool isDangerEnabled ()
 
void enableNorthSouth (bool e)
 
float getHeightScale ()
 
bool getDangerEnabled ()
 
float getDangerHeight ()
 
void setDangerOrientation (float o)
 
void setDangerSection (float s)
 
void increaseDangerHeight (float _value)
 
int getRiskLevel ()
 
void setRiskLevel (int level)
 
void disableDanger (bool disable)
 
void enablePlacing ()
 
void disablePlacing ()
 
bool isPlacingEnabled ()
 
void addNewCone (vmml::Vector3f _pos, vmml::Vector3d _color)
 
bool addLineSegment (vmml::Vector2f _screenPos)
 
void setAdding (bool _in)
 
void setRemoving (bool _in)
 
void setShifting (bool _in)
 
void selectPixel (int x, int y)
 
void pickFromFramebuffer ()
 
void selectObject (int x, int y)
 
void unselectObject ()
 
void printFPS ()
 
void compassUpdate (vmml::Vector2f _degrees)
 
const std::shared_ptr< HikingPathgetHikingTrailInfo ()
 
void updateHikingTrail ()
 
- Public Member Functions inherited from ge::Engine
 Engine ()
 
 ~Engine ()
 
virtual void create ()
 
void draw ()
 
void initExtension ()
 
void setProgrammState (enum PROGRAMMSTATE state)
 
enum PROGRAMMSTATE getProgrammState ()
 
void setDebugState (enum DEBUGSTATE state)
 
enum DEBUGSTATE getDebugState ()
 
void enablePicking (bool _in)
 
bool isPickingEnabled ()
 
void enableWireframe (bool _in)
 
bool isWireframeEnabled ()
 
void enableAnimationLoop (bool _in)
 
bool isAnimationLoopEnabled ()
 
void setUIFramebufferID (unsigned int _id)
 
const std::shared_ptr< TextureHandle > & getUIFramebufferHandle ()
 
bool isUIFramebufferActive ()
 
void enableUIFramebuffer (bool _in=true)
 
void disableUIFramebuffer ()
 
int getCameraCount ()
 
std::shared_ptr< ge::CameragetCamera (int _index)
 
std::shared_ptr< ge::CameragetSelectedCam ()
 
int getSelectedCamID () const
 
void setSelectedCamID (int _id)
 
float getDevicePixelRatio ()
 
void setDevicePixelRatio (float _in)
 
double getElapsedTimeForLastFrame ()
 
void getOpenGLError (std::string const &_input)
 
void getOpenGLError (char const *_input)
 

Additional Inherited Members

- Public Types inherited from ge::Engine
enum  eTEXTURE_UNITS {
  eUNIT0, eUNIT1, eUNIT2, eUNIT3,
  eUNIT4, eUNIT5, eUNIT6, eUNIT7
}
 
enum  PICKINGSTATE { IDLE =0, PICKEVENT, PICKED }
 
enum  DEBUGSTATE { NOTACTIVE, ACTIVE }
 
enum  PROGRAMMSTATE { NOTLOADED, LOADED, RUNNING }
 
- Protected Member Functions inherited from ge::Engine
void printLineRenderingInfo ()
 
void printTextureInfo ()
 
void printFramebufferInfo ()
 
void printBufferInformation ()
 
- Protected Attributes inherited from ge::Engine
std::vector< std::shared_ptr< ge::Camera > > cameras
 
int selectedCameraID
 
enum PROGRAMMSTATE programstate
 Tells you the state of the application. More...
 
enum DEBUGSTATE debugstate
 Tells you if the application is running with debug output. More...
 
enum PICKINGSTATE pickingState
 Tells you if there is a picking event or result ongoing. More...
 
bool pickingEnabled
 
bool animationsEnabled
 

Constructor & Destructor Documentation

geHikingViewer::HikingEngine::HikingEngine ( )
geHikingViewer::HikingEngine::~HikingEngine ( )

Member Function Documentation

bool geHikingViewer::HikingEngine::addLineSegment ( vmml::Vector2f  _screenPos)
void geHikingViewer::HikingEngine::addNewCone ( vmml::Vector3f  _pos,
vmml::Vector3d  _color 
)
vmml::Vector3d geHikingViewer::HikingEngine::calculateSight ( bool  glCoords)
void geHikingViewer::HikingEngine::clear ( )
virtual

Reimplemented from ge::Engine.

void geHikingViewer::HikingEngine::compassUpdate ( vmml::Vector2f  _degrees)
void geHikingViewer::HikingEngine::create ( std::string  _pathFile)
void geHikingViewer::HikingEngine::destroy ( )
void geHikingViewer::HikingEngine::disableDanger ( bool  disable)
void geHikingViewer::HikingEngine::disablePlacing ( )
void geHikingViewer::HikingEngine::drawScene ( )
virtual

Implements ge::Engine.

void geHikingViewer::HikingEngine::enableNorthSouth ( bool  e)
void geHikingViewer::HikingEngine::enablePlacing ( )
void geHikingViewer::HikingEngine::focusCamera ( )
bool geHikingViewer::HikingEngine::getDangerEnabled ( )
float geHikingViewer::HikingEngine::getDangerHeight ( )
float geHikingViewer::HikingEngine::getHeightScale ( )
const std::shared_ptr< HikingPath > geHikingViewer::HikingEngine::getHikingTrailInfo ( )
int geHikingViewer::HikingEngine::getRiskLevel ( )
void geHikingViewer::HikingEngine::increaseDangerHeight ( float  _value)
void geHikingViewer::HikingEngine::initializeScene ( std::string  _pathFile = 0)
virtual

Implements ge::Engine.

bool geHikingViewer::HikingEngine::isDangerEnabled ( )
bool geHikingViewer::HikingEngine::isPlacingEnabled ( )
void geHikingViewer::HikingEngine::pickFromFramebuffer ( )
void geHikingViewer::HikingEngine::printFPS ( )
void geHikingViewer::HikingEngine::resize ( int  _w,
int  _h 
)
virtual

Implements ge::Engine.

void geHikingViewer::HikingEngine::selectObject ( int  x,
int  y 
)
void geHikingViewer::HikingEngine::selectPixel ( int  x,
int  y 
)
void geHikingViewer::HikingEngine::setAdding ( bool  _in)
void geHikingViewer::HikingEngine::setDangerOrientation ( float  o)
void geHikingViewer::HikingEngine::setDangerSection ( float  s)
void geHikingViewer::HikingEngine::setRemoving ( bool  _in)
void geHikingViewer::HikingEngine::setRiskLevel ( int  level)
void geHikingViewer::HikingEngine::setShifting ( bool  _in)
void geHikingViewer::HikingEngine::switchCameraToTop ( )
void geHikingViewer::HikingEngine::switchDanger ( )
void geHikingViewer::HikingEngine::switchTerrainShader ( )
void geHikingViewer::HikingEngine::unselectObject ( )
void geHikingViewer::HikingEngine::update ( )
virtual

Implements ge::Engine.

void geHikingViewer::HikingEngine::updateFramebufferStandardID ( )
void geHikingViewer::HikingEngine::updateHikingTrail ( )

The documentation for this class was generated from the following files: