C# Класс AntTweakBar.QuaternionVariable

An AntTweakBar variable which can hold a quaternion.
Наследование: Variable, IValueVariable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
OnChanged ( EventArgs e ) : void

Raises the Changed event.

QuaternionVariable ( Bar bar, float x, float y, float z, float w = 1, String def = null ) : System

Creates a new quaternion variable in a given bar.

ToString ( ) : String

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

Метод Описание
GetCallback ( IntPtr pointer, IntPtr clientData ) : void

Called by AntTweakBar when AntTweakBar needs the variable's value.

InitQuaternionVariable ( Variable var, String id ) : void

Initialization delegate, which creates the quaternion variable.

IsValid ( float x, float y, float z, float w ) : bool

Checks if this variable can hold this value.

SetCallback ( IntPtr pointer, IntPtr clientData ) : void

Called by AntTweakBar when the user changes the variable's value.

ValidateAndSet ( float x, float y, float z, float w ) : void

Tries to set this variable's value, validating it.

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

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

Raises the Changed event.
public OnChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Creates a new quaternion variable in a given bar.
public QuaternionVariable ( Bar bar, float x, float y, float z, float w = 1, String def = null ) : System
bar Bar The bar to create the quaternion variable in.
x float The initial X-component value of the variable.
y float The initial Y-component value of the variable.
z float The initial Z-component value of the variable.
w float The initial W-component value of the variable.
def String An optional definition string for the new variable.
Результат System

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

public ToString ( ) : String
Результат String