OpenGLContext.scenegraph.extrusions
index
/home/mcfletch/pylive/OpenGLContext/scenegraph/extrusions.py

GLE-based extrusion node-types

 
Modules
       
OpenGL.arrays
vrml.cache
OpenGLContext.displaylist
OpenGL.GLE.exceptional
vrml.field
vrml.node
vrml.vrml97.nodetypes
OpenGL.raw.GLE
OpenGL.raw.GLE.annotations
OpenGL.wrapper

 
Classes
       
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 = ''

 
Data
        GLE_TEXTURE_ENABLE = GLE_TEXTURE_ENABLE
GLE_TEXTURE_NORMAL_CYL = GLE_TEXTURE_NORMAL_CYL
GLE_TEXTURE_NORMAL_FLAT = GLE_TEXTURE_NORMAL_FLAT
GLE_TEXTURE_NORMAL_MODEL_CYL = GLE_TEXTURE_NORMAL_MODEL_CYL
GLE_TEXTURE_NORMAL_MODEL_FLAT = GLE_TEXTURE_NORMAL_MODEL_FLAT
GLE_TEXTURE_NORMAL_MODEL_SPH = GLE_TEXTURE_NORMAL_MODEL_SPH
GLE_TEXTURE_NORMAL_SPH = GLE_TEXTURE_NORMAL_SPH
GLE_TEXTURE_STYLE_MASK = GLE_TEXTURE_STYLE_MASK
GLE_TEXTURE_VERTEX_CYL = GLE_TEXTURE_VERTEX_CYL
GLE_TEXTURE_VERTEX_FLAT = GLE_TEXTURE_VERTEX_FLAT
GLE_TEXTURE_VERTEX_MODEL_CYL = GLE_TEXTURE_VERTEX_MODEL_CYL
GLE_TEXTURE_VERTEX_MODEL_FLAT = GLE_TEXTURE_VERTEX_MODEL_FLAT
GLE_TEXTURE_VERTEX_MODEL_SPH = GLE_TEXTURE_VERTEX_MODEL_SPH
GLE_TEXTURE_VERTEX_SPH = GLE_TEXTURE_VERTEX_SPH
RAD_TO_DEG = 114.59155902616465
TUBE_CONTOUR_CLOSED = TUBE_CONTOUR_CLOSED
TUBE_JN_ANGLE = TUBE_JN_ANGLE
TUBE_JN_CAP = TUBE_JN_CAP
TUBE_JN_CUT = TUBE_JN_CUT
TUBE_JN_MASK = TUBE_JN_MASK
TUBE_JN_RAW = TUBE_JN_RAW
TUBE_JN_ROUND = TUBE_JN_ROUND
TUBE_NORM_EDGE = TUBE_NORM_EDGE
TUBE_NORM_FACET = TUBE_NORM_FACET
TUBE_NORM_MASK = TUBE_NORM_MASK
TUBE_NORM_PATH_EDGE = TUBE_NORM_PATH_EDGE
__file__ = '/home/mcfletch/pylive/OpenGLContext/scenegraph/extrusions.pyc'
__name__ = 'OpenGLContext.scenegraph.extrusions'
__package__ = 'OpenGLContext.scenegraph'
geometry_log = <logging.Logger instance at 0x35f8ea8>
gleExtrusion = <OpenGL.wrapper.gleExtrusion object at 0x29b9a28>
gleGetJoinStyle = <CFunctionType object at 0x29b2d50>
gleGetNumSides = <CFunctionType object at 0x29b2e20>
gleHelicoid = <OpenGL.wrapper.gleHelicoid object at 0x29b9e60>
gleLathe = <OpenGL.wrapper.gleLathe object at 0x29bc170>
glePolyCone = <OpenGL.wrapper.glePolyCone object at 0x29bc5f0>
glePolyCylinder = <OpenGL.wrapper.glePolyCylinder object at 0x29bc950>
gleScrew = <OpenGL.wrapper.gleScrew object at 0x29bcc20>
gleSetJoinStyle = <CFunctionType object at 0x29b8390>
gleSetNumSides = <CFunctionType object at 0x29b8460>
gleSpiral = <OpenGL.wrapper.gleSpiral object at 0x29bcf80>
gleSuperExtrusion = <OpenGL.wrapper.gleSuperExtrusion object at 0x29bd440>
gleTextureMode = <CFunctionType object at 0x29b86d0>
gleToroid = <OpenGL.wrapper.gleToroid object at 0x29bd950>
gleTwistExtrusion = <OpenGL.wrapper.gleTwistExtrusion object at 0x29bdc20>
rot_about_axis = <OpenGL.wrapper.rot_about_axis object at 0x29be1b8>
rot_axis = <OpenGL.wrapper.rot_axis object at 0x29be440>
rot_omega = <OpenGL.wrapper.rot_omega object at 0x29be680>
rot_prince = <CFunctionType object at 0x29b8bb0>
urot_about_axis = <OpenGL.wrapper.urot_about_axis object at 0x29be8c0>
urot_axis = <OpenGL.wrapper.urot_axis object at 0x29beb90>
urot_omega = <OpenGL.wrapper.urot_omega object at 0x29bee60>
urot_prince = <OpenGL.wrapper.urot_prince object at 0x29c1170>
uview_direction = <OpenGL.wrapper.uview_direction object at 0x29c13b0>
uviewpoint = <OpenGL.wrapper.uviewpoint object at 0x29c1710>