Package node_manager_fkie :: Module parameter_list_model :: Class ParameterModel
[frames] | no frames]

Class ParameterModel

source code

python_qt_binding.QtGui.QStandardItemModel --+
                                             |
                                            ParameterModel

The model to manage the list with parameter in ROS network.

Instance Methods
 
__init__(self)
Creates a new list model.
source code
QtCore.Qt.ItemFlag
flags(self, index)
Returns: Flag or the requestet item
source code
 
updateModelData(self, parameters)
Updates the parameter list model.
source code
[ParameterNameItem, ParameterValueItem]
createParameter(self, name, value)
Creates the list of the items.
source code
Instance Variables
  header = [('Parameter', 300), ('Type', 50), ('Value',-1)]
the list with columns [(name, width), ...]
Method Details

flags(self, index)

source code 
Parameters:
Returns: QtCore.Qt.ItemFlag
Flag or the requestet item

updateModelData(self, parameters)

source code 

Updates the parameter list model. New parameter will be inserted in sorting order. Not available parameter removed from the model.

Parameters:
  • parameters (dict(parameter name : value)) - The dictionary with parameter

createParameter(self, name, value)

source code 

Creates the list of the items. This list is used for the visualization of the parameter as a table row.

Parameters:
  • name (str) - the parameter name
  • value (each value, that can be converted to str using str()) - the value of the parameter
Returns: [ParameterNameItem, ParameterValueItem]
the list for the representation as a row