Representation of the state of a feature.
More...
#include <luciad/layers/features/FeatureState.h>
Representation of the state of a feature.
By default the following states exist:
It is possible to register custom feature states using FeatureState::registerValue. You can use such custom feature states to style objects differently.
◆ getName()
| const std::string & luciad::FeatureState::getName |
( |
| ) |
const |
◆ getValue()
| const FeatureState & luciad::FeatureState::getValue |
( |
const std::string & | name | ) |
|
|
static |
◆ getValues()
| const std::vector< FeatureState > & luciad::FeatureState::getValues |
( |
| ) |
|
|
static |
Returns the registered feature states.
This includes the selection states that are available by default.
- Returns
- the registered feature states.
◆ hover()
A feature state representing an object that is under the cursor.
◆ operator!=()
| bool luciad::FeatureState::operator!= |
( |
const FeatureState & | rhs | ) |
const |
◆ operator==()
| bool luciad::FeatureState::operator== |
( |
const FeatureState & | rhs | ) |
const |
◆ registerValue()
| const FeatureState & luciad::FeatureState::registerValue |
( |
std::string | name | ) |
|
|
static |
Registers a new FeatureState with the given name.
It is not allows the register multiple FeatureStates with the same name. If not, an exception will be thrown.
- Parameters
-
| name | the name for the feature state. Must be unique. |
- Exceptions
-
◆ selected()
A feature state representing an object that is selected.