Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
UPlotItem Class Reference

#include <UPlot.h>

Inheritance diagram for UPlotItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

const QPointF & data () const
UPlotItemnextItem () const
UPlotItempreviousItem () const
void setData (const QPointF &data)
void setNextItem (UPlotItem *nextItem)
void setPreviousItem (UPlotItem *previousItem)
 UPlotItem (qreal dataX, qreal dataY, qreal width=2)
 UPlotItem (const QPointF &data, qreal width=2)
virtual ~UPlotItem ()

Protected Member Functions

virtual void focusInEvent (QFocusEvent *event)
virtual void focusOutEvent (QFocusEvent *event)
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
virtual void keyReleaseEvent (QKeyEvent *keyEvent)
virtual void showDescription (bool shown)

Private Member Functions

void init (qreal dataX, qreal dataY)

Private Attributes

QPointF _data
UPlotItem_nextItem
UPlotItem_previousItem
QGraphicsTextItem * _text
QGraphicsRectItem * _textBackground

Detailed Description

UPlotItem is a QGraphicsEllipseItem and can be inherited to do custom behaviors on an hoverEnterEvent() for example.

Definition at line 43 of file UPlot.h.


Constructor & Destructor Documentation

UPlotItem::UPlotItem ( qreal  dataX,
qreal  dataY,
qreal  width = 2 
)

Constructor 1.

Definition at line 54 of file UPlot.cpp.

UPlotItem::UPlotItem ( const QPointF &  data,
qreal  width = 2 
)

Constructor 2.

Definition at line 64 of file UPlot.cpp.

UPlotItem::~UPlotItem ( ) [virtual]

Definition at line 82 of file UPlot.cpp.


Member Function Documentation

const QPointF& UPlotItem::data ( ) const [inline]

Definition at line 63 of file UPlot.h.

void UPlotItem::focusInEvent ( QFocusEvent *  event) [protected, virtual]

Definition at line 206 of file UPlot.cpp.

void UPlotItem::focusOutEvent ( QFocusEvent *  event) [protected, virtual]

Definition at line 212 of file UPlot.cpp.

void UPlotItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event) [protected, virtual]

Definition at line 191 of file UPlot.cpp.

void UPlotItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event) [protected, virtual]

Definition at line 197 of file UPlot.cpp.

void UPlotItem::init ( qreal  dataX,
qreal  dataY 
) [private]

Definition at line 74 of file UPlot.cpp.

void UPlotItem::keyReleaseEvent ( QKeyEvent *  keyEvent) [protected, virtual]

Definition at line 218 of file UPlot.cpp.

UPlotItem* UPlotItem::nextItem ( ) const [inline]

Definition at line 61 of file UPlot.h.

UPlotItem* UPlotItem::previousItem ( ) const [inline]

Definition at line 62 of file UPlot.h.

void UPlotItem::setData ( const QPointF &  data)

Definition at line 99 of file UPlot.cpp.

void UPlotItem::setNextItem ( UPlotItem nextItem)

Definition at line 104 of file UPlot.cpp.

void UPlotItem::setPreviousItem ( UPlotItem previousItem)

Definition at line 116 of file UPlot.cpp.

void UPlotItem::showDescription ( bool  shown) [protected, virtual]

Reimplemented in rtabmap::PdfPlotItem.

Definition at line 128 of file UPlot.cpp.


Member Data Documentation

QPointF UPlotItem::_data [private]

Definition at line 77 of file UPlot.h.

Definition at line 79 of file UPlot.h.

Definition at line 78 of file UPlot.h.

QGraphicsTextItem* UPlotItem::_text [private]

Reimplemented in rtabmap::PdfPlotItem.

Definition at line 80 of file UPlot.h.

QGraphicsRectItem* UPlotItem::_textBackground [private]

Definition at line 81 of file UPlot.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Fri Aug 28 2015 12:51:43