#include <iAAttributeDescriptor.h>
◆ iAAttributeType
Type of attribute (parameter or derived output)
| Enumerator |
|---|
| None | |
| Parameter | |
| DerivedOutput | |
◆ iAAttributeDescriptor()
Create an attribute descriptor.
◆ ~iAAttributeDescriptor()
| iAAttributeDescriptor::~iAAttributeDescriptor |
( |
| ) |
|
|
virtual |
◆ adjustMinMax()
| void iAAttributeDescriptor::adjustMinMax |
( |
double |
value | ) |
|
adjust minimum/maximum so that the given value fits inside
- Parameters
-
| value | if smaller than current minimum, it will be the new minimum; if greater than current maximum, it will be the new maximum. |
◆ attribType()
The type of attribute (parameter or derived output, see iAAttributeType).
◆ clone()
Deep copy the attribute descriptor.
◆ coversWholeRange()
| bool iAAttributeDescriptor::coversWholeRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| const |
check whether the given interval covers the whole internal min/max range
- Returns
- true if min smaller or equal internal minimum and maximum greater or equal internal maximum
◆ create()
Create an attribute descriptor from the given string (which could e.g.
be created by the toString method).
◆ createParam()
| QSharedPointer< iAAttributeDescriptor > iAAttributeDescriptor::createParam |
( |
QString const & |
name, |
|
|
iAValueType |
valueType, |
|
|
QVariant |
defaultValue = 0.0, |
|
|
double |
min = std::numeric_limits<double>::lowest(), |
|
|
double |
max = std::numeric_limits<double>::max() |
|
) |
| |
|
static |
Create an attribute descriptor with attribute type Parameter from the given values.
◆ defaultValue()
| QVariant iAAttributeDescriptor::defaultValue |
( |
| ) |
const |
(default) value of the attribute.
For categorical parameters, this QVariant holds a QStringList (access via QVariant::toStringList()) of all possible values.
◆ isLogScale()
| bool iAAttributeDescriptor::isLogScale |
( |
| ) |
const |
Check whether the attribute is given in a logarithmic scale.
◆ max()
| double iAAttributeDescriptor::max |
( |
| ) |
const |
For discrete/continuous types, the maximum possible value.
For categorical values, it's (number of of possible values) - 1.
◆ min()
| double iAAttributeDescriptor::min |
( |
| ) |
const |
For discrete/continuous types, the minimum possible value. For categorical values, it's 0.
◆ name()
| QString const & iAAttributeDescriptor::name |
( |
| ) |
const |
The name of the attribute.
◆ nameMapper()
| QSharedPointer< iANameMapper > iAAttributeDescriptor::nameMapper |
( |
| ) |
const |
|
virtual |
◆ resetMinMax()
| void iAAttributeDescriptor::resetMinMax |
( |
| ) |
|
reset minimum/maximum to highest/lowest values representable by double.
◆ setDefaultValue()
| void iAAttributeDescriptor::setDefaultValue |
( |
QVariant |
v | ) |
|
set the (default) values of the attribute.
For categorical parameters, this should be a QStringList of all possible values.
◆ setLogScale()
| void iAAttributeDescriptor::setLogScale |
( |
bool |
l | ) |
|
Set whether the attribute is given in a logarithmic scale.
◆ toString()
| QString iAAttributeDescriptor::toString |
( |
| ) |
const |
Convert the attribute descriptor to a string.
◆ valueType()
The type of the value of this attribute; see iAValueType.
The documentation for this class was generated from the following files: