C# Class Gearset.Components.CurveEditorControl.ChangeTangentCommand

Changes the tangent value of a given key.
Inheritance: Gearset.Components.CurveEditorControl.CurveEditorCommand
Datei anzeigen Open project: juancampa/Gearset

Public Methods

Method Description
ChangeTangentCommand ( CurveEditorControl2 control, long keyId, TangentSelectionMode selectedTangent ) : System

Creates a new command to select the given keys. You can pass null to deselect all.

Do ( ) : void
Undo ( ) : void
UpdateOffset ( float tangent ) : void

This method will update the offset and update the key tangent accordingly. This is to be used while dragging, before the mouse is released and the command added (without calling Do()) to the history.

Private Methods

Method Description
ChangeTangent ( float tangent ) : void

Performs the actual movement of the keys.

Method Details

ChangeTangentCommand() public method

Creates a new command to select the given keys. You can pass null to deselect all.
public ChangeTangentCommand ( CurveEditorControl2 control, long keyId, TangentSelectionMode selectedTangent ) : System
control CurveEditorControl2
keyId long
selectedTangent TangentSelectionMode
return System

Do() public method

public Do ( ) : void
return void

Undo() public method

public Undo ( ) : void
return void

UpdateOffset() public method

This method will update the offset and update the key tangent accordingly. This is to be used while dragging, before the mouse is released and the command added (without calling Do()) to the history.
public UpdateOffset ( float tangent ) : void
tangent float
return void