# 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 `ELEMENTSET_FILTERING_ENABLED`

      Element set filtering enabled/disabled.

    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 `FEATURE_EXTRACTION_DISABLED`

      Should this part be excluded from feature extractions, e.g.

      isosurfaces.

    enumerator `EXPAND_ELEMENTS_DISABLED`

      If true, elements will not be expanded and beams will be drawn as lines.

  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 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 part settings property set.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...