Class TimeDisplay#

Inheritance Relationships#

Base Type#

Class Documentation#

class TimeDisplay : public Karana::Models::KModel<TimeDisplay, TimeDisplayParams>#

The TimeDisplay model updates the visualization at each postHop.

Public Functions

TimeDisplay(std::string_view name, const Karana::Core::ks_ptr<Karana::Dynamics::StatePropagator> &sp, const Karana::Core::ks_ptr<Karana::Scene::GraphicalScene> &scene)#

Constructor.

Parameters:
  • name – The name of the model.

  • sp – The StatePropagator to register this model with.

  • scene – The GraphicalScene to display the time in.

~TimeDisplay()#

Destructor for TimeDisplay.

void postModelStep(const Karana::Math::Ktime &t, const Karana::Math::Vec &x)#

Update the time display.

Parameters:
  • t – Current time. Not used.

  • x – Current state. Not used.

virtual void _unregisterModel() override#

Unregister the model.

Public Static Functions

static Karana::Core::ks_ptr<TimeDisplay> create(std::string_view name, const Karana::Core::ks_ptr<Karana::Dynamics::StatePropagator> &sp, const Karana::Core::ks_ptr<Karana::Scene::GraphicalScene> &scene)#

Constructor.

Parameters:
  • name – The name of the model.

  • sp – The StatePropagator to register this model with.

  • scene – The GraphicalScene to display the time in.

Returns:

A ks_ptr to the newly created instance of the TimeDisplay model.