Public Member Functions | Public Attributes | List of all members
rqt_bag.plugins.timeline_renderer.TimelineRenderer Class Reference
Inheritance diagram for rqt_bag.plugins.timeline_renderer.TimelineRenderer:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, timeline, msg_combine_px=1.5)
 
def close (self)
 
def draw_timeline_segment (self, painter, topic, stamp_start, stamp_end, x, y, width, height)
 
def get_segment_height (self, topic)
 

Public Attributes

 msg_combine_px
 
 timeline
 

Detailed Description

A custom renderer for interval of time of a topic on the timeline.

@param msg_combine_px: don't draw discrete messages if they're less than this many pixels separated [default: 1.5]
@type  msg_combine_px: float

Definition at line 36 of file timeline_renderer.py.

Constructor & Destructor Documentation

def rqt_bag.plugins.timeline_renderer.TimelineRenderer.__init__ (   self,
  timeline,
  msg_combine_px = 1.5 
)

Definition at line 45 of file timeline_renderer.py.

Member Function Documentation

def rqt_bag.plugins.timeline_renderer.TimelineRenderer.close (   self)
Close the renderer, releasing any resources.

Definition at line 78 of file timeline_renderer.py.

def rqt_bag.plugins.timeline_renderer.TimelineRenderer.draw_timeline_segment (   self,
  painter,
  topic,
  stamp_start,
  stamp_end,
  x,
  y,
  width,
  height 
)
Draw the timeline segment.

@param painter: QPainter context to render into
@param topic: topic name
@param stamp_start: start of the interval on the timeline
@param stamp_end: start of the interval on the timeline
@param x: x coordinate of the timeline interval
@param y: y coordinate of the timeline interval
@param width: width in pixels of the timeline interval
@param height: height in pixels of the timeline interval
@return: whether the interval was renderered
@rtype:  bool

Definition at line 61 of file timeline_renderer.py.

def rqt_bag.plugins.timeline_renderer.TimelineRenderer.get_segment_height (   self,
  topic 
)
Get the height of the topic segment on the timeline.

@param topic: topic name to draw
@type  topic: str
@return: height in pixels of the topic segment. If none, the timeline default is used.
@rtype:  int or None

Definition at line 50 of file timeline_renderer.py.

Member Data Documentation

rqt_bag.plugins.timeline_renderer.TimelineRenderer.msg_combine_px

Definition at line 48 of file timeline_renderer.py.

rqt_bag.plugins.timeline_renderer.TimelineRenderer.timeline

Definition at line 47 of file timeline_renderer.py.


The documentation for this class was generated from the following file:


rqt_bag
Author(s): Aaron Blasdel, Tim Field
autogenerated on Fri Jun 7 2019 22:05:54