OpenGLContext.scenegraph.quadrics
index
p:\openglcontext\scenegraph\quadrics.py

Quadratic geometry types (cone, sphere, cylinder, etc)

 
Modules
            
Numeric
vrml.vrml97.basenodes
OpenGLContext.scenegraph.boundingvolume
OpenGLContext.scenegraph.cache
OpenGLContext.displaylist
vrml.field
vrml.node
vrml.vrml97.nodetypes
vrml.protofunctions
 
Classes
            
Cone(Geometry, Node)
Cone(Cone, Quadric)
Cylinder(Geometry, Node)
Cylinder(Cylinder, Quadric)
Geometry(object)
Quadric(Geometry, Node)
Cone(Cone, Quadric)
Cylinder(Cylinder, Quadric)
Sphere(Sphere, Quadric)
Node(object)
Quadric(Geometry, Node)
Cone(Cone, Quadric)
Cylinder(Cylinder, Quadric)
Sphere(Sphere, Quadric)
Sphere(Geometry, Node)
Sphere(Sphere, Quadric)
 
class Cone(Cone, Quadric)
      Cone geometry rendered with GLU quadratic calls
 
  
Method resolution order:
Cone
Cone
Quadric
Geometry
Node
object

Methods defined here:
boundingVolume(self, mode=None)
Create a bounding-volume object for this node
 
In this case we use the AABoundingBox, despite
the presence of the bounding sphere implementation.
This is just a preference issue, I'm using
AABoundingBox everywhere else, and want the sphere
to interoperate properly.
generate(self, quadratic)
Do the actual per-node generation of the geometry

Properties defined here:
loops
exposedField SFInt32  loops 1
loops getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
loops setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
loops deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.
stacks
exposedField SFInt32  stacks 2
stacks getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
stacks setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
stacks deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions defined here:
__doc__ = 'Cone geometry rendered with GLU quadratic calls'
__module__ = 'OpenGLContext.scenegraph.quadrics'

Properties inherited from Cone:
bottom
field SFBool bottom 1
bottom getter = fget(self, client) from SFBool
Get the client's value for this property
 
if notify is true send a notification event.
bottom setter = fset(self, client, value, notify=1) from SFBool
Set the client's value for this property
 
if notify is true send a notification event.
bottom deleter = fdel(self, client, notify=1) from SFBool
Delete the client's value for this property
 
if notify is true send a notification event.
bottomRadius
field SFFloat bottomRadius 1.0
bottomRadius getter = fget(self, client) from SFFloat
Get the client's value for this property
 
if notify is true send a notification event.
bottomRadius setter = fset(self, client, value, notify=1) from SFFloat
Set the client's value for this property
 
if notify is true send a notification event.
bottomRadius deleter = fdel(self, client, notify=1) from SFFloat
Delete the client's value for this property
 
if notify is true send a notification event.
height
field SFFloat height 2.0
height getter = fget(self, client) from SFFloat
Get the client's value for this property
 
if notify is true send a notification event.
height setter = fset(self, client, value, notify=1) from SFFloat
Set the client's value for this property
 
if notify is true send a notification event.
height deleter = fdel(self, client, notify=1) from SFFloat
Delete the client's value for this property
 
if notify is true send a notification event.
side
field SFBool side 1
side getter = fget(self, client) from SFBool
Get the client's value for this property
 
if notify is true send a notification event.
side setter = fset(self, client, value, notify=1) from SFBool
Set the client's value for this property
 
if notify is true send a notification event.
side deleter = fdel(self, client, notify=1) from SFBool
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Cone:
PROTO = 'Cone'

Methods inherited from Quadric:
compile(self, mode=None)
Compile a display-list for this geometry
parameters(self, quadratic)
Setup quadratic rendering parameters
render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
Render the geometry

Properties inherited from Quadric:
slices
exposedField SFInt32  slices 12
slices getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
slices setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
slices deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Geometry:
__dict__ = <dict-proxy object at 0x075A1BC8>
__weakref__ = <member '__weakref__' of 'Geometry' objects>

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

Properties inherited from Node:
DEF
exposedField SFString  DEF 
DEF getter = fget(self, client) from SFString
Get the client's value for this property
 
if notify is true send a notification event.
DEF setter = fset(self, client, value, notify=1) from SFString
Set the client's value for this property
 
if notify is true send a notification event.
DEF deleter = fdel(self, client, notify=1) from SFString
Delete the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph
exposedField WeakSFNode  root NULL
rootSceneGraph getter = fget(self, client) from WeakSFNode
Get the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph setter = fset(self, client, value, notify=1) from WeakSFNode
Set the client's value for this property
 
notify -- if true send a notification event
 
The SFNode tries to update the value's root
attribute to point to the root of the client
*iff* the value doesn't currently point at
a valid root.  (That is, it only updates root
if there is no current root).  This is done
without sending notify events.
rootSceneGraph deleter = fdel(self, client, notify=1) from WeakSFNode
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Node:
externalURL = ()

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class Cylinder(Cylinder, Quadric)
      Cylinder geometry rendered with GLU quadratic calls
 
  
Method resolution order:
Cylinder
Cylinder
Quadric
Geometry
Node
object

Methods defined here:
boundingVolume(self, mode=None)
Create a bounding-volume object for this node
 
In this case we use the AABoundingBox, despite
the presence of the bounding sphere implementation.
This is just a preference issue, I'm using
AABoundingBox everywhere else, and want the sphere
to interoperate properly.
generate(self, quadratic)
Do the actual per-node generation of the geometry

Properties defined here:
loops
exposedField SFInt32  loops 1
loops getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
loops setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
loops deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.
stacks
exposedField SFInt32  stacks 2
stacks getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
stacks setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
stacks deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions defined here:
__doc__ = 'Cylinder geometry rendered with GLU quadratic calls'
__module__ = 'OpenGLContext.scenegraph.quadrics'

Properties inherited from Cylinder:
bottom
field SFBool bottom 1
bottom getter = fget(self, client) from SFBool
Get the client's value for this property
 
if notify is true send a notification event.
bottom setter = fset(self, client, value, notify=1) from SFBool
Set the client's value for this property
 
if notify is true send a notification event.
bottom deleter = fdel(self, client, notify=1) from SFBool
Delete the client's value for this property
 
if notify is true send a notification event.
height
field SFFloat height 2.0
height getter = fget(self, client) from SFFloat
Get the client's value for this property
 
if notify is true send a notification event.
height setter = fset(self, client, value, notify=1) from SFFloat
Set the client's value for this property
 
if notify is true send a notification event.
height deleter = fdel(self, client, notify=1) from SFFloat
Delete the client's value for this property
 
if notify is true send a notification event.
radius
field SFFloat radius 1.0
radius getter = fget(self, client) from SFFloat
Get the client's value for this property
 
if notify is true send a notification event.
radius setter = fset(self, client, value, notify=1) from SFFloat
Set the client's value for this property
 
if notify is true send a notification event.
radius deleter = fdel(self, client, notify=1) from SFFloat
Delete the client's value for this property
 
if notify is true send a notification event.
side
field SFBool side 1
side getter = fget(self, client) from SFBool
Get the client's value for this property
 
if notify is true send a notification event.
side setter = fset(self, client, value, notify=1) from SFBool
Set the client's value for this property
 
if notify is true send a notification event.
side deleter = fdel(self, client, notify=1) from SFBool
Delete the client's value for this property
 
if notify is true send a notification event.
top
field SFBool top 1
top getter = fget(self, client) from SFBool
Get the client's value for this property
 
if notify is true send a notification event.
top setter = fset(self, client, value, notify=1) from SFBool
Set the client's value for this property
 
if notify is true send a notification event.
top deleter = fdel(self, client, notify=1) from SFBool
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Cylinder:
PROTO = 'Cylinder'

Methods inherited from Quadric:
compile(self, mode=None)
Compile a display-list for this geometry
parameters(self, quadratic)
Setup quadratic rendering parameters
render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
Render the geometry

Properties inherited from Quadric:
slices
exposedField SFInt32  slices 12
slices getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
slices setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
slices deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Geometry:
__dict__ = <dict-proxy object at 0x077B6488>
__weakref__ = <member '__weakref__' of 'Geometry' objects>

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

Properties inherited from Node:
DEF
exposedField SFString  DEF 
DEF getter = fget(self, client) from SFString
Get the client's value for this property
 
if notify is true send a notification event.
DEF setter = fset(self, client, value, notify=1) from SFString
Set the client's value for this property
 
if notify is true send a notification event.
DEF deleter = fdel(self, client, notify=1) from SFString
Delete the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph
exposedField WeakSFNode  root NULL
rootSceneGraph getter = fget(self, client) from WeakSFNode
Get the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph setter = fset(self, client, value, notify=1) from WeakSFNode
Set the client's value for this property
 
notify -- if true send a notification event
 
The SFNode tries to update the value's root
attribute to point to the root of the client
*iff* the value doesn't currently point at
a valid root.  (That is, it only updates root
if there is no current root).  This is done
without sending notify events.
rootSceneGraph deleter = fdel(self, client, notify=1) from WeakSFNode
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Node:
externalURL = ()

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class Quadric(Geometry, Node)
      Base-class for the various quadratic-type geometry classes
 
  
Method resolution order:
Quadric
Geometry
Node
object

Methods defined here:
compile(self, mode=None)
Compile a display-list for this geometry
generate(self, quadratic)
Do the actual per-node generation of the geometry
parameters(self, quadratic)
Setup quadratic rendering parameters
render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
Render the geometry

Properties defined here:
slices
exposedField SFInt32  slices 12
slices getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
slices setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
slices deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.
stacks
exposedField SFInt32  stacks 12
stacks getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
stacks setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
stacks deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions defined here:
__doc__ = 'Base-class for the various quadratic-type geometry classes'
__module__ = 'OpenGLContext.scenegraph.quadrics'

Data and non-method functions inherited from Geometry:
__dict__ = <dict-proxy object at 0x0775D970>
__weakref__ = <member '__weakref__' of 'Geometry' objects>

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

Properties inherited from Node:
DEF
exposedField SFString  DEF 
DEF getter = fget(self, client) from SFString
Get the client's value for this property
 
if notify is true send a notification event.
DEF setter = fset(self, client, value, notify=1) from SFString
Set the client's value for this property
 
if notify is true send a notification event.
DEF deleter = fdel(self, client, notify=1) from SFString
Delete the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph
exposedField WeakSFNode  root NULL
rootSceneGraph getter = fget(self, client) from WeakSFNode
Get the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph setter = fset(self, client, value, notify=1) from WeakSFNode
Set the client's value for this property
 
notify -- if true send a notification event
 
The SFNode tries to update the value's root
attribute to point to the root of the client
*iff* the value doesn't currently point at
a valid root.  (That is, it only updates root
if there is no current root).  This is done
without sending notify events.
rootSceneGraph deleter = fdel(self, client, notify=1) from WeakSFNode
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Node:
PROTO = ''
externalURL = ()

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class Sphere(Sphere, Quadric)
      Sphere geometry rendered with GLU quadratic calls
 
  
Method resolution order:
Sphere
Sphere
Quadric
Geometry
Node
object

Methods defined here:
boundingVolume(self, mode=None)
Create a bounding-volume object for this node
 
In this case we use the AABoundingBox, despite
the presence of the bounding sphere implementation.
This is just a preference issue, I'm using
AABoundingBox everywhere else, and want the sphere
to interoperate properly.
generate(self, quadratic)
Do the actual per-node generation of the geometry

Data and non-method functions defined here:
__doc__ = 'Sphere geometry rendered with GLU quadratic calls'
__module__ = 'OpenGLContext.scenegraph.quadrics'

Properties inherited from Sphere:
radius
field SFFloat radius 1.0
radius getter = fget(self, client) from SFFloat
Get the client's value for this property
 
if notify is true send a notification event.
radius setter = fset(self, client, value, notify=1) from SFFloat
Set the client's value for this property
 
if notify is true send a notification event.
radius deleter = fdel(self, client, notify=1) from SFFloat
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Sphere:
PROTO = 'Sphere'

Methods inherited from Quadric:
compile(self, mode=None)
Compile a display-list for this geometry
parameters(self, quadratic)
Setup quadratic rendering parameters
render(self, visible=1, lit=1, textured=1, transparent=0, mode=None)
Render the geometry

Properties inherited from Quadric:
slices
exposedField SFInt32  slices 12
slices getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
slices setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
slices deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.
stacks
exposedField SFInt32  stacks 12
stacks getter = fget(self, client) from SFInt32
Get the client's value for this property
 
if notify is true send a notification event.
stacks setter = fset(self, client, value, notify=1) from SFInt32
Set the client's value for this property
 
if notify is true send a notification event.
stacks deleter = fdel(self, client, notify=1) from SFInt32
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Geometry:
__dict__ = <dict-proxy object at 0x077699D0>
__weakref__ = <member '__weakref__' of 'Geometry' objects>

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

Properties inherited from Node:
DEF
exposedField SFString  DEF 
DEF getter = fget(self, client) from SFString
Get the client's value for this property
 
if notify is true send a notification event.
DEF setter = fset(self, client, value, notify=1) from SFString
Set the client's value for this property
 
if notify is true send a notification event.
DEF deleter = fdel(self, client, notify=1) from SFString
Delete the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph
exposedField WeakSFNode  root NULL
rootSceneGraph getter = fget(self, client) from WeakSFNode
Get the client's value for this property
 
if notify is true send a notification event.
rootSceneGraph setter = fset(self, client, value, notify=1) from WeakSFNode
Set the client's value for this property
 
notify -- if true send a notification event
 
The SFNode tries to update the value's root
attribute to point to the root of the client
*iff* the value doesn't currently point at
a valid root.  (That is, it only updates root
if there is no current root).  This is done
without sending notify events.
rootSceneGraph deleter = fdel(self, client, notify=1) from WeakSFNode
Delete the client's value for this property
 
if notify is true send a notification event.

Data and non-method functions inherited from Node:
externalURL = ()

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T