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

Class OpenGLDriver

source code

object --+
         |
        OpenGLDriver

OpenGL render driver for Viewer.py

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
glr_compile_supported(self)
Returns True if draw compiling is supported by the driver.
source code
 
glr_compile_start(self, draw_method) source code
 
glr_compile_end(self) source code
 
glr_compile_delete(self, draw_method) source code
 
glr_compile_exists(self, draw_method) source code
 
glr_compile_current(self, draw_method) source code
 
glr_compile_render(self, draw_method) source code
 
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.
source code
 
glr_render_end(self) source code
 
glr_push_matrix(self) source code
 
glr_pop_matrix(self) source code
 
glr_translate(self, t)
Translates the scene by vector t.
source code
 
glr_translate3(self, x, y, z) source code
 
glr_mult_matrix_Rt(self, R, t)
Return the current matrix as a 3x3 rotation matrix R and 3x1 translation vector t.
source code
 
glr_mult_matrix_R(self, R)
Multiplies the current matrix by rotation matrix R and translates by t
source code
 
glr_rotate_axis(self, deg, axis) source code
 
glr_lighting_enable(self) source code
 
glr_lighting_disable(self) source code
 
glr_set_line_width(self, width) source code
 
glr_begin_lines(self) source code
 
glr_begin_triangles(self) source code
 
glr_begin_triangle_fan(self) source code
 
glr_begin_quads(self) source code
 
glr_end(self) source code
 
glr_normalize_enable(self) source code
 
glr_normalize_disable(self) source code
 
glr_normal(self, n) source code
 
glr_normal3(self, x, y, z) source code
 
glr_light_two_sides_enable(self) source code
 
glr_light_two_sides_disable(self) source code
 
glr_set_material_rgb(self, r, g, b)
Creates a stock rendering material colored according to the given RGB values.
source code
 
glr_set_material_rgba(self, r, g, b, a)
Creates a stock rendering material colored according to the given RGB values.
source code
 
glr_vertex(self, position) source code
 
glr_vertex3(self, x, y, z) source code
 
glr_line(self, position1, position2)
Draws a single line.
source code
 
glr_text(self, text, scale)
Renders a text string.
source code
 
glr_axis(self, position, axis, radius)
Draw a vector axis using the current set material at position with the given radius.
source code
 
glaccel_glr_axis(self, position, axis, radius)
glaccel optimized version of glr_axis.
source code
 
glr_tube(self, pos1, pos2, radius)
Draws a hollow tube beginning at pos1, and ending at pos2.
source code
 
glaccel_glr_tube(self, pos1, pos2, radius) source code
 
glr_sphere(self, position, radius, quality)
Draws a solid sphere.
source code
 
glaccel_glr_sphere(self, position, radius, quality) source code
 
glr_cross(self, position, color, line_width)
Draws atom with a cross of lines.
source code
 
glr_Uaxes(self, position, U, prob, color, line_width)
Draw the anisotropic axies of the atom at the given probability.
source code
 
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.
source code
 
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.
source code
 
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.
source code
 
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.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

glr_Uellipse(self, position, U, prob)

source code 

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_Uellipse(self, position, U, prob)

source code 

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)

source code 

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!)

glaccel_glr_Urms(self, position, U)

source code 

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!)