Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rosmon::UI Class Reference

#include <ui.h>

Classes

struct  ChannelInfo
 

Public Member Functions

void log (const LogEvent &event)
 
 UI (monitor::Monitor *monitor, const FDWatcher::Ptr &fdWatcher)
 
void update ()
 
 ~UI ()
 

Private Member Functions

bool anyMuted () const
 
void checkTerminal ()
 
void checkWindowSize ()
 
void drawStatusLine ()
 
void handleKey (int key)
 
void muteAll ()
 
std::string nodeDisplayName (monitor::NodeMonitor &node, std::size_t maxWidth=std::string::npos)
 
void readInput ()
 
void scheduleUpdate ()
 
void setupColors ()
 
void startAll ()
 
bool stderrOnly ()
 
void stopAll ()
 
void toggleStderrOnly ()
 
void unmuteAll ()
 

Private Attributes

Terminal::Color m_color_bar
 
int m_columns
 
FDWatcher::Ptr m_fdWatcher
 
monitor::Monitorm_monitor
 
std::map< std::string, ChannelInfom_nodeColorMap
 
unsigned int m_nodeLabelWidth = 20
 
bool m_refresh_required = true
 
bool m_searchActive = false
 
unsigned int m_searchDisplayColumns = 0
 
std::vector< unsigned int > m_searchNodes
 
unsigned int m_searchSelectedIndex
 
std::string m_searchString
 
int m_selectedNode
 
ros::WallTimer m_sizeTimer
 
bool m_stderr_only = false
 
std::string m_strSetColor
 
Terminal::Style m_style_bar
 
Terminal::Style m_style_barHighlight
 
Terminal::Style m_style_barKey
 
Terminal::Style m_style_barLine
 
Terminal::Style m_style_nodeCrashed
 
Terminal::Style m_style_nodeCrashedFaded
 
Terminal::Style m_style_nodeIdle
 
Terminal::Style m_style_nodeIdleFaded
 
Terminal::Style m_style_nodeKey
 
Terminal::Style m_style_nodeKeyMuted
 
Terminal::Style m_style_nodeRunning
 
Terminal::Style m_style_nodeRunningFaded
 
Terminal::Style m_style_nodeWaiting
 
Terminal::Style m_style_nodeWaitingFaded
 
Terminal m_term
 
ros::WallTimer m_terminalCheckTimer
 

Detailed Description

Definition at line 20 of file ui.h.

Constructor & Destructor Documentation

rosmon::UI::UI ( monitor::Monitor monitor,
const FDWatcher::Ptr fdWatcher 
)
explicit

Definition at line 36 of file ui.cpp.

rosmon::UI::~UI ( )

Definition at line 93 of file ui.cpp.

Member Function Documentation

bool rosmon::UI::anyMuted ( ) const
private

Definition at line 752 of file ui.cpp.

void rosmon::UI::checkTerminal ( )
private

Definition at line 562 of file ui.cpp.

void rosmon::UI::checkWindowSize ( )
private

Definition at line 540 of file ui.cpp.

void rosmon::UI::drawStatusLine ( )
private

Definition at line 161 of file ui.cpp.

void rosmon::UI::handleKey ( int  key)
private

Definition at line 571 of file ui.cpp.

void rosmon::UI::log ( const LogEvent event)

Definition at line 420 of file ui.cpp.

void rosmon::UI::muteAll ( )
private

Definition at line 771 of file ui.cpp.

std::string rosmon::UI::nodeDisplayName ( monitor::NodeMonitor node,
std::size_t  maxWidth = std::string::npos 
)
private

Definition at line 146 of file ui.cpp.

void rosmon::UI::readInput ( )
private

Definition at line 553 of file ui.cpp.

void rosmon::UI::scheduleUpdate ( )
private

Definition at line 783 of file ui.cpp.

void rosmon::UI::setupColors ( )
private

Definition at line 98 of file ui.cpp.

void rosmon::UI::startAll ( )
private

Definition at line 759 of file ui.cpp.

bool rosmon::UI::stderrOnly ( )
private

Definition at line 788 of file ui.cpp.

void rosmon::UI::stopAll ( )
private

Definition at line 765 of file ui.cpp.

void rosmon::UI::toggleStderrOnly ( )
private

Definition at line 793 of file ui.cpp.

void rosmon::UI::unmuteAll ( )
private

Definition at line 777 of file ui.cpp.

void rosmon::UI::update ( )

Definition at line 513 of file ui.cpp.

Member Data Documentation

Terminal::Color rosmon::UI::m_color_bar
private

Definition at line 97 of file ui.h.

int rosmon::UI::m_columns
private

Definition at line 81 of file ui.h.

FDWatcher::Ptr rosmon::UI::m_fdWatcher
private

Definition at line 75 of file ui.h.

monitor::Monitor* rosmon::UI::m_monitor
private

Definition at line 74 of file ui.h.

std::map<std::string, ChannelInfo> rosmon::UI::m_nodeColorMap
private

Definition at line 85 of file ui.h.

unsigned int rosmon::UI::m_nodeLabelWidth = 20
private

Definition at line 117 of file ui.h.

bool rosmon::UI::m_refresh_required = true
private

Definition at line 76 of file ui.h.

bool rosmon::UI::m_searchActive = false
private

Definition at line 91 of file ui.h.

unsigned int rosmon::UI::m_searchDisplayColumns = 0
private

Definition at line 95 of file ui.h.

std::vector<unsigned int> rosmon::UI::m_searchNodes
private

Definition at line 94 of file ui.h.

unsigned int rosmon::UI::m_searchSelectedIndex
private

Definition at line 93 of file ui.h.

std::string rosmon::UI::m_searchString
private

Definition at line 92 of file ui.h.

int rosmon::UI::m_selectedNode
private

Definition at line 87 of file ui.h.

ros::WallTimer rosmon::UI::m_sizeTimer
private

Definition at line 82 of file ui.h.

bool rosmon::UI::m_stderr_only = false
private

Definition at line 77 of file ui.h.

std::string rosmon::UI::m_strSetColor
private

Definition at line 89 of file ui.h.

Terminal::Style rosmon::UI::m_style_bar
private

Definition at line 100 of file ui.h.

Terminal::Style rosmon::UI::m_style_barHighlight
private

Definition at line 102 of file ui.h.

Terminal::Style rosmon::UI::m_style_barKey
private

Definition at line 101 of file ui.h.

Terminal::Style rosmon::UI::m_style_barLine
private

Definition at line 99 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeCrashed
private

Definition at line 109 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeCrashedFaded
private

Definition at line 114 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeIdle
private

Definition at line 107 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeIdleFaded
private

Definition at line 112 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeKey
private

Definition at line 104 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeKeyMuted
private

Definition at line 105 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeRunning
private

Definition at line 108 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeRunningFaded
private

Definition at line 113 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeWaiting
private

Definition at line 110 of file ui.h.

Terminal::Style rosmon::UI::m_style_nodeWaitingFaded
private

Definition at line 115 of file ui.h.

Terminal rosmon::UI::m_term
private

Definition at line 79 of file ui.h.

ros::WallTimer rosmon::UI::m_terminalCheckTimer
private

Definition at line 83 of file ui.h.


The documentation for this class was generated from the following files:


rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43