| | |
- Node
-
- Group
-
- Transform
class Transform(Group) |
| |
Transform node based on VRML 97 Transform
The Transform node provides a fairly robust implementation
of encapsulated local coordinate setup. You can set translation,
rotation, scale, scaleOrientation and center and have the matrices
properly setup and restored (even when you have exceeded the
matrix stack depth).
Attributes of note within the Group object:
children -- list of renderable objects
translation -- x,y,z positioning of the coordinates
center -- x,y,z center of rotation and scaling
rotation -- x,y,z,radians rotation about the center
scaleOrientation -- x,y,z,radians determining orientation of scaling
scale -- x,y,z scaling about center in scaleOrientation
name -- reported during selection-rendering as the GLName of
the transform if self.sensitive is true
Reference:
http://www.vrml.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#Transform |
| |
- Render(self, mode=1)
- __init__(self, translation=None, rotation=None, center=None, scale=None, scaleOrientation=None, children=None, name=None)
- addChildren(self, children) from Group
- checkSensitive(self) from Group
- popName(self) from Group
- pushName(self) from Group
- removeChildren(self, children) from Group
- set_center(self, (x, y, z))
- Set VRML rotation and scaling center, x,y,z tuple with no boundary conditions
- set_children(self, children) from Group
- set_name(self, name=None) from Group
- set_rotation(self, (x, y, z, angle))
- Set VRML-style rotation (x,y,z, a), specified in radians
- set_scale(self, (x, y, z))
- Set VRML scale, x,y,z tuple, 0+tiny fraction to infinity
- set_scaleOrientation(self, (x, y, z, angle))
- Set VRML-style scale orientation (x,y,z, a), specified in radians
- set_translation(self, (x, y, z))
- Set VRML translation, x,y,z tuple with no boundary conditions
- transform(self)
- Perform the actual alteration of the current matrix
| |