Public Types | Public Member Functions | Public Attributes | Protected Slots | Private Attributes | List of all members
moveit_rviz_plugin::ProgressBarDelegate Class Reference

Delegate to show the joint value as with a progress bar indicator between min and max. More...

#include <motion_planning_frame_joints_widget.h>

Inheritance diagram for moveit_rviz_plugin::ProgressBarDelegate:
Inheritance graph
[legend]

Public Types

enum  CustomRole { JointTypeRole = Qt::UserRole, VariableBoundsRole, JointRangeFractionRole }
 
enum  RevoluteUnit { DEGREES = 0, RADIANS = 1 }
 

Public Member Functions

QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
bool isEditing () const
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 ProgressBarDelegate (QWidget *parent=nullptr)
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void setUnit (RevoluteUnit unit)
 

Public Attributes

RevoluteUnit unit_
 

Protected Slots

void onEditorDestroyed (QObject *) const
 

Private Attributes

int editor_open_count_ = 0
 

Detailed Description

Delegate to show the joint value as with a progress bar indicator between min and max.

Definition at line 170 of file motion_planning_frame_joints_widget.h.

Member Enumeration Documentation

◆ CustomRole

Enumerator
JointTypeRole 
VariableBoundsRole 
JointRangeFractionRole 

Definition at line 175 of file motion_planning_frame_joints_widget.h.

◆ RevoluteUnit

Enumerator
DEGREES 
RADIANS 

Definition at line 181 of file motion_planning_frame_joints_widget.h.

Constructor & Destructor Documentation

◆ ProgressBarDelegate()

moveit_rviz_plugin::ProgressBarDelegate::ProgressBarDelegate ( QWidget *  parent = nullptr)
inline

Definition at line 187 of file motion_planning_frame_joints_widget.h.

Member Function Documentation

◆ createEditor()

QWidget * moveit_rviz_plugin::ProgressBarDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 520 of file motion_planning_frame_joints_widget.cpp.

◆ isEditing()

bool moveit_rviz_plugin::ProgressBarDelegate::isEditing ( ) const

Definition at line 561 of file motion_planning_frame_joints_widget.cpp.

◆ onEditorDestroyed

void moveit_rviz_plugin::ProgressBarDelegate::onEditorDestroyed ( QObject *  ) const
protectedslot

Definition at line 555 of file motion_planning_frame_joints_widget.cpp.

◆ paint()

void moveit_rviz_plugin::ProgressBarDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Definition at line 479 of file motion_planning_frame_joints_widget.cpp.

◆ setEditorData()

void moveit_rviz_plugin::ProgressBarDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

Definition at line 566 of file motion_planning_frame_joints_widget.cpp.

◆ setModelData()

void moveit_rviz_plugin::ProgressBarDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

Definition at line 584 of file motion_planning_frame_joints_widget.cpp.

◆ setUnit()

void moveit_rviz_plugin::ProgressBarDelegate::setUnit ( RevoluteUnit  unit)
inline

Definition at line 191 of file motion_planning_frame_joints_widget.h.

Member Data Documentation

◆ editor_open_count_

int moveit_rviz_plugin::ProgressBarDelegate::editor_open_count_ = 0
mutableprivate

Definition at line 207 of file motion_planning_frame_joints_widget.h.

◆ unit_

RevoluteUnit moveit_rviz_plugin::ProgressBarDelegate::unit_

Definition at line 201 of file motion_planning_frame_joints_widget.h.


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


visualization
Author(s): Ioan Sucan , Dave Coleman , Sachin Chitta
autogenerated on Thu Feb 27 2025 03:29:15