QCPRange Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Public Member Functions

 QCPRange ()
 
 QCPRange (double lower, double upper)
 
bool operator== (const QCPRange &other) const
 
bool operator!= (const QCPRange &other) const
 
QCPRangeoperator+= (const double &value)
 
QCPRangeoperator-= (const double &value)
 
QCPRangeoperator*= (const double &value)
 
QCPRangeoperator/= (const double &value)
 
double size () const
 
double center () const
 
void normalize ()
 
void expand (const QCPRange &otherRange)
 
QCPRange expanded (const QCPRange &otherRange) const
 
QCPRange sanitizedForLogScale () const
 
QCPRange sanitizedForLinScale () const
 
bool contains (double value) const
 
 QCPRange ()
 
 QCPRange (double lower, double upper)
 
bool operator== (const QCPRange &other) const
 
bool operator!= (const QCPRange &other) const
 
QCPRangeoperator+= (const double &value)
 
QCPRangeoperator-= (const double &value)
 
QCPRangeoperator*= (const double &value)
 
QCPRangeoperator/= (const double &value)
 
double size () const
 
double center () const
 
void normalize ()
 
void expand (const QCPRange &otherRange)
 
void expand (double includeCoord)
 
QCPRange expanded (const QCPRange &otherRange) const
 
QCPRange expanded (double includeCoord) const
 
QCPRange bounded (double lowerBound, double upperBound) const
 
QCPRange sanitizedForLogScale () const
 
QCPRange sanitizedForLinScale () const
 
bool contains (double value) const
 
 QCPRange ()
 
 QCPRange (double lower, double upper)
 
bool operator== (const QCPRange &other) const
 
bool operator!= (const QCPRange &other) const
 
QCPRangeoperator+= (const double &value)
 
QCPRangeoperator-= (const double &value)
 
QCPRangeoperator*= (const double &value)
 
QCPRangeoperator/= (const double &value)
 
double size () const
 
double center () const
 
void normalize ()
 
void expand (const QCPRange &otherRange)
 
QCPRange expanded (const QCPRange &otherRange) const
 
QCPRange sanitizedForLogScale () const
 
QCPRange sanitizedForLinScale () const
 
bool contains (double value) const
 

Static Public Member Functions

static bool validRange (double lower, double upper)
 
static bool validRange (const QCPRange &range)
 
static bool validRange (double lower, double upper)
 
static bool validRange (const QCPRange &range)
 
static bool validRange (double lower, double upper)
 
static bool validRange (const QCPRange &range)
 

Public Attributes

double lower
 
double upper
 

Static Public Attributes

static const double minRange
 
static const double maxRange
 

Friends

const QCPRange operator+ (const QCPRange &, double)
 
const QCPRange operator+ (double, const QCPRange &)
 
const QCPRange operator- (const QCPRange &range, double value)
 
const QCPRange operator* (const QCPRange &range, double value)
 
const QCPRange operator* (double value, const QCPRange &range)
 
const QCPRange operator/ (const QCPRange &range, double value)
 
const QCPRange operator+ (const QCPRange &, double)
 
const QCPRange operator+ (double, const QCPRange &)
 
const QCPRange operator- (const QCPRange &range, double value)
 
const QCPRange operator* (const QCPRange &range, double value)
 
const QCPRange operator* (double value, const QCPRange &range)
 
const QCPRange operator/ (const QCPRange &range, double value)
 
const QCPRange operator+ (const QCPRange &, double)
 
const QCPRange operator+ (double, const QCPRange &)
 
const QCPRange operator- (const QCPRange &range, double value)
 
const QCPRange operator* (const QCPRange &range, double value)
 
const QCPRange operator* (double value, const QCPRange &range)
 
const QCPRange operator/ (const QCPRange &range, double value)
 

Related Functions

(Note that these are not member functions.)

QDebug operator<< (QDebug d, const QCPRange &range)
 

Constructor & Destructor Documentation

◆ QCPRange() [1/6]

QCPRange::QCPRange ( )

◆ QCPRange() [2/6]

QCPRange::QCPRange ( double  lower,
double  upper 
)

◆ QCPRange() [3/6]

QCPRange::QCPRange ( )

◆ QCPRange() [4/6]

QCPRange::QCPRange ( double  lower,
double  upper 
)

◆ QCPRange() [5/6]

QCPRange::QCPRange ( )

◆ QCPRange() [6/6]

QCPRange::QCPRange ( double  lower,
double  upper 
)

Member Function Documentation

◆ bounded()

QCPRange QCPRange::bounded ( double  lowerBound,
double  upperBound 
) const

◆ center() [1/3]

double QCPRange::center ( ) const

◆ center() [2/3]

double QCPRange::center ( ) const

◆ center() [3/3]

double QCPRange::center ( ) const
inline

◆ contains() [1/3]

bool QCPRange::contains ( double  value) const

◆ contains() [2/3]

bool QCPRange::contains ( double  value) const

◆ contains() [3/3]

bool QCPRange::contains ( double  value) const
inline

◆ expand() [1/4]

void QCPRange::expand ( const QCPRange otherRange)

◆ expand() [2/4]

void QCPRange::expand ( const QCPRange otherRange)

◆ expand() [3/4]

void QCPRange::expand ( const QCPRange otherRange)

◆ expand() [4/4]

void QCPRange::expand ( double  includeCoord)

◆ expanded() [1/4]

QCPRange QCPRange::expanded ( const QCPRange otherRange) const

◆ expanded() [2/4]

QCPRange QCPRange::expanded ( const QCPRange otherRange) const

◆ expanded() [3/4]

QCPRange QCPRange::expanded ( const QCPRange otherRange) const

◆ expanded() [4/4]

QCPRange QCPRange::expanded ( double  includeCoord) const

◆ normalize() [1/3]

void QCPRange::normalize ( )

◆ normalize() [2/3]

void QCPRange::normalize ( )

◆ normalize() [3/3]

void QCPRange::normalize ( )
inline

◆ operator!=() [1/3]

bool QCPRange::operator!= ( const QCPRange other) const
inline

◆ operator!=() [2/3]

bool QCPRange::operator!= ( const QCPRange other) const
inline

◆ operator!=() [3/3]

bool QCPRange::operator!= ( const QCPRange other) const
inline

◆ operator*=() [1/3]

QCPRange & QCPRange::operator*= ( const double &  value)
inline

Multiplies both boundaries of the range by value.

◆ operator*=() [2/3]

QCPRange& QCPRange::operator*= ( const double &  value)
inline

◆ operator*=() [3/3]

QCPRange& QCPRange::operator*= ( const double &  value)
inline

◆ operator+=() [1/3]

QCPRange& QCPRange::operator+= ( const double &  value)
inline

◆ operator+=() [2/3]

QCPRange & QCPRange::operator+= ( const double &  value)
inline

Adds value to both boundaries of the range.

◆ operator+=() [3/3]

QCPRange& QCPRange::operator+= ( const double &  value)
inline

◆ operator-=() [1/3]

QCPRange & QCPRange::operator-= ( const double &  value)
inline

Subtracts value from both boundaries of the range.

◆ operator-=() [2/3]

QCPRange& QCPRange::operator-= ( const double &  value)
inline

◆ operator-=() [3/3]

QCPRange& QCPRange::operator-= ( const double &  value)
inline

◆ operator/=() [1/3]

QCPRange& QCPRange::operator/= ( const double &  value)
inline

◆ operator/=() [2/3]

QCPRange & QCPRange::operator/= ( const double &  value)
inline

Divides both boundaries of the range by value.

◆ operator/=() [3/3]

QCPRange& QCPRange::operator/= ( const double &  value)
inline

◆ operator==() [1/3]

bool QCPRange::operator== ( const QCPRange other) const
inline

◆ operator==() [2/3]

bool QCPRange::operator== ( const QCPRange other) const
inline

◆ operator==() [3/3]

bool QCPRange::operator== ( const QCPRange other) const
inline

◆ sanitizedForLinScale() [1/3]

QCPRange QCPRange::sanitizedForLinScale ( ) const

◆ sanitizedForLinScale() [2/3]

QCPRange QCPRange::sanitizedForLinScale ( ) const

◆ sanitizedForLinScale() [3/3]

QCPRange QCPRange::sanitizedForLinScale ( ) const

◆ sanitizedForLogScale() [1/3]

QCPRange QCPRange::sanitizedForLogScale ( ) const

◆ sanitizedForLogScale() [2/3]

QCPRange QCPRange::sanitizedForLogScale ( ) const

◆ sanitizedForLogScale() [3/3]

QCPRange QCPRange::sanitizedForLogScale ( ) const

◆ size() [1/3]

double QCPRange::size ( ) const

◆ size() [2/3]

double QCPRange::size ( ) const

◆ size() [3/3]

double QCPRange::size ( ) const
inline

◆ validRange() [1/6]

static bool QCPRange::validRange ( double  lower,
double  upper 
)
static

◆ validRange() [2/6]

static bool QCPRange::validRange ( double  lower,
double  upper 
)
static

◆ validRange() [3/6]

static bool QCPRange::validRange ( const QCPRange range)
static

◆ validRange() [4/6]

static bool QCPRange::validRange ( const QCPRange range)
static

◆ validRange() [5/6]

static bool QCPRange::validRange ( double  lower,
double  upper 
)
static

◆ validRange() [6/6]

static bool QCPRange::validRange ( const QCPRange range)
static

Friends And Related Function Documentation

◆ operator* [1/6]

const QCPRange operator* ( const QCPRange range,
double  value 
)
friend

Multiplies both boundaries of the range by value.

◆ operator* [2/6]

const QCPRange operator* ( const QCPRange range,
double  value 
)
friend

Multiplies both boundaries of the range by value.

◆ operator* [3/6]

const QCPRange operator* ( double  value,
const QCPRange range 
)
friend

Multiplies both boundaries of the range by value.

◆ operator* [4/6]

const QCPRange operator* ( double  value,
const QCPRange range 
)
friend

Multiplies both boundaries of the range by value.

◆ operator* [5/6]

const QCPRange operator* ( const QCPRange range,
double  value 
)
friend

Multiplies both boundaries of the range by value.

◆ operator* [6/6]

const QCPRange operator* ( double  value,
const QCPRange range 
)
friend

Multiplies both boundaries of the range by value.

◆ operator+ [1/6]

const QCPRange operator+ ( const QCPRange range,
double  value 
)
friend

Adds value to both boundaries of the range.

◆ operator+ [2/6]

const QCPRange operator+ ( const QCPRange range,
double  value 
)
friend

Adds value to both boundaries of the range.

◆ operator+ [3/6]

const QCPRange operator+ ( double  value,
const QCPRange range 
)
friend

Adds value to both boundaries of the range.

◆ operator+ [4/6]

const QCPRange operator+ ( double  value,
const QCPRange range 
)
friend

Adds value to both boundaries of the range.

◆ operator+ [5/6]

const QCPRange operator+ ( const QCPRange range,
double  value 
)
friend

Adds value to both boundaries of the range.

◆ operator+ [6/6]

const QCPRange operator+ ( double  value,
const QCPRange range 
)
friend

Adds value to both boundaries of the range.

◆ operator- [1/3]

const QCPRange operator- ( const QCPRange range,
double  value 
)
friend

Subtracts value from both boundaries of the range.

◆ operator- [2/3]

const QCPRange operator- ( const QCPRange range,
double  value 
)
friend

Subtracts value from both boundaries of the range.

◆ operator- [3/3]

const QCPRange operator- ( const QCPRange range,
double  value 
)
friend

Subtracts value from both boundaries of the range.

◆ operator/ [1/3]

const QCPRange operator/ ( const QCPRange range,
double  value 
)
friend

Divides both boundaries of the range by value.

◆ operator/ [2/3]

const QCPRange operator/ ( const QCPRange range,
double  value 
)
friend

Divides both boundaries of the range by value.

◆ operator/ [3/3]

const QCPRange operator/ ( const QCPRange range,
double  value 
)
friend

Divides both boundaries of the range by value.

◆ operator<<()

QDebug operator<< ( QDebug  d,
const QCPRange range 
)
related

Prints range in a human readable format to the qDebug output.

Member Data Documentation

◆ lower

double QCPRange::lower

◆ maxRange

static const double QCPRange::maxRange
static

◆ minRange

static const double QCPRange::minRange
static

◆ upper

double QCPRange::upper

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