cee::ug::PartSettingsPropertyHandler
-
class PartSettingsPropertyHandler
Property handler for part settings properties.
Public Types
-
enum PropertyKey
List of property keys for PartSettingsPropertyHandler.
Values:
-
enumerator CONTEXT_GEOMETRY_INDEX
Index of context geometry.
-
enumerator CONTEXT_PART_ID
Id of context part.
-
enumerator VISIBLE
Visibility on/off.
-
enumerator DRAW_STYLE
Part draw style.
-
enumerator COLOR
Part color.
-
enumerator OPACITY
Opacity.
-
enumerator SPECULAR_INTENSITY
Specular intensity.
-
enumerator LIGHTING
Lighting.
-
enumerator SMOOTH_SHADING
Smooth shading on/off.
-
enumerator LINE_WIDTH
The width of the lines drawn.
-
enumerator POINT_SIZE
The size of the points drawn.
-
enumerator FRINGES_VISIBLE
Fringes visibility.
-
enumerator CONTOUR_LINES_VISIBLE
Contour lines visibility.
-
enumerator VECTORS_VISIBLE
Vector visibility.
-
enumerator DISPLACEMENT_VISIBLE
Displacement visibility.
-
enumerator EYE_LIFT_FACTOR
Eye lift factor (to avoid z-fighting)
-
enumerator TEXTURE_IMAGE_NAME
Texture image name.
-
enumerator TEXTURE_ENVIRONMENT_MAPPING
Texture environment mapping.
-
enumerator TEXTURE_REPEAT_FACTOR
Texture repeat factor.
-
enumerator TEXTURE_AUTO_IMAGE_SCALE
Texture, use automatic image scaling.
-
enumerator TEXTURE_MODULATE
Texture modulate.
-
enumerator TEXTURE_FILTER_NEAREST
Texture filter nearest.
-
enumerator MIRRORING_DISABLED
Should this part be disabled in model mirroring or not.
-
enumerator CONTEXT_GEOMETRY_INDEX
Public Functions
-
PartSettingsPropertyHandler(PropertySet *propSet, ImageResources *imageResources)
Creates a part setting property handler from a given property set propSet and image resources.
-
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(size_t *geoIdx, int *partId) const
Decodes the context from the properties.
-
void encodeContext(size_t geoIdx, int partId)
Encodes the context as properties.
-
void applyToPartSettings(PartSettings *partSettings) const
Applies the properties in this property set to the specified part settings.
-
void buildProperties(const PartSettings &partSettings)
Sets the property keys and values for this property set from the part settings.
Public Static Functions
-
static bool isValidPropertySet(const PropertySet &propSet)
Returns true if the specified property set is a valid part settings property set.
-
enum PropertyKey