GlobeEngine
geAstro::ExoEngine Class Reference

#include <ExoEngine.h>

Inheritance diagram for geAstro::ExoEngine:
ge::Engine

Public Member Functions

 ExoEngine ()
 
 ~ExoEngine ()
 
void clear ()
 
void destroy ()
 
void create ()
 
void initializeScene (std::string path)
 
void drawScene ()
 
void resize (int _w, int _h)
 
void update ()
 
void toggleAnimation ()
 
void toggleOrbits ()
 
void toggleHabitableZone ()
 
void toggleCoordinateAxes ()
 
void toggleUnitCircles ()
 
void toggleScaled ()
 
void toggleSkybox ()
 
void setDate (double _julianDay)
 
void setSpeed (double _daysPerUpdate)
 
void setUnitCircles (double _unitSize, int _unit, int _numberOfRings)
 
void setIsCoreView (bool _isCoreView)
 
void setIsMapView (bool _isMapView)
 
void setSceneToDisplay (geAstro::SceneType _sceneToDisplay)
 
void repositionDrawables (geAstro::SceneType _sceneToDisplay)
 
double getSpeed () const
 
void setSelectedHasChanged (bool _selectedHasChanged)
 
bool getSelectedHasChanged ()
 
void setSystemInFocus (int _systemIndex)
 
const std::shared_ptr< SystemgetSystemByName (std::string _name)
 
const std::shared_ptr< UniversegetUniverse ()
 
vmml::Vector3i getDate ()
 
vmml::Vector2d get2dPoint (vmml::Vector3d _p)
 
vmml::Vector2d get2dPoint (vmml::Vector3d _p, vmml::Matrix4d _modelMatrix)
 
void toggleDebugMap ()
 
void setPickingEvent (PickingEvent pe)
 
void setPickingCoordinates (vmml::Vector2i _coord)
 
const std::vector< std::shared_ptr< System > > & getSystems ()
 
std::shared_ptr< SystemgetSystemInFocus ()
 
void setMousePosition (int x, int y)
 
vmml::Vector2i getMousePosition ()
 
void navigateToCurrentSelection ()
 
void navigateToNewSelection (UniverseSelection _sel)
 
void navigateToNewSelectionInSystem (UniverseSelection _sel)
 
void navigateBack ()
 
void reloadShaders ()
 
void sortUIInfoForSystemInFocus ()
 
const std::vector< UIBodyInfo > & getSystemsUIInfo () const
 
const std::vector< UIBodyInfo > & getSunsUIInfo () const
 
const std::vector< UIBodyInfo > & getPlanetUIInfo () const
 
const std::vector< UIBodyInfo > & getMoonUIInfo () const
 
const std::vector< UIBodyInfo > & getSmallBodyObjectUIInfo () const
 
const UIBodyInfogetSelectedUIInfo () const
 
const std::vector< int > & getUIInfoSizes () const
 
UniverseSelection getSelectionForUIInfoID (int _idx) const
 
ComparisonergetComparisoner ()
 
- Public Member Functions inherited from ge::Engine
 Engine ()
 
 ~Engine ()
 
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

geAstro::ExoEngine::ExoEngine ( )
geAstro::ExoEngine::~ExoEngine ( )

Member Function Documentation

void geAstro::ExoEngine::clear ( )
virtual

Reimplemented from ge::Engine.

void geAstro::ExoEngine::create ( )
virtual

Reimplemented from ge::Engine.

void geAstro::ExoEngine::destroy ( )
void geAstro::ExoEngine::drawScene ( )
virtual

Implements ge::Engine.

vmml::Vector2d geAstro::ExoEngine::get2dPoint ( vmml::Vector3d  _p)
vmml::Vector2d geAstro::ExoEngine::get2dPoint ( vmml::Vector3d  _p,
vmml::Matrix4d  _modelMatrix 
)
Comparisoner & geAstro::ExoEngine::getComparisoner ( )
vmml::Vector3i geAstro::ExoEngine::getDate ( )
const std::vector< UIBodyInfo > & geAstro::ExoEngine::getMoonUIInfo ( ) const
vmml::Vector2i geAstro::ExoEngine::getMousePosition ( )
const std::vector< UIBodyInfo > & geAstro::ExoEngine::getPlanetUIInfo ( ) const
bool geAstro::ExoEngine::getSelectedHasChanged ( )
const UIBodyInfo & geAstro::ExoEngine::getSelectedUIInfo ( ) const
UniverseSelection geAstro::ExoEngine::getSelectionForUIInfoID ( int  _idx) const
const std::vector< UIBodyInfo > & geAstro::ExoEngine::getSmallBodyObjectUIInfo ( ) const
double geAstro::ExoEngine::getSpeed ( ) const
const std::vector< UIBodyInfo > & geAstro::ExoEngine::getSunsUIInfo ( ) const
const std::shared_ptr< System > geAstro::ExoEngine::getSystemByName ( std::string  _name)
std::shared_ptr< System > geAstro::ExoEngine::getSystemInFocus ( )
const std::vector< std::shared_ptr< System > > & geAstro::ExoEngine::getSystems ( )
const std::vector< UIBodyInfo > & geAstro::ExoEngine::getSystemsUIInfo ( ) const
const std::vector< int > & geAstro::ExoEngine::getUIInfoSizes ( ) const
const std::shared_ptr< Universe > geAstro::ExoEngine::getUniverse ( )
void geAstro::ExoEngine::initializeScene ( std::string  path)
virtual

Implements ge::Engine.

void geAstro::ExoEngine::navigateBack ( )
void geAstro::ExoEngine::navigateToCurrentSelection ( )
void geAstro::ExoEngine::navigateToNewSelection ( UniverseSelection  _sel)
void geAstro::ExoEngine::navigateToNewSelectionInSystem ( UniverseSelection  _sel)
void geAstro::ExoEngine::reloadShaders ( )
void geAstro::ExoEngine::repositionDrawables ( geAstro::SceneType  _sceneToDisplay)
void geAstro::ExoEngine::resize ( int  _w,
int  _h 
)
virtual

Implements ge::Engine.

void geAstro::ExoEngine::setDate ( double  _julianDay)
void geAstro::ExoEngine::setIsCoreView ( bool  _isCoreView)
void geAstro::ExoEngine::setIsMapView ( bool  _isMapView)
void geAstro::ExoEngine::setMousePosition ( int  x,
int  y 
)
void geAstro::ExoEngine::setPickingCoordinates ( vmml::Vector2i  _coord)
void geAstro::ExoEngine::setPickingEvent ( PickingEvent  pe)
void geAstro::ExoEngine::setSceneToDisplay ( geAstro::SceneType  _sceneToDisplay)
void geAstro::ExoEngine::setSelectedHasChanged ( bool  _selectedHasChanged)
void geAstro::ExoEngine::setSpeed ( double  _daysPerUpdate)
void geAstro::ExoEngine::setSystemInFocus ( int  _systemIndex)
void geAstro::ExoEngine::setUnitCircles ( double  _unitSize,
int  _unit,
int  _numberOfRings 
)
void geAstro::ExoEngine::sortUIInfoForSystemInFocus ( )
void geAstro::ExoEngine::toggleAnimation ( )
void geAstro::ExoEngine::toggleCoordinateAxes ( )
void geAstro::ExoEngine::toggleDebugMap ( )
void geAstro::ExoEngine::toggleHabitableZone ( )
void geAstro::ExoEngine::toggleOrbits ( )
void geAstro::ExoEngine::toggleScaled ( )
void geAstro::ExoEngine::toggleSkybox ( )
void geAstro::ExoEngine::toggleUnitCircles ( )
void geAstro::ExoEngine::update ( )
virtual

Implements ge::Engine.


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