GlobeEngine
geAstro::Body Class Reference

#include <Body.h>

Public Member Functions

 Body ()
 
 ~Body ()
 
void clear ()
 
void updateRotation (double _currentDateInDays)
 
void setBodyAttributes (BodyInfo _data, double _scaleSize)
 
void setBodyAttributes (BodyInfo _data, double _scaleSize, BodyCompositionInfo _crust)
 
void setBodyAttributes (BodyInfo _data, double _scaleSize, std::shared_ptr< Body > _parent)
 
bool hasSatellites ()
 
std::vector< std::shared_ptr< Body > > getSatellites () const
 
void addSatellite (std::shared_ptr< Body > _satellite)
 
void setParent (std::shared_ptr< Body > _parent)
 
void createOrbit (OrbitInfo orbitInfo, vmml::Vector3d _center, std::shared_ptr< ge::Shader > _programForOrbits, vmml::Vector3f _orbitColor, unsigned int _id, unsigned int _groupuid)
 
void createOrbit (OrbitInfo orbitInfo, vmml::Vector3d _center, std::shared_ptr< ge::Shader > _programForOrbits, vmml::Vector3f _orbitColor, unsigned int _id, unsigned int _groupuid, bool _smallBodiesAsPointCloud, bool _isRealScale)
 
void updateOrbit (double _date)
 
void drawOrbit (std::shared_ptr< ge::Camera > _cam)
 
bool hasOrbit () const
 
const OrbitInfogetOrbitData ()
 
std::shared_ptr< Orbit > const & getOrbit () const
 
double scaleBody (double _value) const
 
double getRadiusScaled (bool _scaled=false) const
 
bool hasCoreView ()
 
const BodyCompositionInfogetCrustInfo () const
 
double getCrustDepthInKm ()
 
double getMantleDepthInKm ()
 
double getCoreDepthInKm ()
 
double getRadiusInKm ()
 
void setBodyInfo (BodyInfo _info)
 
const BodyInfogetBodyInfo () const
 
const vmml::Vector3d & getCurrentRotation () const
 

Constructor & Destructor Documentation

geAstro::Body::Body ( )
geAstro::Body::~Body ( )

Member Function Documentation

void geAstro::Body::addSatellite ( std::shared_ptr< Body _satellite)
void geAstro::Body::clear ( )
void geAstro::Body::createOrbit ( OrbitInfo  orbitInfo,
vmml::Vector3d  _center,
std::shared_ptr< ge::Shader _programForOrbits,
vmml::Vector3f  _orbitColor,
unsigned int  _id,
unsigned int  _groupuid 
)
void geAstro::Body::createOrbit ( OrbitInfo  orbitInfo,
vmml::Vector3d  _center,
std::shared_ptr< ge::Shader _programForOrbits,
vmml::Vector3f  _orbitColor,
unsigned int  _id,
unsigned int  _groupuid,
bool  _smallBodiesAsPointCloud,
bool  _isRealScale 
)
void geAstro::Body::drawOrbit ( std::shared_ptr< ge::Camera _cam)
const BodyInfo & geAstro::Body::getBodyInfo ( ) const
double geAstro::Body::getCoreDepthInKm ( )
double geAstro::Body::getCrustDepthInKm ( )
const BodyCompositionInfo & geAstro::Body::getCrustInfo ( ) const
const vmml::Vector3d & geAstro::Body::getCurrentRotation ( ) const
double geAstro::Body::getMantleDepthInKm ( )
std::shared_ptr< Orbit > const & geAstro::Body::getOrbit ( ) const
const OrbitInfo & geAstro::Body::getOrbitData ( )
double geAstro::Body::getRadiusInKm ( )
double geAstro::Body::getRadiusScaled ( bool  _scaled = false) const
std::vector< std::shared_ptr< Body > > geAstro::Body::getSatellites ( ) const
bool geAstro::Body::hasCoreView ( )
bool geAstro::Body::hasOrbit ( ) const
bool geAstro::Body::hasSatellites ( )
double geAstro::Body::scaleBody ( double  _value) const
void geAstro::Body::setBodyAttributes ( BodyInfo  _data,
double  _scaleSize 
)
void geAstro::Body::setBodyAttributes ( BodyInfo  _data,
double  _scaleSize,
BodyCompositionInfo  _crust 
)
void geAstro::Body::setBodyAttributes ( BodyInfo  _data,
double  _scaleSize,
std::shared_ptr< Body _parent 
)
void geAstro::Body::setBodyInfo ( BodyInfo  _info)
void geAstro::Body::setParent ( std::shared_ptr< Body _parent)
void geAstro::Body::updateOrbit ( double  _date)
void geAstro::Body::updateRotation ( double  _currentDateInDays)

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