1 #ifndef ExoViewer_Star_h
2 #define ExoViewer_Star_h
15 void update(
double _daysPerUpdate);
16 void createWithOverlay(
BodyInfo _data, vmml::Vector3d _positionFromSystemCenter, std::string _spectraltype,
double _scaleSize,
double _metallicity,
double _magV,
17 std::shared_ptr<ge::Shader> _programForSpheres, std::shared_ptr<ge::TextureHandle> _sunTex, std::shared_ptr<ge::TextureHandle> _sunOverlayTex);
19 void draw(std::shared_ptr<ge::Camera> _cam);
25 const std::shared_ptr<Body>
getBody()
const;
36 void createSphere(vmml::Vector3d _position, std::shared_ptr<ge::Shader> _programForSpheres, std::shared_ptr<ge::TextureHandle> _sunTex,
37 std::shared_ptr<ge::TextureHandle> _sunOverlayTex);
39 std::shared_ptr<Body> starBody;
40 std::shared_ptr<ge::PointLight> pointLightSource;
46 std::string spectraltype;
48 vmml::Vector3d universePosition;
58 std::shared_ptr<ge::TextureHandle> overlaytexHandle;
59 std::shared_ptr<ge::TextureHandle> suntexHandle;
void createWithOverlay(BodyInfo _data, vmml::Vector3d _positionFromSystemCenter, std::string _spectraltype, double _scaleSize, double _metallicity, double _magV, std::shared_ptr< ge::Shader > _programForSpheres, std::shared_ptr< ge::TextureHandle > _sunTex, std::shared_ptr< ge::TextureHandle > _sunOverlayTex)
Definition: Star.cpp:26
void setSunTextureHandle(std::shared_ptr< ge::TextureHandle > _handleToSunTex)
Definition: Star.cpp:129
void setAnimationStep(float _in)
Definition: Star.cpp:133
double getVisualMagnitude()
Definition: Star.cpp:113
void setOverlayTextureHandle(std::shared_ptr< ge::TextureHandle > _handleToOverlayTex)
Definition: Star.cpp:124
Star()
Definition: Star.cpp:4
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: Star.cpp:72
void clear()
Definition: Star.cpp:13
Definition: AstroCommon.h:18
double getMetallicity()
Definition: Star.cpp:114
void setSpectralType(const char *_spectralType)
~Star()
Definition: Star.cpp:9
std::shared_ptr< ge::PointLight > getPointLightSource()
Definition: Star.cpp:116
void setGradientTextureHandle(std::shared_ptr< ge::TextureHandle > _handleToGradientTex)
std::string getSpectralType()
Definition: Star.cpp:120
void update() override
Definition: Sphere.cpp:217
static vmml::Vector4f getColorVectorFromSpectralType(std::string spectraltype)
Definition: Star.cpp:143
const std::shared_ptr< Body > getBody() const
Definition: Star.cpp:137