class mola::Dataset_UI

Overview

Virtual base for offline dataset sources to have a GUI within MolaViz

#include <Dataset_UI.h>

class Dataset_UI
{
public:
    // methods

    virtual size_t datasetUI_size() const = 0;
    virtual size_t datasetUI_lastQueriedTimestep() const = 0;
    virtual double datasetUI_playback_speed() const = 0;
    virtual void datasetUI_playback_speed(double speed) = 0;
    virtual bool datasetUI_paused() const = 0;
    virtual void datasetUI_paused(bool paused) = 0;
    virtual void datasetUI_teleport(size_t timestep) = 0;
};

// direct descendants

class EurocDataset;
class Kitti360Dataset;
class KittiOdometryDataset;
class MulranDataset;
class ParisLucoDataset;
class RawlogDataset;
class Rosbag2Dataset;

Methods

virtual size_t datasetUI_size() const = 0

Number of different time steps available to call getObservations()

virtual size_t datasetUI_lastQueriedTimestep() const = 0

Returns the latest requested observation, range [0, datasetSize()]

virtual void datasetUI_teleport(size_t timestep) = 0

Forces continue replaying in this moment in time