allowRotatingSelectedElement property

bool allowRotatingSelectedElement

True to allow you to interactively rotate 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 rotated.

When this property is true, and the GeometryEditor.selectedElement is rotatable, then a control handle is displayed (see GeometryEditorStyle.rotateHandleSymbol) that allows the selected element to be interactively rotated. The bounding box of the selected element is also displayed (GeometryEditorStyle.boundingBoxSymbol).

Interactive rotation changes the position of the selected element according to the movement of the rotation handle using the center of the extent of the selected element as the center of rotation (origin). Use GeometryEditor.rotateSelectedElement to rotate the selected element around a given origin.

InteractionConfiguration.setAllowTransformation sets this property.

Implementation

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

Implementation

set allowRotatingSelectedElement(bool value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_InteractionConfiguration_setAllowRotatingSelectedElement(
      _handle,
      value,
      errorHandler,
    );
  });
}