From ee8a1573204f76b16b9fb711608447aabee55696 Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Wed, 21 Jul 2021 21:14:30 +0300 Subject: Added header file comments for classes and methods. Renamed all factory methods to ::Build(). --- src/live.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/live.hpp') diff --git a/src/live.hpp b/src/live.hpp index d7baa61..33f3b3d 100644 --- a/src/live.hpp +++ b/src/live.hpp @@ -12,6 +12,9 @@ #include "color-map.hpp" #include +/** + * Live output God object, keeping track of rendering, window, history etc. + */ class LiveOutput { private: /* configuration */ @@ -30,10 +33,29 @@ public: LiveOutput(LiveOutput &&) = delete; LiveOutput & operator=(const LiveOutput&) = delete; + /** + * @param conf Configuration to use. + * @param cmap Color map instance to use. + * @param vmap Value map instance to use. + */ LiveOutput(const Configuration& conf, const ColorMap& cmap, const ValueMap& vmap); + /** + * Add a FFT window to the history and render it. + * @param win_values Window values, real, scaled. + * @return A copy of the colorized window that is rendered. + */ std::vector AddWindow(const RealWindow& win_values); + + /** + * Handle window events. + * @return True if window was closed. + */ bool HandleEvents(); + + /** + * Render live window. + */ void Render(); }; -- cgit v1.2.3