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

Class OpenGLRenderMethods

object --+
         |
        OpenGLRenderMethods

Known Subclasses:
GLDrawList, GLViewer

OpenGL renderer methods. Eventually, all OpenGL rendering will be done through methods in this object.
Method Summary
  glr_axis(self, position, axis, radius)
Draw a vector axis using the current set material at position with the given radius.
  glr_cross(self, position, color, line_width)
Draws atom with a cross of lines.
  glr_mult_matrix(self, R, t)
Multiplies the current matrix by rotation matrix R and translates by t
  glr_set_material_rgb(self, r, g, b, a)
Creates a stock rendering material colored according to the given RGB values.
  glr_sphere(self, position, radius, quality)
Draw a atom as a CPK 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.
  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.
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __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)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Method Details

glr_axis(self, position, axis, radius)

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

glr_cross(self, position, color, line_width)

Draws atom with a cross of lines.

glr_mult_matrix(self, R, t=array([ 0.,  0.,  0.]))

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

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

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

glr_sphere(self, position, radius, quality)

Draw a atom as a CPK 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.0 on Wed Nov 24 17:34:57 2004 http://epydoc.sf.net