allowScalingSelectedElement property

bool allowScalingSelectedElement

True to allow you to interactively scale the selected GeometryEditorElement, false otherwise. Default is true.

This property applies when the GeometryEditor.selectedElement is:

For example, this does not apply if the selected element is a GeometryEditorVertex because a zero-dimensional geometry cannot be scaled.

When this property is true, and the GeometryEditor.selectedElement is scalable, then control handles are displayed (see GeometryEditorStyle.boundingBoxHandleSymbol) that allow the selected element to be interactively scaled. The bounding box of the selected element is also displayed (GeometryEditorStyle.boundingBoxSymbol).

Interactive scaling changes the extent of the selected element according to the movement of the scale handle being moved - the opposite handle is used as the origin of the scale transformation. Use GeometryEditor.scaleSelectedElement to scale the selected element relative to a given origin.

InteractionConfiguration.setAllowTransformation sets this property.

Implementation

bool get allowScalingSelectedElement {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_InteractionConfiguration_getAllowScalingSelectedElement(
      _handle,
      errorHandler,
    );
  });
}
void allowScalingSelectedElement=(bool value)

Implementation

set allowScalingSelectedElement(bool value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_InteractionConfiguration_setAllowScalingSelectedElement(
      _handle,
      value,
      errorHandler,
    );
  });
}