Class TCastleTransformManipulate

Unit

Declaration

type TCastleTransformManipulate = class(TComponent)

Description

Allow to select, move, rotate, scale a group of TCastleTransform instances.

This component implements common 3D editing operations:

  • Selection (when Mode = mmSelect). To use this, call SetSelected with any number of transforms. Multiple transform instances can be selected at once.

    This component does never itself change the selected objects. It relies on external code to call SetSelected whenever the selection changes.

    This component merely visualizes the selected objects.

  • Move, rotate or scale a selected transformation. To use this, call SetSelected with exactly one transform. And set Mode to the desired operation, like mmTranslate.

    This component fully implements moving, rotating and scaling. It displays a proper "gizmo" to perform this for user, and it modifies the selected transformation when user drags the gizmo. Use events like OnTransformModified and OnTransformModifyEnd to get notified when the transformation is modified.

    TODO: Right now we allow to move/rotate/scale only a single transformation. In the future, we plan to allow to move/rotate/scale multiple transforms.

Source: scene/castletransformmanipulate.pas (line 84).

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TCastleTransformManipulate

Generated by PasDoc 0.17.0.snapshot.