| |
- Switch(Switch)
-
- MouseOver(Bindable, Switch)
- Bindable(object)
-
- MouseOver(Bindable, Switch)
class MouseOver(Bindable, Switch) |
|
Simple node for constructing mouse-over functionality
Give it two values for whichChoice and the first will be
displayed by default, until the mouse moves over it, at
which point the second will be displayed.
Generally assumes that you've got two objects of the same
size, otherwise the objects will flash in and out as the
mouse leaves the object when the different shape appears. |
|
- Method resolution order:
- MouseOver
- Bindable
- Switch
- Switch
- Children
- Traversable
- Node
- object
Methods defined here:
- OnMouseIn(self, event)
- Switch back to highlight state
- OnMouseOut(self, event)
- Switch back to default state
- bind(self, context)
- Setup node-specific event callbacks and the like
This uses the context to register callbacks, as should
be done whenever registering per-context callbacks.
Data descriptors defined here:
- whichChoice
- exposedField SFInt32 whichChoice 0
Data and other attributes defined here:
- PROTO = 'MouseOver'
- bound = False
Data descriptors inherited from Bindable:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Switch:
- __init__(self, *args, **named)
- Setup watcher for whichChoice and children
- 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'>))
- Children is not the source, choice is
Data descriptors inherited from Switch:
- choice
- exposedField MFNode choice []
Data and other attributes inherited from Children:
- sensitive = 0
Methods inherited from Node:
- __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
| |