Classes | Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
rqt_rosmon::NodeModel Class Reference

#include <node_model.h>

Inheritance diagram for rqt_rosmon::NodeModel:
Inheritance graph
[legend]

Classes

struct  Entry
 

Public Types

enum  Column {
  COL_NAME, COL_NAMESPACE, COL_RESTART_COUNT, COL_LOAD,
  COL_MEMORY, COL_COUNT
}
 
enum  Role { SortRole = Qt::UserRole }
 

Public Slots

void setNamespace (const QString &ns)
 
void unsubscribe ()
 

Signals

void stateReceived (const rosmon_msgs::StateConstPtr &state)
 

Public Member Functions

int columnCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
QString namespaceString () const
 
 NodeModel (ros::NodeHandle &nh, QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent) const override
 
 ~NodeModel () override=default
 

Private Slots

void updateState (const rosmon_msgs::StateConstPtr &state)
 

Private Attributes

std::vector< Entrym_entries
 
QString m_namespace
 
ros::NodeHandle m_nh
 
ros::Subscriber m_sub_state
 

Detailed Description

Definition at line 17 of file node_model.h.

Member Enumeration Documentation

Enumerator
COL_NAME 
COL_NAMESPACE 
COL_RESTART_COUNT 
COL_LOAD 
COL_MEMORY 
COL_COUNT 

Definition at line 21 of file node_model.h.

Enumerator
SortRole 

Definition at line 32 of file node_model.h.

Constructor & Destructor Documentation

rqt_rosmon::NodeModel::NodeModel ( ros::NodeHandle nh,
QObject *  parent = nullptr 
)
explicit

Definition at line 17 of file node_model.cpp.

rqt_rosmon::NodeModel::~NodeModel ( )
overridedefault

Member Function Documentation

int rqt_rosmon::NodeModel::columnCount ( const QModelIndex &  parent) const
override

Definition at line 121 of file node_model.cpp.

QVariant rqt_rosmon::NodeModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 129 of file node_model.cpp.

QVariant rqt_rosmon::NodeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Definition at line 209 of file node_model.cpp.

QString rqt_rosmon::NodeModel::namespaceString ( ) const
inline

Definition at line 46 of file node_model.h.

int rqt_rosmon::NodeModel::rowCount ( const QModelIndex &  parent) const
override

Definition at line 113 of file node_model.cpp.

void rqt_rosmon::NodeModel::setNamespace ( const QString &  ns)
slot

Definition at line 29 of file node_model.cpp.

void rqt_rosmon::NodeModel::stateReceived ( const rosmon_msgs::StateConstPtr &  state)
signal
void rqt_rosmon::NodeModel::unsubscribe ( )
slot

Definition at line 54 of file node_model.cpp.

void rqt_rosmon::NodeModel::updateState ( const rosmon_msgs::StateConstPtr &  state)
privateslot

Definition at line 59 of file node_model.cpp.

Member Data Documentation

std::vector<Entry> rqt_rosmon::NodeModel::m_entries
private

Definition at line 74 of file node_model.h.

QString rqt_rosmon::NodeModel::m_namespace
private

Definition at line 72 of file node_model.h.

ros::NodeHandle rqt_rosmon::NodeModel::m_nh
private

Definition at line 70 of file node_model.h.

ros::Subscriber rqt_rosmon::NodeModel::m_sub_state
private

Definition at line 76 of file node_model.h.


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


rqt_rosmon
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:46