mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Make hover circle work again and remove unneccessary conversion function
This commit is contained in:
@@ -460,6 +460,10 @@ void ScreenSpaceRenderable::update() {}
|
||||
bool ScreenSpaceRenderable::isEnabled() const {
|
||||
return _enabled;
|
||||
}
|
||||
bool ScreenSpaceRenderable::isUsingRaeCoords() const
|
||||
{
|
||||
return _useRadiusAzimuthElevation;
|
||||
}
|
||||
void ScreenSpaceRenderable::setEnabled(bool isEnabled)
|
||||
{
|
||||
_enabled = isEnabled;
|
||||
@@ -550,11 +554,21 @@ void ScreenSpaceRenderable::translate(glm::vec2 translation, glm::vec2 position)
|
||||
_cartesianPosition = translationMatrix * origin;
|
||||
}
|
||||
|
||||
void ScreenSpaceRenderable::setPosition(const glm::vec3& position)
|
||||
void ScreenSpaceRenderable::setCartesianPosition(const glm::vec3& position)
|
||||
{
|
||||
_cartesianPosition = position;
|
||||
}
|
||||
|
||||
void ScreenSpaceRenderable::setRaeFromCartesianPosition(const glm::vec3& position)
|
||||
{
|
||||
_raePosition = cartesianToRae(position);
|
||||
}
|
||||
|
||||
glm::vec3 ScreenSpaceRenderable::raePosition() const
|
||||
{
|
||||
return _raePosition;
|
||||
}
|
||||
|
||||
glm::mat4 ScreenSpaceRenderable::globalRotationMatrix() {
|
||||
// We do not want the screen space planes to be affected by
|
||||
// 1) The global rotation of the view applied in the render engine
|
||||
|
||||
Reference in New Issue
Block a user