ParameterHandler
A library that handles parameters at runtime.
rqt_parameters::MatrixSpinBox< SpinBoxType_ > Class Template Reference

Class that combines multiple spinboxes representing a matrix. More...

#include <MatrixSpinBox.hpp>

Inheritance diagram for rqt_parameters::MatrixSpinBox< SpinBoxType_ >:
Inheritance graph

Public Member Functions

 MatrixSpinBox (QWidget *parent)
 Assertion to check for valid base class. More...
 
 ~MatrixSpinBox ()
 Default destructor. More...
 
void refresh (std::size_t rows, std::size_t cols)
 
std::unique_ptr< SpinBoxType_ > & getSpinbox (std::size_t row, std::size_t col)
 
std::size_t rows () const
 
std::size_t cols () const
 

Private Member Functions

void clearLayout (QLayout *layout)
 

Private Attributes

QGridLayout grid_
 Grid layout to arrange the matrix of spinboxes. More...
 
std::vector< std::unique_ptr< SpinBoxType_ > > spinboxes_
 Container for the spinboxes (row-major) More...
 
std::size_t rows_
 Number of rows of the matrix of spinboxes. More...
 
std::size_t cols_
 Number of columns of the matrix of spinboxes. More...
 

Detailed Description

template<typename SpinBoxType_>
class rqt_parameters::MatrixSpinBox< SpinBoxType_ >

Class that combines multiple spinboxes representing a matrix.

Constructor & Destructor Documentation

template<typename SpinBoxType_ >
rqt_parameters::MatrixSpinBox< SpinBoxType_ >::MatrixSpinBox ( QWidget *  parent)
inline

Assertion to check for valid base class.

template<typename SpinBoxType_ >
rqt_parameters::MatrixSpinBox< SpinBoxType_ >::~MatrixSpinBox ( )
inline

Default destructor.

Member Function Documentation

template<typename SpinBoxType_ >
void rqt_parameters::MatrixSpinBox< SpinBoxType_ >::clearLayout ( QLayout *  layout)
inlineprivate
template<typename SpinBoxType_ >
std::size_t rqt_parameters::MatrixSpinBox< SpinBoxType_ >::cols ( ) const
inline
Returns
current columns of the matrix spinbox
template<typename SpinBoxType_ >
std::unique_ptr<SpinBoxType_>& rqt_parameters::MatrixSpinBox< SpinBoxType_ >::getSpinbox ( std::size_t  row,
std::size_t  col 
)
inline
template<typename SpinBoxType_ >
void rqt_parameters::MatrixSpinBox< SpinBoxType_ >::refresh ( std::size_t  rows,
std::size_t  cols 
)
inline
template<typename SpinBoxType_ >
std::size_t rqt_parameters::MatrixSpinBox< SpinBoxType_ >::rows ( ) const
inline
Returns
current rows of the matrix spinbox

Member Data Documentation

template<typename SpinBoxType_ >
std::size_t rqt_parameters::MatrixSpinBox< SpinBoxType_ >::cols_
private

Number of columns of the matrix of spinboxes.

template<typename SpinBoxType_ >
QGridLayout rqt_parameters::MatrixSpinBox< SpinBoxType_ >::grid_
private

Grid layout to arrange the matrix of spinboxes.

template<typename SpinBoxType_ >
std::size_t rqt_parameters::MatrixSpinBox< SpinBoxType_ >::rows_
private

Number of rows of the matrix of spinboxes.

template<typename SpinBoxType_ >
std::vector< std::unique_ptr<SpinBoxType_> > rqt_parameters::MatrixSpinBox< SpinBoxType_ >::spinboxes_
private

Container for the spinboxes (row-major)


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