Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
rqt_robot_monitor.timeline.TimelineView Class Reference

List of all members.

Public Member Functions

def __init__
def get_xpos_marker
def mousePressEvent
def mouseReleaseEvent
def redraw
 Enabling this will collide with QGraphicsScene and ends up with QGraphicsScene not being updated.
def set_init_data
def set_marker_pos
def set_range
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()

Detailed Description

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.


Constructor & Destructor Documentation

Cannot take args other than parent due to loadUi limitation.

Definition at line 51 of file timeline.py.


Member Function Documentation

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.

@param val: any number format
@param min: any number format
@param max: any number format
@return: int

Copied from robot_monitor.

Definition at line 269 of file timeline.py.

Definition at line 349 of file timeline.py.

Definition at line 207 of file timeline.py.

Definition at line 228 of file timeline.py.

Override.
@param event: QMouseEvent

Definition at line 210 of file timeline.py.

Enabling this will collide with QGraphicsScene and ends up with QGraphicsScene not being updated.

rospy.logdebug('test') self.parent.slot_redraw()


Draw timeline's "cells" (ie. boxes that represent seconds). 

Taken from robot_monitor.message_timeline.on_paint

@deprecated: This way (using QPainter) didn't work as intended.

Definition at line 96 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.


@author: Isaac Saito 

Definition at line 72 of file timeline.py.

Copied from robot_monitor. Originally called SetValue.

Definition at line 258 of file timeline.py.

def rqt_robot_monitor.timeline.TimelineView.set_range (   self,
  min_val,
  max_val 
)

Copied from robot_monitor

@param min_val: Smallest second on timeline. 
@param max_val: Largest second on timeline.         

Definition at line 174 of file timeline.py.

Called when marker is moved by user.

@param x: Position relative to self widget.
  
Copied from robot_monitor.

Definition at line 238 of file timeline.py.

Copied from robot_monitor

Definition at line 197 of file timeline.py.

Gets called either when new msg comes in or when marker is moved by user.

Definition at line 289 of file timeline.py.


Member Data Documentation

Definition at line 51 of file timeline.py.

Definition at line 51 of file timeline.py.

Definition at line 51 of file timeline.py.

Definition at line 51 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 51 of file timeline.py.

Definition at line 51 of file timeline.py.

Definition at line 51 of file timeline.py.

Definition at line 51 of file timeline.py.


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


rqt_robot_monitor
Author(s): Isaac Saito, Ze'ev Klapow
autogenerated on Fri Jan 3 2014 11:56:17