Public Member Functions | |
def | __init__ |
def | get_xpos_marker |
def | mousePressEvent |
def | mouseReleaseEvent |
def | set_init_data |
def | set_marker_pos |
def | set_range |
Enabling this will collide with QGraphicsScene and ends up with QGraphicsScene not being updated. | |
def | set_val_from_x |
def | set_xpos_marker |
def | slot_redraw |
Private Member Functions | |
def | _clamp |
def | _instantiate_tl_icon |
Private Attributes | |
_color_callback | |
_max_num_seconds | |
_min_num_seconds | |
_parent | |
_timeline_marker | |
_timeline_marker_height | |
_timeline_marker_width | |
_xpos_marker | |
Static Private Attributes | |
tuple | _sig_update = Signal() |
When you instantiate this class, do NOT forget to call set_init_data to set necessary data.
Definition at line 42 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.__init__ | ( | self, | |
parent | |||
) |
Cannot take args other than parent due to loadUi limitation.
Definition at line 50 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView._clamp | ( | self, | |
val, | |||
min, | |||
max | |||
) | [private] |
Judge if val is within the range given by min & max. If not, return either min or max. :type val: any number format :type min: any number format :type max: any number format :rtype: int
Definition at line 171 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView._instantiate_tl_icon | ( | self | ) | [private] |
Definition at line 243 of file timeline.py.
Definition at line 118 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.mousePressEvent | ( | self, | |
evt | |||
) |
:type event: QMouseEvent
Definition at line 134 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.mouseReleaseEvent | ( | self, | |
event | |||
) |
:type event: QMouseEvent
Definition at line 121 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.set_init_data | ( | self, | |
min_xpos_marker, | |||
max_num_seconds, | |||
xpos_marker, | |||
color_callback | |||
) |
This function needs to be called right after the class is instantiated, in order to pass necessary values. _color_callback This function is to compensate the functional limitation of python_qt_binding.loadUi that doesn't allow you to pass arguments in the custom classes you use in .ui.
Definition at line 69 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.set_marker_pos | ( | self, | |
val | |||
) |
Definition at line 164 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.set_range | ( | self, | |
min_val, | |||
max_val | |||
) |
Enabling this will collide with QGraphicsScene and ends up with QGraphicsScene not being updated.
rospy.logdebug('test') self.parent.slot_redraw() !!! END DO NOT DELETE. !!!
:param min_val: Smallest second on timeline. :param max_val: Largest second on timeline.
Definition at line 92 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.set_val_from_x | ( | self, | |
x | |||
) |
Called when marker is moved by user. :param x: Position relative to self widget.
Definition at line 147 of file timeline.py.
def rqt_robot_monitor.timeline.TimelineView.set_xpos_marker | ( | self, | |
len_queue | |||
) |
Compare the given length with the current min & max possible pos on timeline and sets the minimum/largest possible value. :type len_queue: int
Definition at line 104 of file timeline.py.
Gets called either when new msg comes in or when marker is moved by user.
Definition at line 189 of file timeline.py.
Definition at line 50 of file timeline.py.
Definition at line 50 of file timeline.py.
Definition at line 50 of file timeline.py.
Definition at line 50 of file timeline.py.
tuple rqt_robot_monitor::timeline.TimelineView::_sig_update = Signal() [static, private] |
Definition at line 48 of file timeline.py.
Definition at line 50 of file timeline.py.
Definition at line 50 of file timeline.py.
Definition at line 50 of file timeline.py.
Definition at line 50 of file timeline.py.