Cleanup of distance and time conversion classes, Modifies GuiSpaceTimeComponent

Changed previous slider into text field + dropbox
Added acceleration slider
Added shuffle slider (closes #479)
This commit is contained in:
Alexander Bock
2018-02-08 17:42:22 -05:00
parent d5f158ad0b
commit cd33ec06c9
9 changed files with 575 additions and 394 deletions

View File

@@ -28,6 +28,7 @@
#include <modules/imgui/include/guicomponent.h>
#include <openspace/properties/scalar/floatproperty.h>
#include <openspace/util/timeconversion.h>
namespace openspace::gui {
@@ -37,8 +38,21 @@ public:
void render() override;
private:
properties::FloatProperty _minMaxDeltaTime;
float _localMinMaxDeltatime; // We don't want the default display inside the component
float _deltaTime;
int _deltaTimeUnit; // aka static_cast<int>(TimeUnit)
float _accelerationDelta;
double _oldDeltaTime;
float _slidingDelta;
bool _firstFrame;
std::string _timeUnits;
//properties::FloatProperty _minMaxDeltaTime;
//float _localMinMaxDeltatime; // We don't want the default display inside the component
};
} // namespace openspace::gui