Class UpdateProxyScene#

Inheritance Relationships#

Base Type#

Class Documentation#

class UpdateProxyScene : public Karana::Models::KModel<UpdateProxyScene>#

The UpdateProxyScene model updates the visualization at each postHop.

Public Functions

UpdateProxyScene(std::string_view name, const kc::ks_ptr<kd::ModelManager> &mm, const kc::ks_ptr<ks::ProxyScene> &scene)#

UpdateProxyScene constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:
  • name – The name of the model.

  • mm – The ModelManager to register this model with.

  • scene – The ProxyScene to call update on.

~UpdateProxyScene()#

Destructor for UpdateProxyScene.

void postHop(const km::Ktime &t, const km::Vec &x)#

Update the ProxyScene.

Parameters:
  • t – Current time. Not used.

  • x – Current state. Not used.

Public Static Functions

static kc::ks_ptr<UpdateProxyScene> create(std::string_view name, const kc::ks_ptr<kd::ModelManager> &mm, const kc::ks_ptr<ks::ProxyScene> &scene)#

Constructor.

Parameters:
  • name – The name of the model.

  • mm – The ModelManager to register this model with.

  • scene – The ProxyScene to call update on.

Returns:

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