| |
- Grouping(object)
-
- Collision(Grouping, Collision)
- Collision(Children, Grouping, Node)
-
- Collision(Grouping, Collision)
class Collision(Grouping, Collision) |
|
Collision node based on VRML 97 Collision
Note: at the moment this doesn't actually do anything
beyond what a regular group does. It's just here to
let content that uses a Collision be visible.
Reference:
http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-IS-VRML97WithAmendment1/part1/nodesRef.html#Collision |
|
- Method resolution order:
- Collision
- Grouping
- Collision
- Children
- Grouping
- Traversable
- Node
- object
Methods inherited from Grouping:
- boundingVolume(self, mode)
- Calculate the bounding volume for this node
The bounding volume for a grouping node is
the union of it's children's nodes, and is
dependent on the children of the node's
bounding nodes, as well as the children field
of the node.
- renderedChildren(self, types=(<class 'vrml.vrml97.nodetypes.Children'>, <class 'vrml.vrml97.nodetypes.Rendering'>))
- List all children which are instances of given types
- visible(self, frustum=None, matrix=None, occlusion=0, mode=None)
- Check whether this grouping node intersects frustum
frustum -- the bounding volume frustum with a planes
attribute which defines the plane equations for
each active clipping plane
matrix -- the active OpenGL transformation matrix for
this node, used to determine the transforms for
the grouping-node's bounding volumes. Is calculated
from current OpenGL state if not provided.
Data descriptors inherited from Grouping:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- children
- exposedField MFNode children []
- sensitive
- field SFBool sensitive 0
Data descriptors inherited from Collision:
- addChildren
- MFNode Event class
- bboxCenter
- field SFVec3f bboxCenter [0.0, 0.0, 0.0]
- bboxSize
- field SFVec3f bboxSize [-1.0, -1.0, -1.0]
- collide
- exposedField SFBool collide 1
- collideTime
- SFTime Event class
- proxy
- field SFNode SFNode NULL
- removeChildren
- MFNode Event class
Data and other attributes inherited from Collision:
- PROTO = 'Collision'
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
| |