All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | List of all members
gazebo::gui::IncrementalPlot Class Reference

A plotting widget that handles incremental addition of data. More...

#include <IncrementalPlot.hh>

Inheritance diagram for gazebo::gui::IncrementalPlot:
Inheritance graph
[legend]
Collaboration diagram for gazebo::gui::IncrementalPlot:
Collaboration graph
[legend]

Public Slots

void Add (const QString &_label, const QPointF &_pt)
 Add a new point to a curve. More...
 
void Add (const QString &_label, const std::list< QPointF > &_pts)
 Add new points to a curve. More...
 

Public Member Functions

 IncrementalPlot (QWidget *_parent=NULL)
 Constructor. More...
 
virtual ~IncrementalPlot ()
 Destructor. More...
 
void Clear (const QString &_label)
 Clear a single curve from the plot. More...
 
void Clear ()
 Clear all points from the plot. More...
 
bool HasCurve (const QString &_label)
 Return true if the plot has the labled curve. More...
 
virtual QSize sizeHint () const
 Give QT a size hint. More...
 
void Update ()
 Update all the curves in the plot. More...
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *_evt)
 Used to accept drag enter events. More...
 
void dropEvent (QDropEvent *_evt)
 Used to accept drop events. More...
 

Detailed Description

A plotting widget that handles incremental addition of data.

Constructor & Destructor Documentation

gazebo::gui::IncrementalPlot::IncrementalPlot ( QWidget *  _parent = NULL)

Constructor.

Parameters
[in]_parentPointer to a parent widget
virtual gazebo::gui::IncrementalPlot::~IncrementalPlot ( )
virtual

Destructor.

Member Function Documentation

void gazebo::gui::IncrementalPlot::Add ( const QString &  _label,
const QPointF &  _pt 
)
slot

Add a new point to a curve.

Parameters
[in]_labelName of the curve to add a point to. A curve will be added if it doesn't exist.
[in]_ptPoint to add.
void gazebo::gui::IncrementalPlot::Add ( const QString &  _label,
const std::list< QPointF > &  _pts 
)
slot

Add new points to a curve.

Parameters
[in]_labelName of the curve to add a point to. A curve will be added if it doesn't exist.
[in]_ptPoints to add.
void gazebo::gui::IncrementalPlot::Clear ( const QString &  _label)

Clear a single curve from the plot.

Parameters
[in]_labelName of the curve to remove.
void gazebo::gui::IncrementalPlot::Clear ( )

Clear all points from the plot.

void gazebo::gui::IncrementalPlot::dragEnterEvent ( QDragEnterEvent *  _evt)
protected

Used to accept drag enter events.

Parameters
[in]_evtThe drag event.
void gazebo::gui::IncrementalPlot::dropEvent ( QDropEvent *  _evt)
protected

Used to accept drop events.

Parameters
[in]_evtThe drop event.
bool gazebo::gui::IncrementalPlot::HasCurve ( const QString &  _label)

Return true if the plot has the labled curve.

Parameters
[in]_labelName of the curve to check for.
Returns
True if _label is currently plotted.
virtual QSize gazebo::gui::IncrementalPlot::sizeHint ( ) const
virtual

Give QT a size hint.

Returns
Default size of the plot.
void gazebo::gui::IncrementalPlot::Update ( )

Update all the curves in the plot.


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