1 #ifndef ExoViewer_Moon_h
2 #define ExoViewer_Moon_h
21 MoonInfo(
double _volume,
double _density,
double _surfaceArea,
double _surfaceGravity):
22 volume(_volume), density(_density), surfaceArea(_surfaceArea), surfaceGravity(_surfaceGravity)
34 std::shared_ptr<ge::Shader> _programForSpheres, std::shared_ptr<ge::Texture2Drgba> _tex,
bool _hasCoreView);
37 void drawOrbit(std::shared_ptr<ge::Camera> _cam);
40 void setParent(std::shared_ptr<Body> _parent);
41 const std::shared_ptr<Body>
getBody()
const;
45 std::shared_ptr<Body> moonBody;
46 std::shared_ptr<ge::Texture2Drgba> moontex;
void drawOrbit(std::shared_ptr< ge::Camera > _cam)
Definition: Moon.cpp:54
double surfaceGravity
Definition: Moon.h:12
const std::shared_ptr< Body > getBody() const
Definition: Moon.cpp:62
void update()
Definition: Moon.cpp:49
MoonInfo(double _volume, double _density, double _surfaceArea, double _surfaceGravity)
Definition: Moon.h:21
Definition: AstroCommon.h:18
~Moon()
Definition: Moon.cpp:10
void clear()
Definition: Moon.cpp:14
double volume
Definition: Moon.h:9
const MoonInfo & getInfo() const
Definition: Moon.cpp:45
Moon()
Definition: Moon.cpp:5
MoonInfo()
Definition: Moon.h:14
void createMoon(MoonInfo _info, BodyInfo _bodyinfo, vmml::Vector3d _position, std::shared_ptr< ge::Shader > _programForSpheres, std::shared_ptr< ge::Texture2Drgba > _tex, bool _hasCoreView)
Definition: Moon.cpp:19
double density
Definition: Moon.h:10
void setParent(std::shared_ptr< Body > _parent)
Definition: Moon.cpp:58
double surfaceArea
Definition: Moon.h:11