Property handler for mirror settings properties. More...
Public Types | |
enum | PropertyKey { NUM_MIRROR_PASSES, PLANE_FIRST_A, PLANE_FIRST_B, PLANE_FIRST_C, PLANE_FIRST_D, PLANE_SECOND_A, PLANE_SECOND_B, PLANE_SECOND_C, PLANE_SECOND_D, PLANE_MASTER_A, PLANE_MASTER_B, PLANE_MASTER_C, PLANE_MASTER_D, REFLECTIVE } |
List of property keys for MirrorSettingsPropertyHandler. More... | |
Public Member Functions | |
MirrorSettingsPropertyHandler (PropertySet *propSet) | |
Creates a mirror settings 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 | applyToMirrorSettings (ug::MirrorSettings *mirrorSettings) const |
Applies the properties in this property set to the specified mirror settings. More... | |
void | buildProperties (const ug::MirrorSettings &mirrorSettings) |
Sets the property keys and values for this property set from the mirror settings. 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 mirror settings property set. More... | |
Property handler for mirror settings properties.
List of property keys for MirrorSettingsPropertyHandler.
cee::ug::MirrorSettingsPropertyHandler::MirrorSettingsPropertyHandler | ( | PropertySet * | propSet | ) |
Creates a mirror settings property handler from a given property set propSet.
void cee::ug::MirrorSettingsPropertyHandler::applyToMirrorSettings | ( | ug::MirrorSettings * | mirrorSettings | ) | const |
Applies the properties in this property set to the specified mirror settings.
void cee::ug::MirrorSettingsPropertyHandler::buildProperties | ( | const ug::MirrorSettings & | mirrorSettings | ) |
Sets the property keys and values for this property set from the mirror settings.
|
static |
Returns true if the specified property set is a valid mirror settings property set.
|
static |
Returns the class type of the property set.
cee::Variant cee::ug::MirrorSettingsPropertyHandler::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::MirrorSettingsPropertyHandler::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.