|
LuciadCPillar 2025.0.07
|
Representation of the state of a feature. More...
#include <luciad/layers/features/FeatureState.h>
Public Member Functions | |
| const std::string & | getName () const |
| Returns the name of this FeatureState. More... | |
| bool | operator!= (const FeatureState &rhs) const |
| bool | operator== (const FeatureState &rhs) const |
Static Public Member Functions | |
| static const FeatureState & | getValue (const std::string &name) |
| Returns the FeatureState with the given name. More... | |
| static const std::vector< FeatureState > & | getValues () |
| Returns the registered feature states. More... | |
| static const FeatureState & | hover () |
| A feature state representing an object that is under the cursor. More... | |
| static const FeatureState & | registerValue (std::string name) |
| Registers a new FeatureState with the given name. More... | |
| static const FeatureState & | selected () |
| A feature state representing an object that is selected. More... | |
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.
| const std::string & luciad::FeatureState::getName | ( | ) | const |
Returns the name of this FeatureState.
|
static |
Returns the FeatureState with the given name.
If no such FeatureState exists, an exception will be thrown.
| name | the name of the FeatureState. |
| InvalidArgumentException | if there is no feature state for the given name. |
|
static |
Returns the registered feature states.
This includes the selection states that are available by default.
|
static |
A feature state representing an object that is under the cursor.
| bool luciad::FeatureState::operator!= | ( | const FeatureState & | rhs | ) | const |
| bool luciad::FeatureState::operator== | ( | const FeatureState & | rhs | ) | const |
|
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.
| name | the name for the feature state. Must be unique. |
| InvalidArgumentException | if the value already exists. |
|
static |
A feature state representing an object that is selected.