Krita Source Code Documentation
Loading...
Searching...
No Matches
KoChannelInfo::DoubleRange Struct Reference

#include <KoChannelInfo.h>

Public Member Functions

 DoubleRange (qreal _minVal, qreal _maxVal)
 creates
 
 DoubleRange (void)
 creates an invalid range of 0,0
 
bool isValid (void) const
 true if this range is usable
 

Public Attributes

double maxVal
 
double minVal
 

Detailed Description

Used to represent a min and max range.

Definition at line 27 of file KoChannelInfo.h.

Constructor & Destructor Documentation

◆ DoubleRange() [1/2]

KoChannelInfo::DoubleRange::DoubleRange ( void )
inline

creates an invalid range of 0,0

Definition at line 33 of file KoChannelInfo.h.

◆ DoubleRange() [2/2]

KoChannelInfo::DoubleRange::DoubleRange ( qreal _minVal,
qreal _maxVal )
inline

creates

Definition at line 35 of file KoChannelInfo.h.

35: minVal(_minVal), maxVal(_maxVal) { Q_ASSERT(minVal <= maxVal); }

References maxVal, and minVal.

Member Function Documentation

◆ isValid()

bool KoChannelInfo::DoubleRange::isValid ( void ) const
inline

true if this range is usable

Definition at line 37 of file KoChannelInfo.h.

37{ return minVal < maxVal; }

References maxVal, and minVal.

Member Data Documentation

◆ maxVal

double KoChannelInfo::DoubleRange::maxVal

Definition at line 30 of file KoChannelInfo.h.

◆ minVal

double KoChannelInfo::DoubleRange::minVal

Definition at line 30 of file KoChannelInfo.h.


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