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, callSetSelectedwith 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
SetSelectedwhenever the selection changes.This component merely visualizes the selected objects.
Move, rotate or scale a selected transformation. To use this, call
SetSelectedwith exactly one transform. And setModeto 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
OnTransformModifiedandOnTransformModifyEndto 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.