QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Definition of a numeric field domain with a range of validity for values. More...
#include <qgsfielddomain.h>
Public Member Functions | |
QgsRangeFieldDomain (const QgsRangeFieldDomain &)=delete | |
QgsRangeFieldDomain cannot be copied - use clone() instead. | |
QgsRangeFieldDomain (const QString &name, const QString &description, QVariant::Type fieldType, const QVariant &minimum, bool minimumIsInclusive, const QVariant &maximum, bool maximumIsInclusive) | |
Constructor for QgsRangeFieldDomain, with the specified name, description and fieldType. | |
QgsRangeFieldDomain * | clone () const override |
Clones the field domain. | |
QVariant | maximum () const |
Returns the maximum value. | |
bool | maximumIsInclusive () const |
Returns true if the maximum value is inclusive. | |
QVariant | minimum () const |
Returns the minimum value. | |
bool | minimumIsInclusive () const |
Returns true if the minimum value is inclusive. | |
QgsRangeFieldDomain & | operator= (const QgsRangeFieldDomain &)=delete |
QgsRangeFieldDomain cannot be copied - use clone() instead. | |
void | setMaximum (const QVariant &maximum) |
Sets the maximum allowed value. | |
void | setMaximumIsInclusive (bool inclusive) |
Sets whether the maximum value is inclusive. | |
void | setMinimum (const QVariant &minimum) |
Sets the minimum allowed value. | |
void | setMinimumIsInclusive (bool inclusive) |
Sets whether the minimum value is inclusive. | |
Qgis::FieldDomainType | type () const override |
Returns the type of field domain. | |
QString | typeName () const override |
Returns a translated name of the field domain type. | |
Public Member Functions inherited from QgsFieldDomain | |
QgsFieldDomain (const QString &name, const QString &description, QVariant::Type fieldType) | |
Constructor for QgsFieldDomain, with the specified name, description and fieldType. | |
virtual | ~QgsFieldDomain () |
QString | description () const |
Returns the description of the field domain. | |
QVariant::Type | fieldType () const |
Returns the associated field type. | |
Qgis::FieldDomainMergePolicy | mergePolicy () const |
Returns the merge policy. | |
QString | name () const |
Returns the name of the field domain. | |
void | setDescription (const QString &description) |
Sets the description of the field domain. | |
void | setFieldType (QVariant::Type type) |
Sets the associated field type. | |
void | setMergePolicy (Qgis::FieldDomainMergePolicy policy) |
Sets the merge policy. | |
void | setName (const QString &name) |
Sets the name of the field domain. | |
void | setSplitPolicy (Qgis::FieldDomainSplitPolicy policy) |
Sets the split policy. | |
Qgis::FieldDomainSplitPolicy | splitPolicy () const |
Returns the split policy. | |
Additional Inherited Members | |
Protected Attributes inherited from QgsFieldDomain | |
QString | mDescription |
QVariant::Type | mFieldType = QVariant::Type::String |
Qgis::FieldDomainMergePolicy | mMergePolicy = Qgis::FieldDomainMergePolicy::DefaultValue |
QString | mName |
Qgis::FieldDomainSplitPolicy | mSplitPolicy = Qgis::FieldDomainSplitPolicy::DefaultValue |
Definition of a numeric field domain with a range of validity for values.
Definition at line 289 of file qgsfielddomain.h.
QgsRangeFieldDomain::QgsRangeFieldDomain | ( | const QString & | name, |
const QString & | description, | ||
QVariant::Type | fieldType, | ||
const QVariant & | minimum, | ||
bool | minimumIsInclusive, | ||
const QVariant & | maximum, | ||
bool | maximumIsInclusive | ||
) |
Constructor for QgsRangeFieldDomain, with the specified name, description and fieldType.
Set an invalid QVariant for minimum or maximum respectively if no minimum or maximum value is desired.
Definition at line 79 of file qgsfielddomain.cpp.
|
delete |
QgsRangeFieldDomain cannot be copied - use clone() instead.
|
overridevirtual |
Clones the field domain.
Implements QgsFieldDomain.
Definition at line 99 of file qgsfielddomain.cpp.
|
inline |
Returns the maximum value.
If no maximum value is set then an invalid variant will be returned.
Definition at line 362 of file qgsfielddomain.h.
|
inline |
Returns true
if the maximum value is inclusive.
Definition at line 380 of file qgsfielddomain.h.
|
inline |
Returns the minimum value.
If no minimum value is set then an invalid variant will be returned.
Definition at line 326 of file qgsfielddomain.h.
|
inline |
Returns true
if the minimum value is inclusive.
Definition at line 344 of file qgsfielddomain.h.
|
delete |
QgsRangeFieldDomain cannot be copied - use clone() instead.
|
inline |
Sets the maximum allowed value.
If no maximum value is desired then an invalid variant should be set.
Definition at line 372 of file qgsfielddomain.h.
|
inline |
Sets whether the maximum value is inclusive.
Definition at line 388 of file qgsfielddomain.h.
|
inline |
Sets the minimum allowed value.
If no minimum value is desired then an invalid variant should be set.
Definition at line 336 of file qgsfielddomain.h.
|
inline |
Sets whether the minimum value is inclusive.
Definition at line 352 of file qgsfielddomain.h.
|
overridevirtual |
Returns the type of field domain.
Implements QgsFieldDomain.
Definition at line 89 of file qgsfielddomain.cpp.
|
overridevirtual |
Returns a translated name of the field domain type.
Implements QgsFieldDomain.
Definition at line 94 of file qgsfielddomain.cpp.