Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
UPlotItem Class Reference

#include <UPlot.h>

Inheritance diagram for UPlotItem:
Inheritance graph
[legend]

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 46 of file UPlot.h.

Constructor & Destructor Documentation

◆ UPlotItem() [1/2]

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

Constructor 1.

Definition at line 56 of file UPlot.cpp.

◆ UPlotItem() [2/2]

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

Constructor 2.

Definition at line 66 of file UPlot.cpp.

◆ ~UPlotItem()

UPlotItem::~UPlotItem ( )
virtual

Definition at line 84 of file UPlot.cpp.

Member Function Documentation

◆ data()

const QPointF& UPlotItem::data ( ) const
inline

Definition at line 66 of file UPlot.h.

◆ focusInEvent()

void UPlotItem::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 208 of file UPlot.cpp.

◆ focusOutEvent()

void UPlotItem::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 214 of file UPlot.cpp.

◆ hoverEnterEvent()

void UPlotItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 193 of file UPlot.cpp.

◆ hoverLeaveEvent()

void UPlotItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 199 of file UPlot.cpp.

◆ init()

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

Definition at line 76 of file UPlot.cpp.

◆ keyReleaseEvent()

void UPlotItem::keyReleaseEvent ( QKeyEvent *  keyEvent)
protectedvirtual

Definition at line 220 of file UPlot.cpp.

◆ nextItem()

UPlotItem* UPlotItem::nextItem ( ) const
inline

Definition at line 64 of file UPlot.h.

◆ previousItem()

UPlotItem* UPlotItem::previousItem ( ) const
inline

Definition at line 65 of file UPlot.h.

◆ setData()

void UPlotItem::setData ( const QPointF &  data)

Definition at line 101 of file UPlot.cpp.

◆ setNextItem()

void UPlotItem::setNextItem ( UPlotItem nextItem)

Definition at line 106 of file UPlot.cpp.

◆ setPreviousItem()

void UPlotItem::setPreviousItem ( UPlotItem previousItem)

Definition at line 118 of file UPlot.cpp.

◆ showDescription()

void UPlotItem::showDescription ( bool  shown)
protectedvirtual

Reimplemented in rtabmap::PdfPlotItem.

Definition at line 130 of file UPlot.cpp.

Member Data Documentation

◆ _data

QPointF UPlotItem::_data
private

Definition at line 80 of file UPlot.h.

◆ _nextItem

UPlotItem* UPlotItem::_nextItem
private

Definition at line 82 of file UPlot.h.

◆ _previousItem

UPlotItem* UPlotItem::_previousItem
private

Definition at line 81 of file UPlot.h.

◆ _text

QGraphicsTextItem* UPlotItem::_text
private

Definition at line 83 of file UPlot.h.

◆ _textBackground

QGraphicsRectItem* UPlotItem::_textBackground
private

Definition at line 84 of file UPlot.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:59