Program Listing for File TimeDisplay.h#
↰ Return to documentation for file (include/Karana/GeneralKModels/TimeDisplay.h)
/*
*Copyright(c)2024-2025KaranaDynamicsPtyLtd.Allrightsreserved.
*
*NOTICETOUSER:
*
*Thissourcecodeand/ordocumentation(the"LicensedMaterials")is
*theconfidentialandproprietaryinformationofKaranaDynamicsInc.
*UseoftheseLicensedMaterialsisgovernedbythetermsandconditions
*ofaseparatesoftwarelicenseagreementbetweenKaranaDynamicsandthe
*Licensee("LicenseAgreement").Unlessexpresslypermittedunderthat
*agreement,anyreproduction,modification,distribution,ordisclosure
*oftheLicensedMaterials,inwholeorinpart,toanythirdparty
*withoutthepriorwrittenconsentofKaranaDynamicsisstrictlyprohibited.
*
*THELICENSEDMATERIALSAREPROVIDED"ASIS"WITHOUTWARRANTYOFANYKIND.
*KARANADYNAMICSDISCLAIMSALLWARRANTIES,EXPRESSORIMPLIED,INCLUDING
*BUTNOTLIMITEDTOWARRANTIESOFMERCHANTABILITY,NON-INFRINGEMENT,AND
*FITNESSFORAPARTICULARPURPOSE.
*
*INNOEVENTSHALLKARANADYNAMICSBELIABLEFORANYDAMAGESWHATSOEVER,
*INCLUDINGBUTNOTLIMITEDTOLOSSOFPROFITS,DATA,ORUSE,EVENIF
*ADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGES,WHETHERINCONTRACT,TORT,
*OROTHERWISEARISINGOUTOFORINCONNECTIONWITHTHELICENSEDMATERIALS.
*
*U.S.GovernmentEndUsers:TheLicensedMaterialsarea"commercialitem"
*asdefinedat48C.F.R.2.101,andareprovidedtotheU.S.Government
*onlyasacommercialenditemunderthetermsofthislicense.
*
*AnyuseoftheLicensedMaterialsinindividualorcommercialsoftwaremust
*include,intheuserdocumentationandinternalsourcecodecomments,
*thisNotice,Disclaimer,andU.S.GovernmentUseProvision.
*/
#pragmaonce
#include"Karana/SOADyn/KModel.h"
#include"Karana/Scene/GraphicalScene.h"
namespaceKarana::Models{
classTimeDisplayParams:publicKModelParams{
public:
TimeDisplayParams(std::string_viewname);
boolisFinalized()constfinal;
Karana::Scene::Colorcolor=Karana::Scene::Color::WHITE;
};
classTimeDisplay:publicKModel<TimeDisplay,TimeDisplayParams>{
public:
//TODOMakeprotected
TimeDisplay(std::string_viewname,
constKarana::Core::ks_ptr<Karana::Dynamics::StatePropagator>&sp,
constKarana::Core::ks_ptr<Karana::Scene::GraphicalScene>&scene);
~TimeDisplay();
staticKarana::Core::ks_ptr<TimeDisplay>
create(std::string_viewname,
constKarana::Core::ks_ptr<Karana::Dynamics::StatePropagator>&sp,
constKarana::Core::ks_ptr<Karana::Scene::GraphicalScene>&scene);
voidpostModelStep(constKarana::Math::Ktime&t,constKarana::Math::Vec&x);
void_unregisterModel()override;
private:
Karana::Core::ks_ptr<Karana::Scene::GraphicalScene>_scene;
Karana::Core::id_t_overlay_id=0;
};
}//namespaceKarana::Models