rqt_topic.models.topic_list module
- class rqt_topic.models.topic_list.TopicListModel(*args: Any, **kwargs: Any)
Bases:
QAbstractTableModel
- available_topics()
Return list of all topic names currently in model.
- clear()
- clear_topic(topic: TopicModel)
- columnCount(parent: python_qt_binding.QtCore.QModelIndex = python_qt_binding.QtCore.QModelIndex)
- create_topic_worker(topic: TopicModel)
- data(index, role)
Call for every cell in the table, returns different things depending on the given role.
TODO(evan.flynn): extend this to handle formatting / colors for specific data:
https://www.pythonguis.com/tutorials/pyside-qtableview-modelviews-numpy-pandas/
- delete_topic_worker(topic: TopicModel)
- flags(index)
- headerData(index: int, orientation, role)
- monitoring()
Return True if any topics are currently being monitored.
- monitoring_count()
Return the number of topics currently being monitored.
- rowCount(parent: python_qt_binding.QtCore.QModelIndex = python_qt_binding.QtCore.QModelIndex)
- setData(index, value, role)
Call whenever data is changed.
- stop_monitoring(topic: TopicModel)
Stop monitoring a topic.
- update_row(row: int)
- update_topic(topic: TopicModel)
Update a topic with the given TopicModel.
- class rqt_topic.models.topic_list.TopicListProxy(*args: Any, **kwargs: Any)
Bases:
QSortFilterProxyModel
A proxy model to enable sort and filtering of the underlying TopicListModel.
- filterAcceptsRow(sourceRow: int, sourceParent: python_qt_binding.QtCore.QModelIndex)
Return true if row should be displayed, false otherwise.
- rqt_topic.models.topic_list.generate_topic_list(number_of_topics: int = 10)