cee::ug::StateSelectionPropertyHandler Class Reference

Property handler for state selection properties. More...

Public Types

enum  PropertyKey {
  STATE_IDS, MODE_SHAPE_NUM_FRAMES, MODE_SHAPE_ANIMATION_TYPE, MODE_SHAPE_INTERPOLATION_TYPE,
  MODE_SHAPE_INTERPOLATE_SCALARS
}
 List of property keys for StateSelectionPropertyHandler. More...
 

Public Member Functions

 StateSelectionPropertyHandler (PropertySet *propSet)
 Creates a state selection property handler from a given property set propSet. More...
 
Variant propertyValue (PropertyKey key) const
 Returns the property value for the specified property key. More...
 
void setPropertyValue (PropertyKey key, Variant data)
 Sets the property key and value to this handlers property set. More...
 
void applyToModelSpec (ModelSpec *modelSpec) const
 Applies the properties in this property set to the specified model specification. More...
 
void buildProperties (const ModelSpec &modelSpec)
 Sets the property keys and values for this property set from the model specification modelSpec. More...
 

Static Public Member Functions

static Str propertySetClassType ()
 Returns the class type of the property set. More...
 
static bool isValidPropertySet (const PropertySet &propSet)
 Returns true if the specified property set is a valid state selection property set. More...
 

Detailed Description

Property handler for state selection properties.

Member Enumeration Documentation

List of property keys for StateSelectionPropertyHandler.

Enumerator
STATE_IDS 

Array of state ids.

MODE_SHAPE_NUM_FRAMES 

Number of mode shape animation frames.

MODE_SHAPE_ANIMATION_TYPE 

Mode shape animation type. (QUARTER, HALF or FULL)

MODE_SHAPE_INTERPOLATION_TYPE 

Mode shape interpolation type. (LINEAR or SINE)

MODE_SHAPE_INTERPOLATE_SCALARS 

Interpolate mode shape scalars on/off.

Constructor & Destructor Documentation

cee::ug::StateSelectionPropertyHandler::StateSelectionPropertyHandler ( PropertySet propSet)

Creates a state selection property handler from a given property set propSet.

Member Function Documentation

void cee::ug::StateSelectionPropertyHandler::applyToModelSpec ( ModelSpec modelSpec) const

Applies the properties in this property set to the specified model specification.

void cee::ug::StateSelectionPropertyHandler::buildProperties ( const ModelSpec modelSpec)

Sets the property keys and values for this property set from the model specification modelSpec.

bool cee::ug::StateSelectionPropertyHandler::isValidPropertySet ( const PropertySet propSet)
static

Returns true if the specified property set is a valid state selection property set.

Str cee::ug::StateSelectionPropertyHandler::propertySetClassType ( )
static

Returns the class type of the property set.

cee::Variant cee::ug::StateSelectionPropertyHandler::propertyValue ( PropertyKey  key) const

Returns the property value for the specified property key.

Returns an empty Variant if the property key was not found.

void cee::ug::StateSelectionPropertyHandler::setPropertyValue ( PropertyKey  key,
Variant  data 
)

Sets the property key and value to this handlers property set.

If key exists in the property set, the paired property value is updated to data. Otherwise the key/value pair is added to the property set.