33 from python_qt_binding.QtCore 
import QObject
 
   39     A custom renderer for interval of time of a topic on the timeline. 
   41     @param msg_combine_px: don't draw discrete messages if they're less than this many pixels separated [default: 1.5] 
   42     @type  msg_combine_px: float 
   45     def __init__(self, timeline, msg_combine_px=1.5):
 
   46         super(TimelineRenderer, self).
__init__()
 
   52         Get the height of the topic segment on the timeline. 
   54         @param topic: topic name to draw 
   56         @return: height in pixels of the topic segment. If none, the timeline default is used. 
   63         Draw the timeline segment. 
   65         @param painter: QPainter context to render into 
   66         @param topic: topic name 
   67         @param stamp_start: start of the interval on the timeline 
   68         @param stamp_end: start of the interval on the timeline 
   69         @param x: x coordinate of the timeline interval 
   70         @param y: y coordinate of the timeline interval 
   71         @param width: width in pixels of the timeline interval 
   72         @param height: height in pixels of the timeline interval 
   73         @return: whether the interval was renderered 
   80         Close the renderer, releasing any resources.