Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 from python_qt_binding.QtGui import QModelIndex
00037
00038
00039 class TreenodeStatus(QModelIndex):
00040 """
00041
00042 This class contains very similar information with
00043 rqt_reconfigure.ParameterItem. The purpose of this class is to enable
00044 FilterChildrenModel (subclassing QSortFilterProxyModel) to look up each
00045 node, which, afaik, is not possible via QSortFilterProxyModel and that's
00046 why I created this class.
00047
00048 That said, to store an info about each treenode:
00049
00050 - ParameterItem should be used to show on view.
00051 - This class should be used when you need to keep track from
00052 QAbstractProxyModel
00053
00054 :author: Isaac Saito
00055 """
00056
00057 def __init__(self, nodename_full=None, qmindex=None):
00058 """
00059 :param index_id: default value is -1, which indicates "not set". This
00060 can be set.
00061 :param nodename_full: default value is None, which indicates "not set".
00062 This can be set.
00063 :type index_id: qint64
00064 :type nodename_full: str
00065 :type qmindex: QModelIndex
00066 """
00067 super(TreenodeStatus, self).__init__(qmindex)
00068
00069 self._is_eval_done = False
00070 self._shows = False
00071 self._nodename_full = nodename_full
00072
00073 def set_nodename_full(self, nodename_full):
00074 self._nodename_full = nodename_full
00075
00076 def get_nodename_full(self):
00077 return self._nodename_full
00078
00079 def set_is_eval_done(self, v):
00080 self._is_eval_done = v
00081
00082 def get_is_eval_done(self):
00083 return self._is_eval_done
00084
00085 def set_shows(self, v):
00086 self._shows = v
00087
00088 def get_shows(self):
00089 return self._shows