![]() |
VR-Forces 4.0.4 Class Documentation
|
Decoder for converting a particular entity type's appearance bits into generic enumerated values. More...
Classes | |
| struct | StateInfo |
Public Types | |
| typedef std::map< int, int > | AttributeToStateMap |
| typedef std::map< int, StateInfo > | AttributeToStateInfoMap |
Public Member Functions | |
| DtEntityAppearanceMapper (const DtEntityType &type, const AttributeToStateMap &appearanceMap) | |
| CTOR. | |
| virtual | ~DtEntityAppearanceMapper () |
| DTOR. | |
| bool | mapAttributeToState (const DtAppearAttribute attr, const DtAppearAttrVal val, int &state, int &stateVal) const |
| Virtual map function. | |
| const AttributeToStateInfoMap & | attributes () const |
| const DtEntityType & | entityType () const |
Static Public Member Functions | |
| static bool | vrfColorToRgba (unsigned vrfColor, float &r, float &g, float &b, float &a) |
| static unsigned short | mapVrfLineStyleToStipplePattern (int lineStyle) |
| Maps vrf line state to stipple pattern. | |
Protected Attributes | |
| DtEntityType | myEntityType |
| AttributeToStateInfoMap | myAttributesToStateMap |
Decoder for converting a particular entity type's appearance bits into generic enumerated values.
| typedef std::map<int,int> makVrv::DtEntityAppearanceMapper::AttributeToStateMap |
| typedef std::map<int,StateInfo> makVrv::DtEntityAppearanceMapper::AttributeToStateInfoMap |
| makVrv::DtEntityAppearanceMapper::DtEntityAppearanceMapper | ( | const DtEntityType & | type, |
| const AttributeToStateMap & | appearanceMap | ||
| ) |
CTOR.
| virtual makVrv::DtEntityAppearanceMapper::~DtEntityAppearanceMapper | ( | ) | [virtual] |
DTOR.
| bool makVrv::DtEntityAppearanceMapper::mapAttributeToState | ( | const DtAppearAttribute | attr, |
| const DtAppearAttrVal | val, | ||
| int & | state, | ||
| int & | stateVal | ||
| ) | const |
Virtual map function.
| const AttributeToStateInfoMap& makVrv::DtEntityAppearanceMapper::attributes | ( | ) | const [inline] |
| const DtEntityType& makVrv::DtEntityAppearanceMapper::entityType | ( | ) | const [inline] |
| static bool makVrv::DtEntityAppearanceMapper::vrfColorToRgba | ( | unsigned | vrfColor, |
| float & | r, | ||
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | [static] |
| static unsigned short makVrv::DtEntityAppearanceMapper::mapVrfLineStyleToStipplePattern | ( | int | lineStyle | ) | [static] |
Maps vrf line state to stipple pattern.
DtEntityType makVrv::DtEntityAppearanceMapper::myEntityType [protected] |