cee::ug::IsosurfacePropertyHandler Class Reference

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...
 

Detailed Description

Property handler for isosurface properties.

Member Enumeration Documentation

List of property keys for IsosurfacePropertyHandler.

Enumerator
VISIBLE 

Set if the isosurface and its features (vectors) should be visible or not.

ISO_VALUE 

Result value used for calculating isosurface.

ISO_SCALAR_RESULT_ID 

Id of scalar result used to calculate isosurface.

MAP_SCALAR_RESULT_ID 

Id of mapped scalar result.

MAP_VECTOR_RESULT_ID 

Surface visibility.

SURFACE_VISIBLE 

Surface visibility.

SURFACE_COLOR 

Surface color.

COMPUTE_FROM_VISIBLE_PARTS 

Compute isosurface from visible parts only.

DRAW_STYLE 

Surface draw style.

OPACITY 

Surface opacity.

SPECULAR_INTENSITY 

Surface specular intensity.

Constructor & Destructor Documentation

cee::ug::IsosurfacePropertyHandler::IsosurfacePropertyHandler ( PropertySet propSet)

Creates an isosurface property handler from a given property set propSet.

Member Function Documentation

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.

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

Returns true if the specified property set is a valid isosurface property set.

Str cee::ug::IsosurfacePropertyHandler::propertySetClassType ( )
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.