cee::ug::ScalarSettingsPropertyHandler
-
class ScalarSettingsPropertyHandler
Property handler for scalar settings properties.
Public Types
-
enum PropertyKey
List of property keys for ScalarSettingsPropertyHandler.
Values:
-
enumerator CONTEXT_RESULT_ID
Context result id.
-
enumerator FILTER_MIN
Minimum scalar filtering value.
-
enumerator FILTER_MAX
Maximum scalar filtering value.
-
enumerator NODE_AVERAGE
Node averaging.
-
enumerator AUTO_RANGE_MODE
If and how scalar range is computed automatically: off, all items, visible items.
-
enumerator CONTOUR_LINES_LEVEL_COUNT
Number of contour levels.
-
enumerator CONTOUR_LINES_WIDTH
Contour lines line width.
-
enumerator CONTOUR_LINES_COLOR_MODE
Contour lines color mode.
-
enumerator CONTOUR_LINES_SINGLE_COLOR
Contour lines single color.
-
enumerator CONTEXT_RESULT_ID
Public Functions
-
ScalarSettingsPropertyHandler(PropertySet *propSet)
Creates a scalar settings property handler from a given property set propSet.
-
Variant 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 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.
-
bool decodeContext(int *resultId) const
Decodes the context from the properties.
-
void encodeContext(int resultId)
Encodes the context as properties.
-
void applyToScalarSettings(ScalarSettings *scalarSettings) const
Applies the properties in this property set to the specified scalar settings.
-
void buildProperties(const ScalarSettings &scalarSettings)
Sets the property keys and values for this property set from the scalar settings.
Public Static Functions
-
static bool isValidPropertySet(const PropertySet &propSet)
Returns true if the specified property set is a valid scalar settings property set.
-
enum PropertyKey