Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
rqt_console.message_data_model.MessageDataModel Class Reference
Inheritance diagram for rqt_console.message_data_model.MessageDataModel:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def columnCount (self, parent=None)
 
def data (self, index, role=None)
 
def get_message_between (self, start_time, end_time=None)
 
def get_message_limit (self)
 
def get_selected_text (self, rowlist)
 
def get_severity_dict (self)
 
def get_time_range (self, rowlist)
 
def get_unique_nodes (self)
 
def get_unique_severities (self)
 
def get_unique_topics (self)
 
def headerData (self, section, orientation, role=None)
 
def insert_rows (self, msgs)
 
def remove_rows (self, rowlist)
 
def rowCount (self, parent=None)
 
def set_message_limit (self, new_limit)
 

Static Public Attributes

list columns = ['message', 'severity', 'node', 'stamp', 'topics', 'location']
 
dictionary severity_colors
 

Private Member Functions

def _enforce_message_limit (self, limit)
 

Private Attributes

 _error_icon
 
 _info_icon
 
 _message_limit
 
 _messages
 
 _warning_icon
 

Detailed Description

Definition at line 40 of file message_data_model.py.

Constructor & Destructor Documentation

◆ __init__()

def rqt_console.message_data_model.MessageDataModel.__init__ (   self)

Definition at line 53 of file message_data_model.py.

Member Function Documentation

◆ _enforce_message_limit()

def rqt_console.message_data_model.MessageDataModel._enforce_message_limit (   self,
  limit 
)
private

Definition at line 153 of file message_data_model.py.

◆ columnCount()

def rqt_console.message_data_model.MessageDataModel.columnCount (   self,
  parent = None 
)

Definition at line 66 of file message_data_model.py.

◆ data()

def rqt_console.message_data_model.MessageDataModel.data (   self,
  index,
  role = None 
)

Definition at line 69 of file message_data_model.py.

◆ get_message_between()

def rqt_console.message_data_model.MessageDataModel.get_message_between (   self,
  start_time,
  end_time = None 
)
:param start_time: time to start in timestamp form (including decimal
fractions of a second is acceptable, ''unixtimestamp''
:param end_time: time to end in timestamp form (including decimal
fractions of a second is acceptable, ''unixtimestamp'' (Optional)
:returns: list of messages in the time range ''list[message]''

Definition at line 259 of file message_data_model.py.

◆ get_message_limit()

def rqt_console.message_data_model.MessageDataModel.get_message_limit (   self)

Definition at line 146 of file message_data_model.py.

◆ get_selected_text()

def rqt_console.message_data_model.MessageDataModel.get_selected_text (   self,
  rowlist 
)
Returns an easily readable block of text for the currently selected rows
:param rowlist: list of row indexes, ''list(int)''
:returns: the text from those indexes, ''str''

Definition at line 207 of file message_data_model.py.

◆ get_severity_dict()

def rqt_console.message_data_model.MessageDataModel.get_severity_dict (   self)

Definition at line 256 of file message_data_model.py.

◆ get_time_range()

def rqt_console.message_data_model.MessageDataModel.get_time_range (   self,
  rowlist 
)
:param rowlist: a list of row indexes, ''list''
:returns: a tuple of min and max times in a rowlist in
  '(unix timestamp).(fraction of second)' format, ''tuple(str,str)''

Definition at line 221 of file message_data_model.py.

◆ get_unique_nodes()

def rqt_console.message_data_model.MessageDataModel.get_unique_nodes (   self)

Definition at line 237 of file message_data_model.py.

◆ get_unique_severities()

def rqt_console.message_data_model.MessageDataModel.get_unique_severities (   self)

Definition at line 243 of file message_data_model.py.

◆ get_unique_topics()

def rqt_console.message_data_model.MessageDataModel.get_unique_topics (   self)

Definition at line 249 of file message_data_model.py.

◆ headerData()

def rqt_console.message_data_model.MessageDataModel.headerData (   self,
  section,
  orientation,
  role = None 
)

Definition at line 127 of file message_data_model.py.

◆ insert_rows()

def rqt_console.message_data_model.MessageDataModel.insert_rows (   self,
  msgs 
)

Definition at line 159 of file message_data_model.py.

◆ remove_rows()

def rqt_console.message_data_model.MessageDataModel.remove_rows (   self,
  rowlist 
)
:param rowlist: list of row indexes, ''list(int)''
:returns: True if the indexes were removed successfully, ''bool''

Definition at line 171 of file message_data_model.py.

◆ rowCount()

def rqt_console.message_data_model.MessageDataModel.rowCount (   self,
  parent = None 
)

Definition at line 63 of file message_data_model.py.

◆ set_message_limit()

def rqt_console.message_data_model.MessageDataModel.set_message_limit (   self,
  new_limit 
)

Definition at line 149 of file message_data_model.py.

Member Data Documentation

◆ _error_icon

rqt_console.message_data_model.MessageDataModel._error_icon
private

Definition at line 59 of file message_data_model.py.

◆ _info_icon

rqt_console.message_data_model.MessageDataModel._info_icon
private

Definition at line 57 of file message_data_model.py.

◆ _message_limit

rqt_console.message_data_model.MessageDataModel._message_limit
private

Definition at line 56 of file message_data_model.py.

◆ _messages

rqt_console.message_data_model.MessageDataModel._messages
private

Definition at line 55 of file message_data_model.py.

◆ _warning_icon

rqt_console.message_data_model.MessageDataModel._warning_icon
private

Definition at line 58 of file message_data_model.py.

◆ columns

list rqt_console.message_data_model.MessageDataModel.columns = ['message', 'severity', 'node', 'stamp', 'topics', 'location']
static

Definition at line 43 of file message_data_model.py.

◆ severity_colors

dictionary rqt_console.message_data_model.MessageDataModel.severity_colors
static
Initial value:
= {
Message.DEBUG: QBrush(Qt.darkCyan),
Message.INFO: QBrush(Qt.darkBlue),
Message.WARN: QBrush(Qt.darkYellow),
Message.ERROR: QBrush(Qt.darkRed),
Message.FATAL: QBrush(Qt.red),
}

Definition at line 45 of file message_data_model.py.


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


rqt_console
Author(s): Aaron Blasdel
autogenerated on Fri Mar 17 2023 02:44:51