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

VRML97 Inline node

 
Modules
       
vrml.vrml97.basenodes
OpenGLContext.context
vrml.field
vrml.fieldtypes
vrml.vrml97.nodetypes
vrml.protofunctions

 
Classes
       
MFString(_MFString, Field)
InlineURLField
Inline(Children, Traversable, Node)
Inline

 
class Inline(Inline)
    Inline VRML97 scene based on VRML 97 Inline
Reference:
    http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-IS-VRML97WithAmendment1/part1/nodesRef.html#Inline
 
 
Method resolution order:
Inline
Inline
Children
Traversable
Node
object

Methods defined here:
loadBackground(self, url, contexts=())
Load an image from the given url in the background
 
url -- SF or MFString URL to load relative to the
    node's root's baseURL
 
On success:
    Sets the resulting PIL image to the
    client's image property (triggering an un-caching
    and re-compile if there was a previous image).
 
    if contexts, iterate through the list calling
    context.triggerRedraw(1)
renderedChildren(self, types=(<class 'vrml.vrml97.nodetypes.Children'>, <class 'vrml.vrml97.nodetypes.Rendering'>))
Choose child from level that is at appropriate range

Data descriptors defined here:
url
exposedField MFString url []

Data and other attributes defined here:
scenegraph = None

Data descriptors inherited from Inline:
bboxCenter
field SFVec3f bboxCenter [0.0, 0.0, 0.0]
bboxSize
field SFVec3f bboxSize [-1.0, -1.0, -1.0]

Data and other attributes inherited from Inline:
PROTO = 'Inline'

Data descriptors inherited from Children:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from Children:
sensitive = 0

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

 
class InlineURLField(MFString)
    Field for managing interactions with an Inline's URL value
 
 
Method resolution order:
InlineURLField
MFString
_MFString
Field
BaseField
object

Methods defined here:
fdel(self, client, notify=1)
Delete the client's URL, which should delete the scene as well
fset(self, client, value, notify=1)
Set the client's URL, then try to load the scene

Data and other attributes defined here:
fieldType = 'MFString'

Methods inherited from _MFString:
check(self, value)
Raise ValueError if isn't correct type
coerce(self, value)
Coerce the given value to our type
Allowable types:
    simple string -> wrapped in a list
    sequence of strings (of any length) -> equivalent list returned
copyValue(self, value, copier=None)
Copy a value for copier

Static methods inherited from _MFString:
vrmlstr = MFString_vrmlstr(value, lineariser=None)
Convert the given value to a VRML97 representation

Data descriptors inherited from _MFString:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from _MFString:
defaultDefault = <type 'list'>
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

Methods inherited from Field:
__init__(self, name, exposure=1, default=[])
Initialise the field object
 
name -- string name
exposure -- boolean (0/1) indicating whether this is an exposed field
default -- default value for the field
__str__(self)
Get a human-friendly representation of the field
copy(self, client=None, copier=None)
Copy this property's value/definition for client node/proto
 
if client is a prototype, copy this field definition
for use in a new prototype.
 
if client is a node, and it has a set value for this
field, then returns copyValue( currentValue )
 
otherwise returns _NULL, a singleton object which
shouldn't turn up anywhere else.
fhas(self, client)
Determine whether the client currently has a non-default value
fieldVrmlstr(self, lineariser)
Write the field's definition to the lineariser
 
Basically this gives you a VRML97 fragment
which can be used for creating a PROTO which
will have the equivalent of this field available.
typeName(self)
Get the typeName of this field
watch(self, node, receiver, signal=_Any)
Make receiver receive all update events for this field+node
 
receiver( signal, sender, value=None )
 
    signal -- ('del',self), ('set',self) etc...
    sender -- node 
    value -- new value set (for set values)

Data and other attributes inherited from Field:
nodes = 0

Methods inherited from BaseField:
__del__(...)
Delete our value from client's dictionary (notifies)
__delete__(...)
descr.__delete__(obj)
__get__(...)
Retrieve value for given instance (or self for cls)
__set__(...)
Set value for given instance (notifies)
fget = __get__(...)
Retrieve value for given instance (or self for cls)
getDefault(...)
Get the default value of this field
 
if client, set client's attribute to default
without sending a notification event.

Data descriptors inherited from BaseField:
call_default
defaultobj
name

Data and other attributes inherited from BaseField:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <capsule object NULL>

 
Data
        __file__ = '/home/mcfletch/pylive/OpenGLContext/scenegraph/inline.pyc'
__name__ = 'OpenGLContext.scenegraph.inline'
__package__ = 'OpenGLContext.scenegraph'