1. pyro.gui.renderer.GLRenderer
No Docstring
In File: pyrobot/gui/renderer/gl.py
Subclass of: pyro.gui.renderer.Renderer (see PyroDocGuiRendererRenderer) in pyrobot/gui/renderer/init.py
Depends on:
-
pyro.gui.renderer.Renderer
-
OpenGL
-
math
- pyro.gui.renderer.GLRenderer
- Public Data Members
- Constructor()
- External Functions
- xformPush(dummy)
- xformPop()
- xformRotate((qty, pt))
- xformXlate((pt))
- xformScale((scale))
- setLocation(x, y, z, theta)
- color((color))
- ray((pta, ptb, arc))
- line((pta, ptb))
- circle((pt, norm, radius))
- triangle((pta, ptb, ptc))
- text((str))
- getFourthPoint(pta, ptb, ptc)
- nomalize(out)
- glNormal(out)
- normal_vector(pta, ptb, ptc)
- rectangle((pta, ptb, ptc))
- box((pta, ptb, ptc, ptd))
- tourus((ir, ora, n, r))
- polygon(*args)
- clearState(dummy)
- clearColor(color)
1.1. Public Data Members
These are all 4-tuples defining colors:
-
blue
-
darkred
-
red
-
lightgray
-
gray
-
darkgray
1.2. Constructor()
No Docstring
1.3. External Functions
1.3.1. xformPush(dummy)
No Docstring
Arguments:
-
dummy: ?
1.3.2. xformPop()
No Docstring
1.3.3. xformRotate((qty, pt))
No Docstring
Arguments:
-
2-tuple:
-
qty: Amount to rotate, in degrees
-
pt: 3-tuple, point (axis?) about which to rotate
1.3.4. xformXlate((pt))
No Docstring
Arguments:
-
(pt): 3-tuple, vector to translate by
1.3.5. xformScale((scale))
No Docstring
Arguments:
-
(scale): ?
1.3.6. setLocation(x, y, z, theta)
No Docstring
Arguments:
-
x: x-position
-
y: y-position
-
z: z-position
-
theta: angle to face
1.3.7. color((color))
No Docstring
Arguments:
-
(color): 3-tuple, RGB value
1.3.8. ray((pta, ptb, arc))
No Docstring
Arguments:
-
3-tuple
-
pta: 3-tuple, origin point
-
ptb: 3-tuple, end point
-
arc: in radians, the width of the ray at ptb
I'm not sure I'm right on which pt is the origin and which is the end.
1.3.9. line((pta, ptb))
No Docstring
Arguments:
-
3-tuple
-
pta: 3-tuple, origin point
-
ptb: 3-tuple, end point
Not Implemented!
1.3.10. circle((pt, norm, radius))
No Docstring
Arguments:
-
3-tuple
-
pt: 3-tuple, origin point
-
norm: ? (a normal vector? line?)
-
radius: float, radius
Not Implemented!
1.3.11. triangle((pta, ptb, ptc))
No Docstring
Arguments:
-
3-tuple
-
pta: 3-tuple, 1st point
-
ptb: 3-tuple, 2nd point
-
ptc: 3-tuple, 3rd point
1.3.12. text((str))
No Docstring
Arguments:
-
str: string (why the parens?)
1.3.13. getFourthPoint(pta, ptb, ptc)
No Docstring
Arguments:
-
pta: 3-tuple. 1st point
-
ptb: 3-tuple. 2nd point
-
ptc: 3-tuple. 3rd point
Returns:
-
3-tuple. The 4th pt of the rectangle.
Given three verticies of a rectangle, find the forth
1.3.14. nomalize(out)
No Docsting
Arguments:
-
out: 3-tuple. A vector to be normalized
Returns:
-
A length-1 vector parallel to out.
1.3.15. glNormal(out)
No Docstring
Arguments:
-
out: 3-tuple.
Calls glNormal3f on the components of out.
1.3.16. normal_vector(pta, ptb, ptc)
No Docstring
Arguments:
-
pta: 3-tuple. 1st point
-
ptb: 3-tuple. 2nd point
-
ptc: 3-tuple. 3rd point
Returns:
-
A length-1 vector normal to the plane in which pta, ptb, and ptc lie.
1.3.17. rectangle((pta, ptb, ptc))
No Docstring
Arguments:
-
3-tuple
-
pta: 3-tuple, 1st point
-
ptb: 3-tuple, 2nd point
-
ptc: 3-tuple, 3rd point
1.3.18. box((pta, ptb, ptc, ptd))
No Docstring
Arguments:
-
4-tuple
-
pta: 3-tuple, 1st point
-
ptb: 3-tuple, 2nd point
-
ptc: 3-tuple, 3rd point
-
ptd: 3-tuple, 4th point
I think the fourth point is supposed to be on a line perpendicular to the plane formed by the first three, and running through ptc.
1.3.19. tourus((ir, ora, n, r))
No Docstring
Arguments:
-
4-tuple
-
ir: float: inner radius
-
ora: float: outer radius
-
n: integer: number of sides for each radial section
-
r: integer: number for radial divisions in the torus
1.3.20. polygon(*args)
No Docstring
Arguments:
-
*args: As many 3-tuple points as needed to define the polygon
1.3.21. clearState(dummy)
No Docstring
Arguments:
-
dummy: ?
Does nothing
1.3.22. clearColor(color)
No Docstring
Arguments:
-
color: ?
