VR-Forces 4.0.4 Class Documentation
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
makVrv::DtEntityAppearanceMapper Class Reference

Decoder for converting a particular entity type's appearance bits into generic enumerated values. More...

List of all members.

Classes

struct  StateInfo

Public Types

typedef std::map< int, int > AttributeToStateMap
typedef std::map< int, StateInfoAttributeToStateInfoMap

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 AttributeToStateInfoMapattributes () 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

Detailed Description

Decoder for converting a particular entity type's appearance bits into generic enumerated values.


Member Typedef Documentation


Constructor & Destructor Documentation

makVrv::DtEntityAppearanceMapper::DtEntityAppearanceMapper ( const DtEntityType &  type,
const AttributeToStateMap appearanceMap 
)

CTOR.

DTOR.


Member Function Documentation

bool makVrv::DtEntityAppearanceMapper::mapAttributeToState ( const DtAppearAttribute  attr,
const DtAppearAttrVal  val,
int &  state,
int &  stateVal 
) const

Virtual map function.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)