|
MetaImGUI 1.0.0
ImGui Application Template for C++20
|
ISS Tracker that fetches ISS position data asynchronously. More...
#include <ISSTracker.h>
Public Member Functions | |
| ISSTracker () | |
| ~ISSTracker () | |
| ISSTracker (const ISSTracker &)=delete | |
| ISSTracker & | operator= (const ISSTracker &)=delete |
| ISSTracker (ISSTracker &&)=delete | |
| ISSTracker & | operator= (ISSTracker &&)=delete |
| void | StartTracking (std::function< void(const ISSPosition &)> callback=nullptr) |
| Start tracking ISS position asynchronously. | |
| void | StopTracking () |
| Stop tracking. | |
| bool | IsTracking () const |
| Check if tracking is active. | |
| ISSPosition | GetCurrentPosition () const |
| Get the current ISS position (thread-safe) | |
| void | GetPositionHistory (std::vector< double > &latitudes, std::vector< double > &longitudes) const |
| Get position history for orbit trail (thread-safe) | |
| size_t | GetMaxHistorySize () const |
| Get the maximum number of positions stored in history. | |
| ISSPosition | FetchPositionSync () |
| Manually fetch ISS position once (synchronous) | |
ISS Tracker that fetches ISS position data asynchronously.
This class demonstrates:
Definition at line 51 of file ISSTracker.h.
| MetaImGUI::ISSTracker::ISSTracker | ( | ) |
Definition at line 34 of file ISSTracker.cpp.
| MetaImGUI::ISSTracker::~ISSTracker | ( | ) |
Definition at line 36 of file ISSTracker.cpp.
References StopTracking().
|
delete |
|
delete |
| ISSPosition MetaImGUI::ISSTracker::FetchPositionSync | ( | ) |
Manually fetch ISS position once (synchronous)
Definition at line 102 of file ISSTracker.cpp.
| ISSPosition MetaImGUI::ISSTracker::GetCurrentPosition | ( | ) | const |
Get the current ISS position (thread-safe)
Definition at line 81 of file ISSTracker.cpp.
Referenced by MetaImGUI::UIRenderer::RenderISSTrackerWindow().
|
inline |
Get the maximum number of positions stored in history.
Definition at line 93 of file ISSTracker.h.
| void MetaImGUI::ISSTracker::GetPositionHistory | ( | std::vector< double > & | latitudes, |
| std::vector< double > & | longitudes | ||
| ) | const |
Get position history for orbit trail (thread-safe)
| latitudes | Output vector for latitude values |
| longitudes | Output vector for longitude values |
Definition at line 86 of file ISSTracker.cpp.
Referenced by MetaImGUI::UIRenderer::RenderISSTrackerWindow().
| bool MetaImGUI::ISSTracker::IsTracking | ( | ) | const |
Check if tracking is active.
Definition at line 77 of file ISSTracker.cpp.
Referenced by MetaImGUI::UIRenderer::RenderISSTrackerWindow().
|
delete |
|
delete |
| void MetaImGUI::ISSTracker::StartTracking | ( | std::function< void(const ISSPosition &)> | callback = nullptr | ) |
Start tracking ISS position asynchronously.
| callback | Function to call when new position data is available |
Definition at line 40 of file ISSTracker.cpp.
References LOG_INFO.
Referenced by MetaImGUI::UIRenderer::RenderISSTrackerWindow().
| void MetaImGUI::ISSTracker::StopTracking | ( | ) |
Stop tracking.
Definition at line 63 of file ISSTracker.cpp.
References LOG_INFO.
Referenced by MetaImGUI::UIRenderer::RenderISSTrackerWindow(), and ~ISSTracker().