Property handler for cutting plane properties. More...
Public Types | |
enum | PropertyKey { VISIBLE, POINT, NORMAL, MAP_SCALAR_RESULT_ID, MAP_VECTOR_RESULT_ID, VECTOR_GRID_SPACING_MODE, VECTOR_GRID_SPACING, SURFACE_VISIBLE, SURFACE_COLOR, CLIP_MODEL, COMPUTE_FROM_VISIBLE_PARTS, DRAW_STYLE, OPACITY, SPECULAR_INTENSITY, USE_SOURCE_PART_COLOR, GRID_LINES_VISIBLE, PROJECT_VECTORS_ON_PLANE, CRINKLE_CUT_SURFACE } |
List of property keys for CuttingPlanePropertyHandler. More... | |
Public Member Functions | |
CuttingPlanePropertyHandler (PropertySet *propSet) | |
Creates a cutting plane 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 | applyToCuttingPlane (ug::CuttingPlane *cuttingPlane) const |
Applies the properties in this property set to the specified cutting plane. More... | |
void | buildProperties (const ug::CuttingPlane &cuttingPlane) |
Sets the property keys and values for this property set from the cutting plane. 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 cutting plane property set. More... | |
Property handler for cutting plane properties.
List of property keys for CuttingPlanePropertyHandler.
cee::ug::CuttingPlanePropertyHandler::CuttingPlanePropertyHandler | ( | PropertySet * | propSet | ) |
Creates a cutting plane property handler from a given property set propSet.
void cee::ug::CuttingPlanePropertyHandler::applyToCuttingPlane | ( | ug::CuttingPlane * | cuttingPlane | ) | const |
Applies the properties in this property set to the specified cutting plane.
void cee::ug::CuttingPlanePropertyHandler::buildProperties | ( | const ug::CuttingPlane & | cuttingPlane | ) |
Sets the property keys and values for this property set from the cutting plane.
|
static |
Returns true if the specified property set is a valid cutting plane property set.
|
static |
Returns the class type of the property set.
cee::Variant cee::ug::CuttingPlanePropertyHandler::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::CuttingPlanePropertyHandler::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.