cee::ug::ScalarSettingsPropertyHandler Class Reference

Property handler for scalar settings properties. More...

Public Types

enum  PropertyKey {
  CONTEXT_RESULT_ID, FILTER_MIN, FILTER_MAX, NODE_AVERAGE,
  AUTO_RANGE_MODE, CONTOUR_LINES_LEVEL_COUNT, CONTOUR_LINES_WIDTH, CONTOUR_LINES_COLOR_MODE,
  CONTOUR_LINES_SINGLE_COLOR
}
 List of property keys for ScalarSettingsPropertyHandler. More...
 

Public Member Functions

 ScalarSettingsPropertyHandler (PropertySet *propSet)
 Creates a scalar 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...
 
bool decodeContext (int *resultId) const
 Decodes the context from the properties. More...
 
void encodeContext (int resultId)
 Encodes the context as properties. More...
 
void applyToScalarSettings (ScalarSettings *scalarSettings) const
 Applies the properties in this property set to the specified scalar settings. More...
 
void buildProperties (const ScalarSettings &scalarSettings)
 Sets the property keys and values for this property set from the scalar 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 scalar settings property set. More...
 

Detailed Description

Property handler for scalar settings properties.

Member Enumeration Documentation

List of property keys for ScalarSettingsPropertyHandler.

Enumerator
CONTEXT_RESULT_ID 

Context result id.

FILTER_MIN 

Minimum scalar filtering value.

FILTER_MAX 

Maximum scalar filtering value.

NODE_AVERAGE 

Node averaging.

AUTO_RANGE_MODE 

If and how scalar range is computed automatically: off, all items, visible items.

CONTOUR_LINES_LEVEL_COUNT 

Number of contour levels.

CONTOUR_LINES_WIDTH 

Contour lines line width.

CONTOUR_LINES_COLOR_MODE 

Contour lines color mode.

CONTOUR_LINES_SINGLE_COLOR 

Contour lines single color.

Constructor & Destructor Documentation

cee::ug::ScalarSettingsPropertyHandler::ScalarSettingsPropertyHandler ( PropertySet propSet)

Creates a scalar settings property handler from a given property set propSet.

Member Function Documentation

void cee::ug::ScalarSettingsPropertyHandler::applyToScalarSettings ( ScalarSettings scalarSettings) const

Applies the properties in this property set to the specified scalar settings.

void cee::ug::ScalarSettingsPropertyHandler::buildProperties ( const ScalarSettings scalarSettings)

Sets the property keys and values for this property set from the scalar settings.

bool cee::ug::ScalarSettingsPropertyHandler::decodeContext ( int *  resultId) const

Decodes the context from the properties.

void cee::ug::ScalarSettingsPropertyHandler::encodeContext ( int  resultId)

Encodes the context as properties.

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

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

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

Returns the class type of the property set.

cee::Variant cee::ug::ScalarSettingsPropertyHandler::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::ScalarSettingsPropertyHandler::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.