C# Класс Gearset.Components.CurveEditorControl.ChangeTangentCommand

Changes the tangent value of a given key.
Наследование: Gearset.Components.CurveEditorControl.CurveEditorCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ChangeTangent ( float tangent ) : void

Performs the actual movement of the keys.

Описание методов

ChangeTangentCommand() публичный Метод

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
Результат System

Do() публичный Метод

public Do ( ) : void
Результат void

Undo() публичный Метод

public Undo ( ) : void
Результат void

UpdateOffset() публичный Метод

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
Результат void