6#include <imgui/imgui.h>
7#include <imgui/imgui_impl_glfw.h>
8#include <imgui/imgui_impl_opengl3.h>
11#include <imgui/imgui_impl_win32.h>
15#include <imgui/imgui_impl_osx.h>
35 const std::unique_ptr<Structure> & structure,
45 ImGui::Begin(
"Information");
47 unsigned size = std::ceil(structure->frameCount()/10.0);
48 ImGui::Text(
"Structure: %s", structure->getPath().c_str());
49 ImGui::Text(
"Frame %*lu / %*lu", size, visualisationState.
frame+1, size, structure->frameCount());
50 ImGui::Text(
"Frame caching %s", (structure->framePositionsLoaded() ?
"complete." :
"in progress."));
51 ImGui::Text(
"Camera %s, %s, %s",
cx.c_str(),
cy.c_str(),
cz.c_str());
A 3D projective camera centered on a focus moving on a sphere.
Definition camera.h:30
glm::vec3 position(bool spherical=false) const
Return the cartesian position vector.
Definition camera.h:164
glm::vec< L, float, glm::qualifier::highp > vec
Definition commandLine.h:214
void infoWindow(const std::unique_ptr< Structure > &structure, const Camera &camera, const VisualisationState &visualisationState, const float &delta)
Draw an information window.
Definition infoWindow.h:34
Holds editable data for the visualisation state.
Definition visualisationState.h:34
uint64_t frame
Definition visualisationState.h:126
std::string fixedLengthNumber(double x, unsigned length)
Convert a double to a fixes length std::string.
Definition util.h:81