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 (float &min, float &max)
 
void setReversed (bool reversed)
 
int step () const
 
 UPlotAxis (Qt::Orientation orientation=Qt::Horizontal, float min=0, float max=1, QWidget *parent=0)
 
virtual ~UPlotAxis ()
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 

Private Attributes

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

Detailed Description

The UPlot axis object.

Definition at line 286 of file UPlot.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 1058 of file UPlot.cpp.

UPlotAxis::~UPlotAxis ( )
virtual

Definition at line 1077 of file UPlot.cpp.

Member Function Documentation

int UPlotAxis::border ( ) const
inline

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

Definition at line 304 of file UPlot.h.

int UPlotAxis::count ( ) const
inline

Number of intervals.

Definition at line 312 of file UPlot.h.

void UPlotAxis::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 1224 of file UPlot.cpp.

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

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

Definition at line 1096 of file UPlot.cpp.

void UPlotAxis::setReversed ( bool  reversed)

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

Definition at line 1085 of file UPlot.cpp.

int UPlotAxis::step ( ) const
inline

Interval step value.

Definition at line 308 of file UPlot.h.

Member Data Documentation

int UPlotAxis::_border
private

Definition at line 329 of file UPlot.h.

int UPlotAxis::_count
private

Definition at line 325 of file UPlot.h.

int UPlotAxis::_gradMaxDigits
private

Definition at line 328 of file UPlot.h.

float UPlotAxis::_max
private

Definition at line 324 of file UPlot.h.

float UPlotAxis::_min
private

Definition at line 323 of file UPlot.h.

Qt::Orientation UPlotAxis::_orientation
private

Definition at line 322 of file UPlot.h.

bool UPlotAxis::_reversed
private

Definition at line 327 of file UPlot.h.

int UPlotAxis::_step
private

Definition at line 326 of file UPlot.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 19:22:26