[x3d-public] x3d.py head field declarations question
John Carlson
yottzumm at gmail.com
Sat Dec 4 14:18:06 PST 2021
From x3d.py:
class head(_X3DStatement):
"""
Functional summary: each X3D scene includes a head statement that
can contain component, unit and meta statements.
"""
[snip]
defFIELD_DECLARATIONS(self):
''' Field declarations for this node: name, defaultValue, type,
accessType, inheritedFrom '''
return[('children', None, FieldType.MFNode, AccessType.inputOutput, 'head')]
=======================================================================================================
What I don't understand is, why is inheritedFrom "'head'" in the above code?
Also, why do these below fields from X3DUOM not appear in
FIELD_DECLARATIONS?
<field name="class"
type="SFString"
accessType="inputOutput"
inheritedFrom="X3DStatement"
baseType="xs:NMTOKENS"
description="The class attribute on each X3D node and statement is a
space-separated list of classes, reserved for use by Cascading St
yle Sheets (CSS) and XML stylesheets."/>
<field name="component"
type="MFNode"
accessType="inputOutput"
acceptableNodeTypes="component"
description="Add component statements to indicate necessary scene
functionality above the given profile for this X3D model."/>
<field name="id"
type="SFString"
accessType="inputOutput"
inheritedFrom="X3DStatement"
baseType="xs:NMTOKEN"
description="The id attribute on each X3D node and statement is
considered a unique identifier when used as part of an encompassing HT
ML/DOM context."/>
<field name="meta"
type="MFNode"
accessType="inputOutput"
acceptableNodeTypes="meta"
description="Add meta statements to provide metadata information about
this X3D model."/>
<field name="style"
type="SFString"
accessType="inputOutput"
inheritedFrom="X3DStatement"
description="The style attribute on each X3D node and statement provides
an inline block of CSS source for element styling, reserved f
or use by Cascading Style Sheets (CSS) and XML stylesheets."/>
<field name="unit"
type="MFNode"
accessType="inputOutput"
acceptableNodeTypes="unit"
description="Add unit statements to define data-conversion factors for
typed values defined within a scene."/>
<ContentModel>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211204/e9c73be5/attachment-0001.html>
More information about the x3d-public
mailing list