33 from python_qt_binding.QtCore
import QObject
38 A custom renderer for interval of time of a topic on the timeline. 40 @param msg_combine_px: don't draw discrete messages if they're less than this many pixels separated [default: 1.5] 41 @type msg_combine_px: float 43 def __init__(self, timeline, msg_combine_px=1.5):
49 Get the height of the topic segment on the timeline. 51 @param topic: topic name to draw 53 @return: height in pixels of the topic segment. If none, the timeline default is used. 60 Draw the timeline segment. 62 @param painter: QPainter context to render into 63 @param topic: topic name 64 @param stamp_start: start of the interval on the timeline 65 @param stamp_end: start of the interval on the timeline 66 @param x: x coordinate of the timeline interval 67 @param y: y coordinate of the timeline interval 68 @param width: width in pixels of the timeline interval 69 @param height: height in pixels of the timeline interval 70 @return: whether the interval was renderered 77 Close the renderer, releasing any resources. def __init__(self, timeline, msg_combine_px=1.5)
def draw_timeline_segment(self, painter, topic, stamp_start, stamp_end, x, y, width, height)
def get_segment_height(self, topic)