gmlDeformation Class Reference

Detailed Description

Public Member Functions

initDeform initialTransfo deformType initialHandlePos

Initialize a deformation.

initialTransfo
the initial transformation in the form { tx ty rot sx sy }.
deformType
the type name of the requested transformation.
initialHandlePos
the list of initial positions of the handles in the form { { x1 y1 } { x2 y2 } ... }.

move handleNumber newPosition

Changes the current position of one on the handles.

handleNumber
position of the handle to be moved in the initialHandlePos list that was passed to the "initDeform" method.
newPosition
new position of the handle in the form { x y }.

updateAllHandlesPos currentHandlePos

getCurrentTransfo

Return the current transformation for a deformation that correspond to the current position of the handles.