Module gwy :: Class Shader
[show private | hide private]
[frames | no frames]

Class Shader


Shader The ::angle-changed signal is emitted when the spherical angle changes.

('gwyshader', ' The #GwyShader which received the signal. ')
Method Summary
  __init__(gradient)
Creates a new spherical shader.
  get_gradient()
Returns: The gradient name.
  get_phi()
Returns: The phi coordinate, in radians.
  get_theta()
Returns: The theta coordinate, in radians.
  get_update_policy()
Returns: The update policy.
  set_angle(theta, phi)
Sets the spherical angle of a shader.
  set_gradient(gradient)
Sets the gradient a shader uses.
  set_phi(phi)
Sets the phi coordinate of a shader.
  set_theta(theta)
Sets the theta coordinate of a shader.
  set_update_policy(update_policy)
Sets the update policy of a shader.

Method Details

__init__(gradient)
(Constructor)

Creates a new spherical shader.

The widget takes up all the space allocated for it.
Returns:
The new shader as a GtkWidget.

get_gradient()

Returns: The gradient name. It must not be modified or freed. It may
Returns:
The gradient name. It must not be modified or freed. It may differ the name that was used on initialization or set with Shader.set_gradient(), if the gradient didn't exist or was renamed meanwhile.

get_phi()

Returns: The phi coordinate, in radians. Phi coordinate is orientation
Returns:
The phi coordinate, in radians. Phi coordinate is orientation in horizontal plane, measured from x axis, counterclockwise.

get_theta()

Returns: The theta coordinate, in radians. Theta coordinate is angle from
Returns:
The theta coordinate, in radians. Theta coordinate is angle from sphere's north pole.

get_update_policy()

Returns: The update policy.
Returns:
The update policy.

set_angle(theta, phi)

Sets the spherical angle of a shader.
Parameters:
theta - The theta coordinate to set. See Shader.get_theta() for description. (float)
phi - The phi coordinate to set. See Shader.get_phi() for description. (float)

set_gradient(gradient)

Sets the gradient a shader uses.
Parameters:
gradient - Name of gradient shader should use. It should exist. (string)

set_phi(phi)

Sets the phi coordinate of a shader.
Parameters:
phi - The phi coordinate to set. See Shader.get_phi() for description. (float)

set_theta(theta)

Sets the theta coordinate of a shader.
Parameters:
theta - The theta coordinate to set. See Shader.get_theta() for description. (float)

set_update_policy(update_policy)

Sets the update policy of a shader.
Parameters:
update_policy - The update policy shader should use. (GtkUpdateType)

Generated by Epydoc 2.1 on Tue Dec 30 04:01:41 2008 http://epydoc.sf.net