1 #ifndef ExoViewer_Planet_h
2 #define ExoViewer_Planet_h
18 spinorbitalignment = -1;
27 PlanetInfo(
double _spinorbitalignment,
double _istransiting,
double _discoveryyear,
28 std::string _description, std::string _lastupdate, std::string _discoverymethod,
int _isInHZ) :
29 spinorbitalignment(_spinorbitalignment), istransiting(_istransiting), discoveryyear(_discoveryyear),
30 description(_description), lastupdate(_lastupdate), discoverymethod(_discoverymethod), isInHZ(_isInHZ)
46 std::shared_ptr<ge::Shader> _programForSpheres, std::shared_ptr<ge::Texture2Drgba> _tex,
bool _hasCoreView);
58 void drawOrbit(std::shared_ptr<ge::Camera> _cam);
59 void setParent(std::shared_ptr<Body> _parent);
60 const std::shared_ptr<Body>
getBody()
const;
65 std::shared_ptr<Body> planetBody;
66 std::shared_ptr<ge::Texture2Drgba> planetTex;
std::string getEnumAsString()
Definition: Planet.cpp:102
void setParent(std::shared_ptr< Body > _parent)
Definition: Planet.cpp:67
PlanetInfo()
Definition: Planet.h:17
double istransiting
Definition: Planet.h:13
void setPlanetInHZ(int _idx)
Definition: Planet.cpp:82
Planet::PlanetType getEnumFromString(std::string _s)
Definition: Planet.cpp:94
int isInHZ
Definition: Planet.h:15
PlanetInfo(double _spinorbitalignment, double _istransiting, double _discoveryyear, std::string _description, std::string _lastupdate, std::string _discoverymethod, int _isInHZ)
Definition: Planet.h:27
const PlanetInfo & getInfo() const
Definition: Planet.cpp:54
void resetPlanetTexture(std::shared_ptr< ge::Texture2Drgba > _texHandle)
Planet()
Definition: Planet.cpp:5
std::string discoverymethod
Definition: Planet.h:11
double spinorbitalignment
Definition: Planet.h:12
Definition: AstroCommon.h:18
void drawOrbit(std::shared_ptr< ge::Camera > _cam)
Definition: Planet.cpp:63
double discoveryyear
Definition: Planet.h:14
std::string lastupdate
Definition: Planet.h:10
std::string description
Definition: Planet.h:9
void update()
Definition: Planet.cpp:58
~Planet()
Definition: Planet.cpp:10
void clear()
Definition: Planet.cpp:14
void createPlanet(PlanetInfo _info, BodyInfo _bodyinfo, vmml::Vector3d _position, PlanetType _planetType, std::shared_ptr< ge::Shader > _programForSpheres, std::shared_ptr< ge::Texture2Drgba > _tex, bool _hasCoreView)
Definition: Planet.cpp:19
int isPlanetInHZIndex()
Definition: Planet.cpp:86
PlanetType
Definition: Planet.h:36
const std::shared_ptr< Body > getBody() const
Definition: Planet.cpp:71