class ScalarSettingsPropertyHandler

Property handler for scalar settings properties.

Public Types

enum PropertyKey

List of property keys for ScalarSettingsPropertyHandler.



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.


Number of contour levels.


Contour lines line width.


Contour lines color mode.


Contour lines single color.

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 Str propertySetClassType()

Returns the class type of the property set.

static bool isValidPropertySet(const PropertySet &propSet)

Returns true if the specified property set is a valid scalar settings property set.