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

Type Raster3DDriver

object --+
         |
        Raster3DDriver


Viewer.py graphics driver for producing a output file for the Raster3D ray tracer.
Method Summary
  __init__(self)
  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_supported(self)
Returns True if draw compiling is supported by the driver.
  glr_construct_header(self)
Creates the header for the render program.
  glr_cross(self, position, color, line_width)
Draws atom with a cross of lines.
  glr_end_quads(self)
  glr_end_triangle_fan(self)
  glr_init_state(self)
Re-initalizes driver state variables.
  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, **args)
Sets up lighting and OpenGL options before scene rendering.
  glr_render_end(self)
Write out the input file for the render program.
  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_set_render_png_path(self, path)
  glr_set_render_program_path(self, render_path)
  glr_set_render_stdin(self, stdin)
  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_translate3(self, x, y, z)
  glr_tube(self, position1, position2, 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, vertex)
  glr_vertex3(self, x, y, z)
  glr_vertex_quads_1(self, vertex)
  glr_vertex_quads_2(self, vertex)
  glr_vertex_quads_3(self, vertex)
  glr_vertex_quads_4(self, vertex)
  glr_vertex_triangle_fan_1(self, vertex)
Get (first) common fan vertex.
  glr_vertex_triangle_fan_2(self, vertex)
Get second vertex.
  glr_vertex_triangle_fan_3(self, vertex)
Get third vertex and beyond: construct triangles.
  glr_write_objects(self, stdin)
Write the graphic objects to the stdin file.
    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

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_construct_header(self)

Creates the header for the render program.

glr_cross(self, position, color, line_width)

Draws atom with a cross of lines.

glr_init_state(self)

Re-initalizes driver state variables.

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=0.20000000000000001, diffuse_light=1.0, specular_light=1.0, **args)

Sets up lighting and OpenGL options before scene rendering.

glr_render_end(self)

Write out the input file for the render program.

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)

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, position1, position2, 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!)

glr_vertex_triangle_fan_1(self, vertex)

Get (first) common fan vertex.

glr_vertex_triangle_fan_2(self, vertex)

Get second vertex.

glr_vertex_triangle_fan_3(self, vertex)

Get third vertex and beyond: construct triangles.

glr_write_objects(self, stdin)

Write the graphic objects to the stdin file.

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