Package mmLib :: Module OpenGLDriver :: Class OpenGLDriver
[show private | hide private]
[frames | no frames]

Type OpenGLDriver

object --+
         |
        OpenGLDriver


OpenGL render driver for Viewer.py
Method Summary
  __init__(self)
  glaccel_glr_axis(self, position, axis, radius)
glaccel optimized version of glr_axis.
  glaccel_glr_sphere(self, position, radius, quality)
  glaccel_glr_tube(self, pos1, pos2, radius)
  glaccel_glr_Uellipse(self, position, U, prob)
Renders the ellipsoid enclosing the given fractional probability given the gaussian variance-covariance matrix U at the given position.
  glaccel_glr_Urms(self, position, U)
Renders the root mean square (one standard deviation) surface of the gaussian variance-covariance matrix U at the given position.
  glr_axis(self, position, axis, radius)
Draw a vector axis using the current set material at position with the given radius.
  glr_begin_lines(self)
  glr_begin_quads(self)
  glr_begin_triangle_fan(self)
  glr_begin_triangles(self)
  glr_compile_current(self, draw_method)
  glr_compile_delete(self, draw_method)
  glr_compile_end(self)
  glr_compile_exists(self, draw_method)
  glr_compile_render(self, draw_method)
  glr_compile_start(self, draw_method)
  glr_compile_supported(self)
Returns True if draw compiling is supported by the driver.
  glr_cross(self, position, color, line_width)
Draws atom with a cross of lines.
  glr_end(self)
  glr_light_two_sides_disable(self)
  glr_light_two_sides_enable(self)
  glr_lighting_disable(self)
  glr_lighting_enable(self)
  glr_line(self, position1, position2)
Draws a single line.
  glr_mult_matrix_R(self, R)
Multiplies the current matrix by rotation matrix R and translates by t
  glr_mult_matrix_Rt(self, R, t)
Return the current matrix as a 3x3 rotation matrix R and 3x1 translation vector t.
  glr_normal(self, n)
  glr_normal3(self, x, y, z)
  glr_normalize_disable(self)
  glr_normalize_enable(self)
  glr_pop_matrix(self)
  glr_push_matrix(self)
  glr_render_begin(self, width, height, zoom, near, far, bg_color_rgbf, ambient_light, diffuse_light, specular_light, gl_line_smooth, gl_point_smooth, gl_polygon_smooth, gl_blend, gl_fog, gl_fog_start, gl_fog_end, **args)
Sets up lighting and OpenGL options before scene rendering.
  glr_render_end(self)
  glr_rotate_axis(self, deg, axis)
  glr_set_line_width(self, width)
  glr_set_material_rgb(self, r, g, b)
Creates a stock rendering material colored according to the given RGB values.
  glr_set_material_rgba(self, r, g, b, a)
Creates a stock rendering material colored according to the given RGB values.
  glr_sphere(self, position, radius, quality)
Draws a solid sphere.
  glr_text(self, text, scale)
Renders a text string.
  glr_translate(self, t)
Translates the scene by vector t.
  glr_translate3(self, x, y, z)
  glr_tube(self, pos1, pos2, radius)
Draws a hollow tube beginning at pos1, and ending at pos2.
  glr_Uaxes(self, position, U, prob, color, line_width)
Draw the anisotropic axies of the atom at the given probability.
  glr_Uellipse(self, position, U, prob)
Renders the ellipsoid enclosing the given fractional probability given the gaussian variance-covariance matrix U at the given position.
  glr_Urms(self, position, U)
Renders the root mean square (one standard deviation) surface of the gaussian variance-covariance matrix U at the given position.
  glr_vertex(self, position)
  glr_vertex3(self, x, y, z)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

glaccel_glr_axis(self, position, axis, radius)

glaccel optimized version of glr_axis.

glaccel_glr_Uellipse(self, position, U, prob)

Renders the ellipsoid enclosing the given fractional probability given the gaussian variance-covariance matrix U at the given position. C=1.8724 = 68%

glaccel_glr_Urms(self, position, U)

Renders the root mean square (one standard deviation) surface of the gaussian variance-covariance matrix U at the given position. This is a peanut-shaped surface. (Note: reference the peanut paper!)

glr_axis(self, position, axis, radius)

Draw a vector axis using the current set material at position with the given radius.

glr_compile_supported(self)

Returns True if draw compiling is supported by the driver.

glr_cross(self, position, color, line_width)

Draws atom with a cross of lines.

glr_line(self, position1, position2)

Draws a single line.

glr_mult_matrix_R(self, R)

Multiplies the current matrix by rotation matrix R and translates by t

glr_mult_matrix_Rt(self, R, t)

Return the current matrix as a 3x3 rotation matrix R and 3x1 translation vector t.

glr_render_begin(self, width=200, height=100, zoom=50, near=0, far=0, bg_color_rgbf=(0.0, 0.0, 0.0), ambient_light=1.0, diffuse_light=1.0, specular_light=1.0, gl_line_smooth=False, gl_point_smooth=False, gl_polygon_smooth=False, gl_blend=True, gl_fog=False, gl_fog_start=0.0, gl_fog_end=0.0, **args)

Sets up lighting and OpenGL options before scene rendering.

glr_set_material_rgb(self, r, g, b)

Creates a stock rendering material colored according to the given RGB values.

glr_set_material_rgba(self, r, g, b, a)

Creates a stock rendering material colored according to the given RGB values.

glr_sphere(self, position, radius, quality)

Draws a solid sphere.

glr_text(self, text, scale)

Renders a text string.

glr_translate(self, t)

Translates the scene by vector t.

glr_tube(self, pos1, pos2, radius)

Draws a hollow tube beginning at pos1, and ending at pos2.

glr_Uaxes(self, position, U, prob, color, line_width)

Draw the anisotropic axies of the atom at the given probability.

glr_Uellipse(self, position, U, prob)

Renders the ellipsoid enclosing the given fractional probability given the gaussian variance-covariance matrix U at the given position. C=1.8724 = 68%

glr_Urms(self, position, U)

Renders the root mean square (one standard deviation) surface of the gaussian variance-covariance matrix U at the given position. This is a peanut-shaped surface. (Note: reference the peanut paper!)

Generated by Epydoc 2.1 on Sun Apr 23 22:08:38 2006 http://epydoc.sf.net