Property handler for isosurface properties. More...
Public Types | |
enum | PropertyKey { VISIBLE, ISO_VALUE, ISO_SCALAR_RESULT_ID, MAP_SCALAR_RESULT_ID, MAP_VECTOR_RESULT_ID, SURFACE_VISIBLE, SURFACE_COLOR, COMPUTE_FROM_VISIBLE_PARTS, DRAW_STYLE, OPACITY, SPECULAR_INTENSITY } |
List of property keys for IsosurfacePropertyHandler. More... | |
Public Member Functions | |
IsosurfacePropertyHandler (PropertySet *propSet) | |
Creates an isosurface 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 | applyToIsosurface (ug::Isosurface *isosurface) const |
Applies the properties in this property set to the specified isosurface. More... | |
void | buildProperties (const ug::Isosurface &isosurface) |
Sets the property keys and values for this property set from the isosurface. 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 isosurface property set. More... | |
Property handler for isosurface properties.
List of property keys for IsosurfacePropertyHandler.
cee::ug::IsosurfacePropertyHandler::IsosurfacePropertyHandler | ( | PropertySet * | propSet | ) |
Creates an isosurface property handler from a given property set propSet.
void cee::ug::IsosurfacePropertyHandler::applyToIsosurface | ( | ug::Isosurface * | isosurface | ) | const |
Applies the properties in this property set to the specified isosurface.
void cee::ug::IsosurfacePropertyHandler::buildProperties | ( | const ug::Isosurface & | isosurface | ) |
Sets the property keys and values for this property set from the isosurface.
|
static |
Returns true if the specified property set is a valid isosurface property set.
|
static |
Returns the class type of the property set.
cee::Variant cee::ug::IsosurfacePropertyHandler::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::IsosurfacePropertyHandler::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.