Next: , Previous: ClutterBehaviourDepth, Up: Top


7 ClutterBehaviourEllipse

A behaviour interpolating position along an ellipse

7.1 Overview

<clutter-behaviour-ellipse> interpolates actors along a path defined by an ellipse.

Note, on applying an ellipse behaviour to an actor its position will be set to what is dictated by the ellipses initial position.

7.2 Usage

— Class: <clutter-behaviour-ellipse>

Derives from <clutter-behaviour>.

This class defines the following slots:

center
Center of ellipse
width
Width of ellipse
height
Height of ellipse
angle-start
Initial angle
angle-end
Final angle
angle-tilt-x
Tilt of the ellipse around x axis
angle-tilt-y
Tilt of the ellipse around y axis
angle-tilt-z
Tilt of the ellipse around z axis
direction
Direction of rotation
— Function: clutter-behaviour-ellipse-new (alpha <clutter-alpha>) (int) (int) (width int) (height int) (direction <clutter-rotate-direction>) (start double) (end double)   (ret <clutter-behaviour>)

Creates a behaviour that drives actors along an elliptical path with given center, width and height; the movement starts at angle-start degrees (with 0 corresponding to 12 o'clock) and ends at angle-end degrees. Angles >= 360 degrees get clamped to the canonical interval <0, 360), if start == end, the behaviour will rotate by exacly 360 degrees.

alpha
a <clutter-alpha>, or ‘#f
x
x coordinace of the center
y
y coordiance of the center
width
width of the ellipse
height
height of the ellipse
direction
<clutter-rotate-direction> of rotation
start
angle in degrees at which movement starts, between 0 and 360
end
angle in degrees at which movement ends, between 0 and 360
ret
the newly created <clutter-behaviour-ellipse>

Since 0.4

— Function: clutter-behaviour-ellipse-set-width (self <clutter-behaviour-ellipse>) (width int)
— Method: set-width

Sets the width of the elliptical path.

self
a <clutter-behaviour-ellipse>
width
width of the ellipse

Since 0.4

— Function: clutter-behaviour-ellipse-get-width (self <clutter-behaviour-ellipse>)   (ret int)
— Method: get-width

Gets the width of the elliptical path.

self
a <clutter-behaviour-ellipse>
ret
the width of the path

Since 0.4

— Function: clutter-behaviour-ellipse-set-tilt (self <clutter-behaviour-ellipse>) (angle_tilt_x double) (angle_tilt_y double) (angle_tilt_z double)
— Method: set-tilt

Sets the angles at which the ellipse should be tilted around it's center.

self
a <clutter-behaviour-ellipse>
angle-tilt-x
tilt of the elipse around the center in X axis in degrees.
angle-tilt-y
tilt of the elipse around the center in Y axis in degrees.
angle-tilt-z
tilt of the elipse around the center in Z axis in degrees.

Since 0.4

— Function: clutter-behaviour-ellipse-get-tilt (self <clutter-behaviour-ellipse>)   (angle_tilt_x double) (angle_tilt_y double) (angle_tilt_z double)
— Method: get-tilt

Gets the tilt of the ellipse around the center in Y axis.

self
a <clutter-behaviour-ellipse>
angle-tilt-x
return location for tilt angle on the X axis, or ‘#f’.
angle-tilt-y
return location for tilt angle on the Y axis, or ‘#f’.
angle-tilt-z
return location for tilt angle on the Z axis, or ‘#f’.

Since 0.4