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

#include <UPlot.h>

Inheritance diagram for UPlotAxis:
Inheritance graph
[legend]

Public Member Functions

int border () const
 
int count () const
 
void setAxis (qreal &min, qreal &max)
 
void setReversed (bool reversed)
 
int step () const
 
 UPlotAxis (Qt::Orientation orientation=Qt::Horizontal, qreal min=0, qreal max=1, QWidget *parent=0)
 
virtual ~UPlotAxis ()
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 

Private Attributes

int _border
 
int _count
 
int _gradMaxDigits
 
qreal _max
 
qreal _min
 
Qt::Orientation _orientation
 
bool _reversed
 
int _step
 

Detailed Description

The UPlot axis object.

Definition at line 295 of file UPlot.h.

Constructor & Destructor Documentation

◆ UPlotAxis()

UPlotAxis::UPlotAxis ( Qt::Orientation  orientation = Qt::Horizontal,
qreal  min = 0,
qreal  max = 1,
QWidget *  parent = 0 
)

Constructor.

Definition at line 1145 of file UPlot.cpp.

◆ ~UPlotAxis()

UPlotAxis::~UPlotAxis ( )
virtual

Definition at line 1168 of file UPlot.cpp.

Member Function Documentation

◆ border()

int UPlotAxis::border ( ) const
inline

Size of the border between the first line and the beginning of the widget.

Definition at line 313 of file UPlot.h.

◆ count()

int UPlotAxis::count ( ) const
inline

Number of intervals.

Definition at line 321 of file UPlot.h.

◆ paintEvent()

void UPlotAxis::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 1315 of file UPlot.cpp.

◆ setAxis()

void UPlotAxis::setAxis ( qreal &  min,
qreal &  max 
)

Set axis minimum and maximum values, compute the resulting intervals depending on the size of the axis.

Definition at line 1187 of file UPlot.cpp.

◆ setReversed()

void UPlotAxis::setReversed ( bool  reversed)

Reverse the axis (for vertical :bottom->up, for horizontal :right->left)

Definition at line 1176 of file UPlot.cpp.

◆ step()

int UPlotAxis::step ( ) const
inline

Interval step value.

Definition at line 317 of file UPlot.h.

Member Data Documentation

◆ _border

int UPlotAxis::_border
private

Definition at line 338 of file UPlot.h.

◆ _count

int UPlotAxis::_count
private

Definition at line 334 of file UPlot.h.

◆ _gradMaxDigits

int UPlotAxis::_gradMaxDigits
private

Definition at line 337 of file UPlot.h.

◆ _max

qreal UPlotAxis::_max
private

Definition at line 333 of file UPlot.h.

◆ _min

qreal UPlotAxis::_min
private

Definition at line 332 of file UPlot.h.

◆ _orientation

Qt::Orientation UPlotAxis::_orientation
private

Definition at line 331 of file UPlot.h.

◆ _reversed

bool UPlotAxis::_reversed
private

Definition at line 336 of file UPlot.h.

◆ _step

int UPlotAxis::_step
private

Definition at line 335 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