element Switch
diagram x3d-3.0_diagrams/x3d-3.0_p126.png
type extension of X3DGroupingNode
properties
content complex
children IS MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString Background ColorInterpolator CoordinateInterpolator DirectionalLight Group NavigationInfo NormalInterpolator OrientationInterpolator PositionInterpolator ScalarInterpolator Shape TimeSensor Transform Viewpoint WorldInfo Anchor BooleanFilter BooleanSequencer BooleanToggle BooleanTrigger CylinderSensor Inline IntegerSequencer IntegerTrigger KeySensor PlaneSensor PointLight ProximitySensor SphereSensor SpotLight StringSensor Switch TimeTrigger TouchSensor AudioClip Billboard Collision Fog LoadSensor LOD Script Sound VisibilitySensor CoordinateInterpolator2D PositionInterpolator2D StaticGroup TextureBackground EspduTransform ReceiverPdu SignalPdu TransmitterPdu GeoLocation GeoLOD GeoMetadata GeoPositionInterpolator GeoTouchSensor GeoViewpoint HAnimHumanoid HAnimJoint HAnimSegment HAnimSite NurbsOrientationInterpolator NurbsPositionInterpolator NurbsSurfaceInterpolator NurbsSet ProtoInstance ROUTE ExternProtoDeclare ProtoDeclare IMPORT EXPORT
used by
group ChildContentModelInteractive
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

DEF defines a unique ID name for each node, referenceable by other nodes.
USE  xs:IDREF        
appinfo

USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
class  xs:NMTOKENS        
appinfo

The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
bboxCenter  SFVec3f    0 0 0    
bboxSize  bboxSizeType    -1 -1 -1    
whichChoice  derived by: SFInt32    -1    
containerField  xs:NMTOKEN    children    
annotation
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Grouping"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
source <xs:element name="Switch">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Grouping"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
   
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/group.html#Switch"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DGroupingNode">
       
<xs:attribute name="whichChoice" default="-1">
         
<xs:simpleType>
           
<xs:restriction base="SFInt32">
             
<xs:minInclusive value="-1"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute Switch/@whichChoice
type restriction of SFInt32
properties
default -1
facets
Kind Value Annotation
minInclusive -1
source <xs:attribute name="whichChoice" default="-1">
 
<xs:simpleType>
   
<xs:restriction base="SFInt32">
     
<xs:minInclusive value="-1"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Switch/@containerField
type xs:NMTOKEN
properties
default children
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy