Public Member Functions | Protected 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 Attributes

QPointF _data
 
UPlotItem_nextItem
 
UPlotItem_previousItem
 
QGraphicsTextItem * _text
 

Detailed Description

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

Definition at line 47 of file UPlot.h.

Constructor & Destructor Documentation

◆ UPlotItem() [1/2]

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

Constructor 1.

Definition at line 53 of file UPlot.cpp.

◆ UPlotItem() [2/2]

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

Constructor 2.

Definition at line 68 of file UPlot.cpp.

◆ ~UPlotItem()

UPlotItem::~UPlotItem ( )
virtual

Definition at line 82 of file UPlot.cpp.

Member Function Documentation

◆ data()

const QPointF& UPlotItem::data ( ) const
inline

Definition at line 67 of file UPlot.h.

◆ focusInEvent()

void UPlotItem::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 198 of file UPlot.cpp.

◆ focusOutEvent()

void UPlotItem::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 204 of file UPlot.cpp.

◆ hoverEnterEvent()

void UPlotItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 175 of file UPlot.cpp.

◆ hoverLeaveEvent()

void UPlotItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 189 of file UPlot.cpp.

◆ keyReleaseEvent()

void UPlotItem::keyReleaseEvent ( QKeyEvent *  keyEvent)
protectedvirtual

Definition at line 210 of file UPlot.cpp.

◆ nextItem()

UPlotItem* UPlotItem::nextItem ( ) const
inline

Definition at line 65 of file UPlot.h.

◆ previousItem()

UPlotItem* UPlotItem::previousItem ( ) const
inline

Definition at line 66 of file UPlot.h.

◆ setData()

void UPlotItem::setData ( const QPointF &  data)

Definition at line 99 of file UPlot.cpp.

◆ setNextItem()

void UPlotItem::setNextItem ( UPlotItem nextItem)

Definition at line 104 of file UPlot.cpp.

◆ setPreviousItem()

void UPlotItem::setPreviousItem ( UPlotItem previousItem)

Definition at line 116 of file UPlot.cpp.

◆ showDescription()

void UPlotItem::showDescription ( bool  shown)
protectedvirtual

Reimplemented in rtabmap::PdfPlotItem.

Definition at line 128 of file UPlot.cpp.

Member Data Documentation

◆ _data

QPointF UPlotItem::_data
private

Definition at line 79 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 80 of file UPlot.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10