This class contains the concrete value of an attribute used in a style expression
.
More...
#include <luciad/layers/styles/expressions/AttributeValue.h>
This class contains the concrete value of an attribute used in a style expression
.
Attributes can hold a value of one of the following types:
- Since
- 2025.0
◆ AttributeValue() [1/3]
luciad::AttributeValue::AttributeValue |
( |
double |
value | ) |
|
Creates an attribute value of type double.
- Parameters
-
value | the attribute value. |
◆ AttributeValue() [2/3]
luciad::AttributeValue::AttributeValue |
( |
const Color & |
value | ) |
|
Creates an attribute value of type Color.
- Parameters
-
value | the attribute value. |
◆ AttributeValue() [3/3]
luciad::AttributeValue::AttributeValue |
( |
const Coordinate & |
value | ) |
|
Creates an attribute value of type Coordinate.
- Parameters
-
value | the attribute value. |
◆ getColor()
Color luciad::AttributeValue::getColor |
( |
| ) |
const |
Returns the attribute value if it is of type Color.
- Returns
- the attribute value if it is of type Color.
- Exceptions
-
◆ getCoordinate()
Coordinate luciad::AttributeValue::getCoordinate |
( |
| ) |
const |
Returns the attribute value if it is of type Coordinate.
- Returns
- the attribute value if it is of type Coordinate.
- Exceptions
-
◆ getDouble()
double luciad::AttributeValue::getDouble |
( |
| ) |
const |
Returns the attribute value if it is of type double.
- Returns
- the attribute value if it is of type double.
- Exceptions
-
◆ isColor()
bool luciad::AttributeValue::isColor |
( |
| ) |
const |
Returns true if the attribute value is of type Color.
- Returns
- true if the attribute value is of type Color.
◆ isCoordinate()
bool luciad::AttributeValue::isCoordinate |
( |
| ) |
const |
Returns true if the attribute value is of type Coordinate.
- Returns
- true if the attribute value is of type Coordinate.
◆ isDouble()
bool luciad::AttributeValue::isDouble |
( |
| ) |
const |
Returns true if the attribute value is of type double.
- Returns
- true if the attribute value is of type double.