| |
- Node(object)
-
- GLEGeom(Geometry, Node)
-
- Lathe
- Screw
- Spiral
- Geometry(object)
-
- GLEGeom(Geometry, Node)
-
- Lathe
- Screw
- Spiral
class GLEGeom(Geometry, Node) |
|
Base class for GLE geometry types
Provides the common operations and data seen in
the GLE geometry types.
Attributes:
textureMode -- specification of texture-coordinate
generation mode to be passed to GLE, include:
"mod" -- if present, use model view coordinates
"ver"/"norm" -- vertex/normal mode
"flat"/"cyl"/"sphere" -- flat, cylinder or
spherical coordinate generation
See:
http://pyopengl.sourceforge.net/documentation/manual/gleTextureMode.3GLE.xml
for semantics of the various modes. |
|
- Method resolution order:
- GLEGeom
- Geometry
- Node
- object
Methods defined here:
- compile(self, mode=None)
- Compile the geometry as a display-list
- do(self)
- Do the low-level rendering
- render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
- Render the geometry
Data descriptors defined here:
- sides
- exposedField SFInt32 sides 32
- textureMode
- exposedField SFString textureMode
Data and other attributes defined here:
- textureFormats = (('mod', (('vert', (('flat', GLE_TEXTURE_VERTEX_MODEL_FLAT), ('cyl', GLE_TEXTURE_VERTEX_MODEL_CYL), ('sph', GLE_TEXTURE_VERTEX_MODEL_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_MODEL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_MODEL_CYL), ('sph', GLE_TEXTURE_NORMAL_MODEL_SPH))))), ('', (('vert', (('flat', GLE_TEXTURE_VERTEX_FLAT), ('cyl', GLE_TEXTURE_VERTEX_CYL), ('sph', GLE_TEXTURE_VERTEX_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_CYL), ('sph', GLE_TEXTURE_NORMAL_SPH))))))
Data descriptors inherited from Geometry:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Node:
- __init__(self, **namedarguments)
- Initialise the node with appropriate named args
All properties/attributes must be specified with
named arguments, and the property/attribute must
exist within the Node's class/prototype.
This will raise AttributeError/ValueError/TypeError
if the values or the property names are inappropriate.
Note that all Node objects have the attribute/property
exposedField SFString DEF ""
defined. You may therefore specify a DEF name by
passing it as a named argument.
- __repr__(self)
- Get a code-like representation of the Node
Basically every attribute except for sub-nodes values
are returned as a full representation.
- __str__(self)
- Get a friendly representation of the Node
- copy(self, copier=None)
- Copy this node for copier
- toString(self, **namedargs)
- Generate a VRML 97-syntax string representing this Prototype
**namedargs -- key:value
passed arguments for the linearisation object
see lineariser4.Lineariser
Data descriptors inherited from Node:
- DEF
- exposedField SFString DEF
- externalURL
- exposedField MFString externalURL []
- rootSceneGraph
- exposedField RootScenegraphNode SFNode NULL
Data and other attributes inherited from Node:
- PROTO = ''
|
class Lathe(GLEGeom) |
|
Lathe of contour around a spiral (or circle)
contour -- the shape being swept
normals -- normals to the contour
up -- the 3D vector orienting the contour
startRadius -- initial radius of the spiral
deltaRadius -- change in radius of spiral for each spiral rotation
startZ -- starting Z coordinate for the spiral
deltaZ -- change in Z coordinate for each spiral rotation
startAngle -- angle at which spiral starts (in radians)
totalAngle -- angle included in the spiral (in radians)
sides -- number of divisions in a rotation
http://pyopengl.sourceforge.net/documentation/manual/gleLathe.3GLE.xml |
|
- Method resolution order:
- Lathe
- GLEGeom
- Geometry
- Node
- object
Methods defined here:
- do(self)
Data descriptors defined here:
- contour
- exposedField MFVec2f contour []
- deltaRadius
- exposedField SFFloat deltaRadius 0.0
- deltaZ
- exposedField SFFloat deltaZ 0.0
- normals
- exposedField MFVec2f normals []
- startAngle
- exposedField SFFloat startAngle 0.0
- startRadius
- exposedField SFFloat startRadius 1.0
- startZ
- exposedField SFFloat startZ 0.0
- totalAngle
- exposedField SFFloat totalAngle 3.14159265359
- up
- exposedField SFVec3f up (1, 0, 0)
Methods inherited from GLEGeom:
- compile(self, mode=None)
- Compile the geometry as a display-list
- render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
- Render the geometry
Data descriptors inherited from GLEGeom:
- sides
- exposedField SFInt32 sides 32
- textureMode
- exposedField SFString textureMode
Data and other attributes inherited from GLEGeom:
- textureFormats = (('mod', (('vert', (('flat', GLE_TEXTURE_VERTEX_MODEL_FLAT), ('cyl', GLE_TEXTURE_VERTEX_MODEL_CYL), ('sph', GLE_TEXTURE_VERTEX_MODEL_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_MODEL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_MODEL_CYL), ('sph', GLE_TEXTURE_NORMAL_MODEL_SPH))))), ('', (('vert', (('flat', GLE_TEXTURE_VERTEX_FLAT), ('cyl', GLE_TEXTURE_VERTEX_CYL), ('sph', GLE_TEXTURE_VERTEX_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_CYL), ('sph', GLE_TEXTURE_NORMAL_SPH))))))
Data descriptors inherited from Geometry:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Node:
- __init__(self, **namedarguments)
- Initialise the node with appropriate named args
All properties/attributes must be specified with
named arguments, and the property/attribute must
exist within the Node's class/prototype.
This will raise AttributeError/ValueError/TypeError
if the values or the property names are inappropriate.
Note that all Node objects have the attribute/property
exposedField SFString DEF ""
defined. You may therefore specify a DEF name by
passing it as a named argument.
- __repr__(self)
- Get a code-like representation of the Node
Basically every attribute except for sub-nodes values
are returned as a full representation.
- __str__(self)
- Get a friendly representation of the Node
- copy(self, copier=None)
- Copy this node for copier
- toString(self, **namedargs)
- Generate a VRML 97-syntax string representing this Prototype
**namedargs -- key:value
passed arguments for the linearisation object
see lineariser4.Lineariser
Data descriptors inherited from Node:
- DEF
- exposedField SFString DEF
- externalURL
- exposedField MFString externalURL []
- rootSceneGraph
- exposedField RootScenegraphNode SFNode NULL
Data and other attributes inherited from Node:
- PROTO = ''
|
class Screw(GLEGeom) |
|
Linear extrusion with twisting
contour -- the shape being swept
normals -- normals to the contour
up -- the 3D vector orienting the contour
startZ -- starting Z coordinate for the spiral
endZ -- ending Z coordinate for each spiral rotation
totalAngle -- total angle of rotation across length (radians)
sides -- number of divisions in a rotation
http://pyopengl.sourceforge.net/documentation/manual/gleScrew.3GLE.xml |
|
- Method resolution order:
- Screw
- GLEGeom
- Geometry
- Node
- object
Methods defined here:
- do(self)
Data descriptors defined here:
- contour
- exposedField MFVec2f contour []
- endZ
- exposedField SFFloat endZ 0.0
- normals
- exposedField MFVec2f normals []
- startZ
- exposedField SFFloat startZ 0.0
- totalAngle
- exposedField SFFloat totalAngle 3.14159265359
- up
- exposedField SFVec3f up (1, 0, 0)
Methods inherited from GLEGeom:
- compile(self, mode=None)
- Compile the geometry as a display-list
- render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
- Render the geometry
Data descriptors inherited from GLEGeom:
- sides
- exposedField SFInt32 sides 32
- textureMode
- exposedField SFString textureMode
Data and other attributes inherited from GLEGeom:
- textureFormats = (('mod', (('vert', (('flat', GLE_TEXTURE_VERTEX_MODEL_FLAT), ('cyl', GLE_TEXTURE_VERTEX_MODEL_CYL), ('sph', GLE_TEXTURE_VERTEX_MODEL_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_MODEL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_MODEL_CYL), ('sph', GLE_TEXTURE_NORMAL_MODEL_SPH))))), ('', (('vert', (('flat', GLE_TEXTURE_VERTEX_FLAT), ('cyl', GLE_TEXTURE_VERTEX_CYL), ('sph', GLE_TEXTURE_VERTEX_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_CYL), ('sph', GLE_TEXTURE_NORMAL_SPH))))))
Data descriptors inherited from Geometry:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Node:
- __init__(self, **namedarguments)
- Initialise the node with appropriate named args
All properties/attributes must be specified with
named arguments, and the property/attribute must
exist within the Node's class/prototype.
This will raise AttributeError/ValueError/TypeError
if the values or the property names are inappropriate.
Note that all Node objects have the attribute/property
exposedField SFString DEF ""
defined. You may therefore specify a DEF name by
passing it as a named argument.
- __repr__(self)
- Get a code-like representation of the Node
Basically every attribute except for sub-nodes values
are returned as a full representation.
- __str__(self)
- Get a friendly representation of the Node
- copy(self, copier=None)
- Copy this node for copier
- toString(self, **namedargs)
- Generate a VRML 97-syntax string representing this Prototype
**namedargs -- key:value
passed arguments for the linearisation object
see lineariser4.Lineariser
Data descriptors inherited from Node:
- DEF
- exposedField SFString DEF
- externalURL
- exposedField MFString externalURL []
- rootSceneGraph
- exposedField RootScenegraphNode SFNode NULL
Data and other attributes inherited from Node:
- PROTO = ''
|
class Spiral(GLEGeom) |
|
Banked spiral geometry
contour -- the shape being swept
normals -- normals to the contour
up -- the 3D vector orienting the contour
startRadius -- initial radius of the spiral
deltaRadius -- change in radius of spiral for each spiral rotation
startZ -- starting Z coordinate for the spiral
deltaZ -- change in Z coordinate for each spiral rotation
startAngle -- angle at which spiral starts (in radians)
totalAngle -- angle included in the spiral (in radians)
sides -- number of divisions in a rotation
http://pyopengl.sourceforge.net/documentation/manual/gleSpiral.3GLE.xml |
|
- Method resolution order:
- Spiral
- GLEGeom
- Geometry
- Node
- object
Methods defined here:
- do(self)
Data descriptors defined here:
- contour
- exposedField MFVec2f contour []
- deltaRadius
- exposedField SFFloat deltaRadius 0.0
- deltaZ
- exposedField SFFloat deltaZ 0.0
- normals
- exposedField MFVec2f normals []
- startAngle
- exposedField SFFloat startAngle 0.0
- startRadius
- exposedField SFFloat startRadius 1.0
- startZ
- exposedField SFFloat startZ 0.0
- totalAngle
- exposedField SFFloat totalAngle 3.14159265359
- up
- exposedField SFVec3f up (1, 0, 0)
Methods inherited from GLEGeom:
- compile(self, mode=None)
- Compile the geometry as a display-list
- render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
- Render the geometry
Data descriptors inherited from GLEGeom:
- sides
- exposedField SFInt32 sides 32
- textureMode
- exposedField SFString textureMode
Data and other attributes inherited from GLEGeom:
- textureFormats = (('mod', (('vert', (('flat', GLE_TEXTURE_VERTEX_MODEL_FLAT), ('cyl', GLE_TEXTURE_VERTEX_MODEL_CYL), ('sph', GLE_TEXTURE_VERTEX_MODEL_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_MODEL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_MODEL_CYL), ('sph', GLE_TEXTURE_NORMAL_MODEL_SPH))))), ('', (('vert', (('flat', GLE_TEXTURE_VERTEX_FLAT), ('cyl', GLE_TEXTURE_VERTEX_CYL), ('sph', GLE_TEXTURE_VERTEX_SPH))), ('norm', (('flat', GLE_TEXTURE_NORMAL_FLAT), ('cyl', GLE_TEXTURE_NORMAL_CYL), ('sph', GLE_TEXTURE_NORMAL_SPH))))))
Data descriptors inherited from Geometry:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Node:
- __init__(self, **namedarguments)
- Initialise the node with appropriate named args
All properties/attributes must be specified with
named arguments, and the property/attribute must
exist within the Node's class/prototype.
This will raise AttributeError/ValueError/TypeError
if the values or the property names are inappropriate.
Note that all Node objects have the attribute/property
exposedField SFString DEF ""
defined. You may therefore specify a DEF name by
passing it as a named argument.
- __repr__(self)
- Get a code-like representation of the Node
Basically every attribute except for sub-nodes values
are returned as a full representation.
- __str__(self)
- Get a friendly representation of the Node
- copy(self, copier=None)
- Copy this node for copier
- toString(self, **namedargs)
- Generate a VRML 97-syntax string representing this Prototype
**namedargs -- key:value
passed arguments for the linearisation object
see lineariser4.Lineariser
Data descriptors inherited from Node:
- DEF
- exposedField SFString DEF
- externalURL
- exposedField MFString externalURL []
- rootSceneGraph
- exposedField RootScenegraphNode SFNode NULL
Data and other attributes inherited from Node:
- PROTO = ''
| |