X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fnetvis.h;h=3739d330ec941de08c03c2698a576269bcfa4b7a;hb=42bd2e83d66a98584540dd8cc5b47ee2349fe844;hp=fd1b73cddc57440a38e7a3fc3ad48203fd1d9a5c;hpb=c147c9caaf9bc2f6323baf188a438ced9f0f5894;p=netvis.git diff --git a/source/netvis.h b/source/netvis.h index fd1b73c..3739d33 100644 --- a/source/netvis.h +++ b/source/netvis.h @@ -42,7 +42,7 @@ private: std::map hosts; std::map disabled_hosts; std::list packets; - std::map ports; + std::map ports; bool draw_labels; bool blend; @@ -51,16 +51,16 @@ private: unsigned frames; float fps; - Msp::Debug::Profiler profiler; - public: NetVis(int, char **); ~NetVis(); const Msp::GL::Font &get_font() const { return *font; } const std::map &get_hosts() const { return hosts; } + const std::map &get_ports() const { return ports; } private: virtual void tick(); + void render(); Host &get_host(unsigned); Msp::GL::Color generate_color(bool) const; const Port &get_port(unsigned);