x3d¶
When using X3D, use append rather than html when adding children inline while templating.
This is because they are nodes, not HTML elements, so they do not inherit the custom innerHTML shortcut.
Instead they currently mix in ParentNode, which provides append and prepend methods.
For example:
from domonic.xml.x3d import *
print(x3d(_width='500px', _height='400px').append(
scene(
transform(_DEF="ball").append(
shape(
appearance(
material(_diffuseColor='1 0 0')
),
sphere()
)
),
timeSensor(_DEF="time", _cycleInterval="2", _loop="true"),
PositionInterpolator(_DEF="move", _key="0 0.5 1", _keyValue="0 0 0 0 3 0 0 0 0"),
Route(_fromNode="time", _fromField ="fraction_changed", _toNode="move", _toField="set_fraction"),
Route(_fromNode="move", _fromField ="value_changed", _toNode="ball", _toField="translation")
)
))
# <x3d width="500px" height="400px"><scene><transform DEF="ball"><shape><appearance><material diffuseColor="1 0 0"></material></appearance><sphere></sphere></shape></transform><timeSensor DEF="time" cycleInterval="2" loop="true"></timeSensor><PositionInterpolator DEF="move" key="0 0.5 1" keyValue="0 0 0 0 3 0 0 0 0"></PositionInterpolator><Route fromNode="time" fromField="fraction_changed" toNode="move" toField="set_fraction"></Route><Route fromNode="move" fromField="value_changed" toNode="ball" toField="translation"></Route></scene></x3d>
Alternatively, put them directly in the first parameter and move keyword arguments to the end.
A-Frame¶
A-Frame is similar, and its tags can be used if you import the JavaScript runtime.
from domonic.html import *
from domonic.xml.aframe import *
from domonic.CDN import *
_scene = scene(
box(_position="-1 0.5 -3", _rotation="0 45 0", _color="#4CC3D9"),
sphere(_position="0 1.25 -5", _radius="1.25", _color="#EF2D5E"),
cylinder(_position="1 0.75 -3", _radius="0.5", _height="1.5", _color="#FFC65D"),
plane(_position="0 0 -4", _rotation="-90 0 0", _width="4", _height="4", _color="#7BC8A4"),
sky(_color="#ECECEC")
)
_webpage = html(head(),body(
script(_src=CDN_JS.AFRAME), # Import A-Frame before using the scene.
str(_scene)
)
)
render( _webpage, 'hello.html' )
# writes hello.html:
# <html><head></head><body><script src="https://cdn.jsdelivr.net/npm/aframe@1.8.0/dist/aframe-v1.8.0.min.js"></script><a-scene><box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></box><sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></sphere><cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></cylinder><plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></plane><sky color="#ECECEC"></sky></a-scene></body></html>
domonic.x3d¶
Generate x3d with python 3
- domonic.xml.x3d.X3D
alias of
x3d
- domonic.xml.x3d.Scene
alias of
scene
- domonic.xml.x3d.Material
alias of
material
- domonic.xml.x3d.Appearance
alias of
appearance
- domonic.xml.x3d.Sphere
alias of
sphere
- domonic.xml.x3d.Shape
alias of
shape
- domonic.xml.x3d.Transform
alias of
transform
- domonic.xml.x3d.TimeSensor
alias of
timeSensor
- domonic.xml.x3d.Inline
alias of
inline
- domonic.xml.x3d.Box
alias of
box
- domonic.xml.x3d.Plane
alias of
plane
- domonic.xml.x3d.route
alias of
Route
- domonic.xml.x3d.anchor
alias of
Anchor
- domonic.xml.x3d.arc2D
alias of
Arc2D
- domonic.xml.x3d.arcClose2D
alias of
ArcClose2D
- domonic.xml.x3d.audioClip
alias of
AudioClip
- domonic.xml.x3d.background
alias of
Background
- domonic.xml.x3d.ballJoint
alias of
BallJoint
- domonic.xml.x3d.billboard
alias of
Billboard
- domonic.xml.x3d.binaryGeometry
alias of
BinaryGeometry
- domonic.xml.x3d.blendedVolumeStyle
alias of
BlendedVolumeStyle
- class domonic.xml.x3d.BlendedVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'BlendedVolumeStyle'
- domonic.xml.x3d.blendMode
alias of
BlendMode
- domonic.xml.x3d.block
alias of
Block
- domonic.xml.x3d.boundaryEnhancementVolumeStyle
alias of
BoundaryEnhancementVolumeStyle
- class domonic.xml.x3d.BoundaryEnhancementVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'BoundaryEnhancementVolumeStyle'
- domonic.xml.x3d.bufferAccessor
alias of
BufferAccessor
- domonic.xml.x3d.bufferGeometry
alias of
BufferGeometry
- domonic.xml.x3d.bufferView
alias of
BufferView
- domonic.xml.x3d.cADAssembly
alias of
CADAssembly
- domonic.xml.x3d.cADFace
alias of
CADFace
- domonic.xml.x3d.cADLayer
alias of
CADLayer
- domonic.xml.x3d.cADPart
alias of
CADPart
- domonic.xml.x3d.cartoonVolumeStyle
alias of
CartoonVolumeStyle
- class domonic.xml.x3d.CartoonVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'CartoonVolumeStyle'
- domonic.xml.x3d.circle2D
alias of
Circle2D
- domonic.xml.x3d.clipPlane
alias of
ClipPlane
- domonic.xml.x3d.collidableShape
alias of
CollidableShape
- domonic.xml.x3d.collision
alias of
Collision
- domonic.xml.x3d.collisionCollection
alias of
CollisionCollection
- class domonic.xml.x3d.CollisionCollection(*args, **kwargs)
Bases:
Element- name: str = 'CollisionCollection'
- domonic.xml.x3d.collisionSensor
alias of
CollisionSensor
- domonic.xml.x3d.color
alias of
Color
- domonic.xml.x3d.colorChaser
alias of
ColorChaser
- domonic.xml.x3d.colorDamper
alias of
ColorDamper
- domonic.xml.x3d.colorInterpolator
alias of
ColorInterpolator
- class domonic.xml.x3d.ColorInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'ColorInterpolator'
- domonic.xml.x3d.colorMaskMode
alias of
ColorMaskMode
- domonic.xml.x3d.colorRGBA
alias of
ColorRGBA
- domonic.xml.x3d.commonSurfaceShader
alias of
CommonSurfaceShader
- class domonic.xml.x3d.CommonSurfaceShader(*args, **kwargs)
Bases:
Element- name: str = 'CommonSurfaceShader'
- domonic.xml.x3d.composedCubeMapTexture
alias of
ComposedCubeMapTexture
- class domonic.xml.x3d.ComposedCubeMapTexture(*args, **kwargs)
Bases:
Element- name: str = 'ComposedCubeMapTexture'
- domonic.xml.x3d.composedShader
alias of
ComposedShader
- domonic.xml.x3d.composedTexture3D
alias of
ComposedTexture3D
- class domonic.xml.x3d.ComposedTexture3D(*args, **kwargs)
Bases:
Element- name: str = 'ComposedTexture3D'
- domonic.xml.x3d.composedVolumeStyle
alias of
ComposedVolumeStyle
- class domonic.xml.x3d.ComposedVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'ComposedVolumeStyle'
- domonic.xml.x3d.cone
alias of
Cone
- domonic.xml.x3d.coordinate
alias of
Coordinate
- domonic.xml.x3d.coordinateDamper
alias of
CoordinateDamper
- class domonic.xml.x3d.CoordinateDamper(*args, **kwargs)
Bases:
Element- name: str = 'CoordinateDamper'
- domonic.xml.x3d.coordinateDouble
alias of
CoordinateDouble
- class domonic.xml.x3d.CoordinateDouble(*args, **kwargs)
Bases:
Element- name: str = 'CoordinateDouble'
- domonic.xml.x3d.coordinateInterpolator
alias of
CoordinateInterpolator
- class domonic.xml.x3d.CoordinateInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'CoordinateInterpolator'
- domonic.xml.x3d.cylinder
alias of
Cylinder
- domonic.xml.x3d.cylinderSensor
alias of
CylinderSensor
- domonic.xml.x3d.depthMode
alias of
DepthMode
- domonic.xml.x3d.directionalLight
alias of
DirectionalLight
- class domonic.xml.x3d.DirectionalLight(*args, **kwargs)
Bases:
Element- name: str = 'DirectionalLight'
- domonic.xml.x3d.dish
alias of
Dish
- domonic.xml.x3d.disk2D
alias of
Disk2D
- domonic.xml.x3d.doubleAxisHingeJoint
alias of
DoubleAxisHingeJoint
- class domonic.xml.x3d.DoubleAxisHingeJoint(*args, **kwargs)
Bases:
Element- name: str = 'DoubleAxisHingeJoint'
- domonic.xml.x3d.dynamicLOD
alias of
DynamicLOD
- domonic.xml.x3d.edgeEnhancementVolumeStyle
alias of
EdgeEnhancementVolumeStyle
- class domonic.xml.x3d.EdgeEnhancementVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'EdgeEnhancementVolumeStyle'
- domonic.xml.x3d.elevationGrid
alias of
ElevationGrid
- domonic.xml.x3d.environment
alias of
Environment
- domonic.xml.x3d.extrusion
alias of
Extrusion
- domonic.xml.x3d.field
alias of
Field
- domonic.xml.x3d.floatVertexAttribute
alias of
FloatVertexAttribute
- class domonic.xml.x3d.FloatVertexAttribute(*args, **kwargs)
Bases:
Element- name: str = 'FloatVertexAttribute'
- domonic.xml.x3d.fog
alias of
Fog
- domonic.xml.x3d.fontStyle
alias of
FontStyle
- domonic.xml.x3d.generatedCubeMapTexture
alias of
GeneratedCubeMapTexture
- class domonic.xml.x3d.GeneratedCubeMapTexture(*args, **kwargs)
Bases:
Element- name: str = 'GeneratedCubeMapTexture'
- domonic.xml.x3d.geoCoordinate
alias of
GeoCoordinate
- domonic.xml.x3d.geoElevationGrid
alias of
GeoElevationGrid
- class domonic.xml.x3d.GeoElevationGrid(*args, **kwargs)
Bases:
Element- name: str = 'GeoElevationGrid'
- domonic.xml.x3d.geoLocation
alias of
GeoLocation
- domonic.xml.x3d.geoLOD
alias of
GeoLOD
- domonic.xml.x3d.geoMetadata
alias of
GeoMetadata
- domonic.xml.x3d.geoOrigin
alias of
GeoOrigin
- domonic.xml.x3d.geoPositionInterpolator
alias of
GeoPositionInterpolator
- class domonic.xml.x3d.GeoPositionInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'GeoPositionInterpolator'
- domonic.xml.x3d.geoTransform
alias of
GeoTransform
- domonic.xml.x3d.geoViewpoint
alias of
GeoViewpoint
- domonic.xml.x3d.group
alias of
Group
- domonic.xml.x3d.hAnimDisplacer
alias of
HAnimDisplacer
- domonic.xml.x3d.hAnimHumanoid
alias of
HAnimHumanoid
- domonic.xml.x3d.hAnimJoint
alias of
HAnimJoint
- domonic.xml.x3d.hAnimSegment
alias of
HAnimSegment
- domonic.xml.x3d.hAnimSite
alias of
HAnimSite
- domonic.xml.x3d.imageTexture
alias of
ImageTexture
- domonic.xml.x3d.imageTexture3D
alias of
ImageTexture3D
- domonic.xml.x3d.imageTextureAtlas
alias of
ImageTextureAtlas
- class domonic.xml.x3d.ImageTextureAtlas(*args, **kwargs)
Bases:
Element- name: str = 'ImageTextureAtlas'
- domonic.xml.x3d.indexedFaceSet
alias of
IndexedFaceSet
- domonic.xml.x3d.indexedLineSet
alias of
IndexedLineSet
- domonic.xml.x3d.indexedQuadSet
alias of
IndexedQuadSet
- domonic.xml.x3d.indexedTriangleSet
alias of
IndexedTriangleSet
- class domonic.xml.x3d.IndexedTriangleSet(*args, **kwargs)
Bases:
Element- name: str = 'IndexedTriangleSet'
- domonic.xml.x3d.indexedTriangleStripSet
alias of
IndexedTriangleStripSet
- class domonic.xml.x3d.IndexedTriangleStripSet(*args, **kwargs)
Bases:
Element- name: str = 'IndexedTriangleStripSet'
- domonic.xml.x3d.isoSurfaceVolumeData
alias of
IsoSurfaceVolumeData
- class domonic.xml.x3d.IsoSurfaceVolumeData(*args, **kwargs)
Bases:
Element- name: str = 'IsoSurfaceVolumeData'
- domonic.xml.x3d.lineProperties
alias of
LineProperties
- domonic.xml.x3d.lineSet
alias of
LineSet
- domonic.xml.x3d.lOD
alias of
LOD
- domonic.xml.x3d.matrixTextureTransform
alias of
MatrixTextureTransform
- class domonic.xml.x3d.MatrixTextureTransform(*args, **kwargs)
Bases:
Element- name: str = 'MatrixTextureTransform'
- domonic.xml.x3d.matrixTransform
alias of
MatrixTransform
- domonic.xml.x3d.mesh
alias of
Mesh
- domonic.xml.x3d.metadataBoolean
alias of
MetadataBoolean
- domonic.xml.x3d.metadataDouble
alias of
MetadataDouble
- domonic.xml.x3d.metadataFloat
alias of
MetadataFloat
- domonic.xml.x3d.metadataInteger
alias of
MetadataInteger
- domonic.xml.x3d.metadataSet
alias of
MetadataSet
- domonic.xml.x3d.metadataString
alias of
MetadataString
- domonic.xml.x3d.motorJoint
alias of
MotorJoint
- domonic.xml.x3d.movieTexture
alias of
MovieTexture
- domonic.xml.x3d.mPRPlane
alias of
MPRPlane
- domonic.xml.x3d.mPRVolumeStyle
alias of
MPRVolumeStyle
- domonic.xml.x3d.multiTexture
alias of
MultiTexture
- domonic.xml.x3d.multiTextureCoordinate
alias of
MultiTextureCoordinate
- class domonic.xml.x3d.MultiTextureCoordinate(*args, **kwargs)
Bases:
Element- name: str = 'MultiTextureCoordinate'
- domonic.xml.x3d.navigationInfo
alias of
NavigationInfo
- domonic.xml.x3d.normal
alias of
Normal
- domonic.xml.x3d.normalInterpolator
alias of
NormalInterpolator
- class domonic.xml.x3d.NormalInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'NormalInterpolator'
- domonic.xml.x3d.nozzle
alias of
Nozzle
- domonic.xml.x3d.opacityMapVolumeStyle
alias of
OpacityMapVolumeStyle
- class domonic.xml.x3d.OpacityMapVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'OpacityMapVolumeStyle'
- domonic.xml.x3d.orientationChaser
alias of
OrientationChaser
- class domonic.xml.x3d.OrientationChaser(*args, **kwargs)
Bases:
Element- name: str = 'OrientationChaser'
- domonic.xml.x3d.orientationDamper
alias of
OrientationDamper
- class domonic.xml.x3d.OrientationDamper(*args, **kwargs)
Bases:
Element- name: str = 'OrientationDamper'
- domonic.xml.x3d.orientationInterpolator
alias of
OrientationInterpolator
- class domonic.xml.x3d.OrientationInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'OrientationInterpolator'
- domonic.xml.x3d.orthoViewpoint
alias of
OrthoViewpoint
- domonic.xml.x3d.param
alias of
Param
- domonic.xml.x3d.particleSet
alias of
ParticleSet
- domonic.xml.x3d.physicalEnvironmentLight
alias of
PhysicalEnvironmentLight
- class domonic.xml.x3d.PhysicalEnvironmentLight(*args, **kwargs)
Bases:
Element- name: str = 'PhysicalEnvironmentLight'
- domonic.xml.x3d.physicalMaterial
alias of
PhysicalMaterial
- class domonic.xml.x3d.PhysicalMaterial(*args, **kwargs)
Bases:
Element- name: str = 'PhysicalMaterial'
- domonic.xml.x3d.pixelTexture
alias of
PixelTexture
- domonic.xml.x3d.pixelTexture3D
alias of
PixelTexture3D
- domonic.xml.x3d.planeSensor
alias of
PlaneSensor
- domonic.xml.x3d.pointLight
alias of
PointLight
- domonic.xml.x3d.pointSet
alias of
PointSet
- domonic.xml.x3d.polyline2D
alias of
Polyline2D
- domonic.xml.x3d.polypoint2D
alias of
Polypoint2D
- domonic.xml.x3d.popGeometry
alias of
PopGeometry
- domonic.xml.x3d.popGeometryLevel
alias of
PopGeometryLevel
- class domonic.xml.x3d.PopGeometryLevel(*args, **kwargs)
Bases:
Element- name: str = 'PopGeometryLevel'
- domonic.xml.x3d.positionChaser
alias of
PositionChaser
- domonic.xml.x3d.positionChaser2D
alias of
PositionChaser2D
- class domonic.xml.x3d.PositionChaser2D(*args, **kwargs)
Bases:
Element- name: str = 'PositionChaser2D'
- domonic.xml.x3d.positionDamper
alias of
PositionDamper
- domonic.xml.x3d.positionDamper2D
alias of
PositionDamper2D
- class domonic.xml.x3d.PositionDamper2D(*args, **kwargs)
Bases:
Element- name: str = 'PositionDamper2D'
- domonic.xml.x3d.positionInterpolator
alias of
PositionInterpolator
- class domonic.xml.x3d.PositionInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'PositionInterpolator'
- domonic.xml.x3d.positionInterpolator2D
alias of
PositionInterpolator2D
- class domonic.xml.x3d.PositionInterpolator2D(*args, **kwargs)
Bases:
Element- name: str = 'PositionInterpolator2D'
- domonic.xml.x3d.projectionVolumeStyle
alias of
ProjectionVolumeStyle
- class domonic.xml.x3d.ProjectionVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'ProjectionVolumeStyle'
- domonic.xml.x3d.pyramid
alias of
Pyramid
- domonic.xml.x3d.quadSet
alias of
QuadSet
- domonic.xml.x3d.radarVolumeStyle
alias of
RadarVolumeStyle
- class domonic.xml.x3d.RadarVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'RadarVolumeStyle'
- domonic.xml.x3d.rectangle2D
alias of
Rectangle2D
- domonic.xml.x3d.rectangularTorus
alias of
RectangularTorus
- class domonic.xml.x3d.RectangularTorus(*args, **kwargs)
Bases:
Element- name: str = 'RectangularTorus'
- domonic.xml.x3d.refinementTexture
alias of
RefinementTexture
- class domonic.xml.x3d.RefinementTexture(*args, **kwargs)
Bases:
Element- name: str = 'RefinementTexture'
- domonic.xml.x3d.remoteSelectionGroup
alias of
RemoteSelectionGroup
- class domonic.xml.x3d.RemoteSelectionGroup(*args, **kwargs)
Bases:
Element- name: str = 'RemoteSelectionGroup'
- domonic.xml.x3d.renderedTexture
alias of
RenderedTexture
- domonic.xml.x3d.rigidBody
alias of
RigidBody
- domonic.xml.x3d.rigidBodyCollection
alias of
RigidBodyCollection
- class domonic.xml.x3d.RigidBodyCollection(*args, **kwargs)
Bases:
Element- name: str = 'RigidBodyCollection'
- domonic.xml.x3d.scalarChaser
alias of
ScalarChaser
- domonic.xml.x3d.scalarDamper
alias of
ScalarDamper
- domonic.xml.x3d.scalarInterpolator
alias of
ScalarInterpolator
- class domonic.xml.x3d.ScalarInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'ScalarInterpolator'
- domonic.xml.x3d.segmentedVolumeData
alias of
SegmentedVolumeData
- class domonic.xml.x3d.SegmentedVolumeData(*args, **kwargs)
Bases:
Element- name: str = 'SegmentedVolumeData'
- domonic.xml.x3d.shadedVolumeStyle
alias of
ShadedVolumeStyle
- class domonic.xml.x3d.ShadedVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'ShadedVolumeStyle'
- domonic.xml.x3d.shaderPart
alias of
ShaderPart
- domonic.xml.x3d.silhouetteEnhancementVolumeStyle
alias of
SilhouetteEnhancementVolumeStyle
- class domonic.xml.x3d.SilhouetteEnhancementVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'SilhouetteEnhancementVolumeStyle'
- domonic.xml.x3d.singleAxisHingeJoint
alias of
SingleAxisHingeJoint
- class domonic.xml.x3d.SingleAxisHingeJoint(*args, **kwargs)
Bases:
Element- name: str = 'SingleAxisHingeJoint'
- domonic.xml.x3d.sliderJoint
alias of
SliderJoint
- domonic.xml.x3d.slopedCylinder
alias of
SlopedCylinder
- domonic.xml.x3d.snout
alias of
Snout
- domonic.xml.x3d.solidOfRevolution
alias of
SolidOfRevolution
- class domonic.xml.x3d.SolidOfRevolution(*args, **kwargs)
Bases:
Element- name: str = 'SolidOfRevolution'
- domonic.xml.x3d.sound
alias of
Sound
- domonic.xml.x3d.sphereSegment
alias of
SphereSegment
- domonic.xml.x3d.sphereSensor
alias of
SphereSensor
- domonic.xml.x3d.splinePositionInterpolator
alias of
SplinePositionInterpolator
- class domonic.xml.x3d.SplinePositionInterpolator(*args, **kwargs)
Bases:
Element- name: str = 'SplinePositionInterpolator'
- domonic.xml.x3d.spotLight
alias of
SpotLight
- domonic.xml.x3d.staticGroup
alias of
StaticGroup
- domonic.xml.x3d.stippleVolumeStyle
alias of
StippleVolumeStyle
- class domonic.xml.x3d.StippleVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'StippleVolumeStyle'
- domonic.xml.x3d.surfaceShaderTexture
alias of
SurfaceShaderTexture
- class domonic.xml.x3d.SurfaceShaderTexture(*args, **kwargs)
Bases:
Element- name: str = 'SurfaceShaderTexture'
- domonic.xml.x3d.switch
alias of
Switch
- domonic.xml.x3d.texCoordDamper2D
alias of
TexCoordDamper2D
- class domonic.xml.x3d.TexCoordDamper2D(*args, **kwargs)
Bases:
Element- name: str = 'TexCoordDamper2D'
- domonic.xml.x3d.text
alias of
Text
- domonic.xml.x3d.texture
alias of
Texture
- domonic.xml.x3d.textureCoordinate
alias of
TextureCoordinate
- class domonic.xml.x3d.TextureCoordinate(*args, **kwargs)
Bases:
Element- name: str = 'TextureCoordinate'
- domonic.xml.x3d.textureCoordinate3D
alias of
TextureCoordinate3D
- class domonic.xml.x3d.TextureCoordinate3D(*args, **kwargs)
Bases:
Element- name: str = 'TextureCoordinate3D'
- domonic.xml.x3d.textureCoordinateGenerator
alias of
TextureCoordinateGenerator
- class domonic.xml.x3d.TextureCoordinateGenerator(*args, **kwargs)
Bases:
Element- name: str = 'TextureCoordinateGenerator'
- domonic.xml.x3d.textureProperties
alias of
TextureProperties
- class domonic.xml.x3d.TextureProperties(*args, **kwargs)
Bases:
Element- name: str = 'TextureProperties'
- domonic.xml.x3d.textureTransform
alias of
TextureTransform
- class domonic.xml.x3d.TextureTransform(*args, **kwargs)
Bases:
Element- name: str = 'TextureTransform'
- domonic.xml.x3d.textureTransform3D
alias of
TextureTransform3D
- class domonic.xml.x3d.TextureTransform3D(*args, **kwargs)
Bases:
Element- name: str = 'TextureTransform3D'
- domonic.xml.x3d.textureTransformMatrix3D
alias of
TextureTransformMatrix3D
- class domonic.xml.x3d.TextureTransformMatrix3D(*args, **kwargs)
Bases:
Element- name: str = 'TextureTransformMatrix3D'
- domonic.xml.x3d.toneMappedVolumeStyle
alias of
ToneMappedVolumeStyle
- class domonic.xml.x3d.ToneMappedVolumeStyle(*args, **kwargs)
Bases:
Element- name: str = 'ToneMappedVolumeStyle'
- domonic.xml.x3d.torus
alias of
Torus
- domonic.xml.x3d.touchSensor
alias of
TouchSensor
- domonic.xml.x3d.triangleSet
alias of
TriangleSet
- domonic.xml.x3d.triangleSet2D
alias of
TriangleSet2D
- domonic.xml.x3d.twoSidedMaterial
alias of
TwoSidedMaterial
- class domonic.xml.x3d.TwoSidedMaterial(*args, **kwargs)
Bases:
Element- name: str = 'TwoSidedMaterial'
- domonic.xml.x3d.uniform
alias of
Uniform
- domonic.xml.x3d.universalJoint
alias of
UniversalJoint
- domonic.xml.x3d.viewfrustum
alias of
Viewfrustum
- domonic.xml.x3d.viewpoint
alias of
Viewpoint
- domonic.xml.x3d.volumeData
alias of
VolumeData
- domonic.xml.x3d.worldInfo
alias of
WorldInfo
- domonic.xml.x3d.x3DAppearanceChildNode
alias of
X3DAppearanceChildNode
- class domonic.xml.x3d.X3DAppearanceChildNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DAppearanceChildNode'
- domonic.xml.x3d.x3DAppearanceNode
alias of
X3DAppearanceNode
- class domonic.xml.x3d.X3DAppearanceNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DAppearanceNode'
- domonic.xml.x3d.x3DBackgroundNode
alias of
X3DBackgroundNode
- class domonic.xml.x3d.X3DBackgroundNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DBackgroundNode'
- domonic.xml.x3d.x3DBinaryContainerGeometryNode
alias of
X3DBinaryContainerGeometryNode
- class domonic.xml.x3d.X3DBinaryContainerGeometryNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DBinaryContainerGeometryNode'
- domonic.xml.x3d.x3DBindableNode
alias of
X3DBindableNode
- domonic.xml.x3d.x3DBoundedObject
alias of
X3DBoundedObject
- class domonic.xml.x3d.X3DBoundedObject(*args, **kwargs)
Bases:
Element- name: str = 'X3DBoundedObject'
- domonic.xml.x3d.x3DChaserNode
alias of
X3DChaserNode
- domonic.xml.x3d.x3DChildNode
alias of
X3DChildNode
- domonic.xml.x3d.x3DColorNode
alias of
X3DColorNode
- domonic.xml.x3d.x3DComposableVolumeRenderStyleNode
alias of
X3DComposableVolumeRenderStyleNode
- class domonic.xml.x3d.X3DComposableVolumeRenderStyleNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DComposableVolumeRenderStyleNode'
- domonic.xml.x3d.x3DComposedGeometryNode
alias of
X3DComposedGeometryNode
- class domonic.xml.x3d.X3DComposedGeometryNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DComposedGeometryNode'
- domonic.xml.x3d.x3DCoordinateNode
alias of
X3DCoordinateNode
- class domonic.xml.x3d.X3DCoordinateNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DCoordinateNode'
- domonic.xml.x3d.x3DDamperNode
alias of
X3DDamperNode
- domonic.xml.x3d.x3DDragSensorNode
alias of
X3DDragSensorNode
- class domonic.xml.x3d.X3DDragSensorNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DDragSensorNode'
- domonic.xml.x3d.x3DEnvironmentNode
alias of
X3DEnvironmentNode
- class domonic.xml.x3d.X3DEnvironmentNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DEnvironmentNode'
- domonic.xml.x3d.x3DEnvironmentTextureNode
alias of
X3DEnvironmentTextureNode
- class domonic.xml.x3d.X3DEnvironmentTextureNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DEnvironmentTextureNode'
- domonic.xml.x3d.x3DFogNode
alias of
X3DFogNode
- domonic.xml.x3d.x3DFollowerNode
alias of
X3DFollowerNode
- domonic.xml.x3d.x3DFontStyleNode
alias of
X3DFontStyleNode
- class domonic.xml.x3d.X3DFontStyleNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DFontStyleNode'
- domonic.xml.x3d.x3DGeometricPropertyNode
alias of
X3DGeometricPropertyNode
- class domonic.xml.x3d.X3DGeometricPropertyNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DGeometricPropertyNode'
- domonic.xml.x3d.x3DGeometryNode
alias of
X3DGeometryNode
- domonic.xml.x3d.x3DGroupingNode
alias of
X3DGroupingNode
- domonic.xml.x3d.x3DInfoNode
alias of
X3DInfoNode
- domonic.xml.x3d.x3DInterpolatorNode
alias of
X3DInterpolatorNode
- class domonic.xml.x3d.X3DInterpolatorNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DInterpolatorNode'
- domonic.xml.x3d.x3DLightNode
alias of
X3DLightNode
- domonic.xml.x3d.x3DLODNode
alias of
X3DLODNode
- domonic.xml.x3d.x3DMaterialNode
alias of
X3DMaterialNode
- domonic.xml.x3d.x3DMetadataObject
alias of
X3DMetadataObject
- class domonic.xml.x3d.X3DMetadataObject(*args, **kwargs)
Bases:
Element- name: str = 'X3DMetadataObject'
- domonic.xml.x3d.x3DNavigationInfoNode
alias of
X3DNavigationInfoNode
- class domonic.xml.x3d.X3DNavigationInfoNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DNavigationInfoNode'
- domonic.xml.x3d.x3DNBodyCollidableNode
alias of
X3DNBodyCollidableNode
- class domonic.xml.x3d.X3DNBodyCollidableNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DNBodyCollidableNode'
- domonic.xml.x3d.x3DNode
alias of
X3DNode
- domonic.xml.x3d.x3DPlanarGeometryNode
alias of
X3DPlanarGeometryNode
- class domonic.xml.x3d.X3DPlanarGeometryNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DPlanarGeometryNode'
- domonic.xml.x3d.x3DPointingDeviceSensorNode
alias of
X3DPointingDeviceSensorNode
- class domonic.xml.x3d.X3DPointingDeviceSensorNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DPointingDeviceSensorNode'
- domonic.xml.x3d.x3DRigidJointNode
alias of
X3DRigidJointNode
- class domonic.xml.x3d.X3DRigidJointNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DRigidJointNode'
- domonic.xml.x3d.x3DSensorNode
alias of
X3DSensorNode
- domonic.xml.x3d.x3DShaderNode
alias of
X3DShaderNode
- domonic.xml.x3d.x3DShapeNode
alias of
X3DShapeNode
- domonic.xml.x3d.x3DSoundNode
alias of
X3DSoundNode
- domonic.xml.x3d.x3DSoundSourceNode
alias of
X3DSoundSourceNode
- class domonic.xml.x3d.X3DSoundSourceNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DSoundSourceNode'
- domonic.xml.x3d.x3DSpatialGeometryNode
alias of
X3DSpatialGeometryNode
- class domonic.xml.x3d.X3DSpatialGeometryNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DSpatialGeometryNode'
- domonic.xml.x3d.x3DTexture3DNode
alias of
X3DTexture3DNode
- class domonic.xml.x3d.X3DTexture3DNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DTexture3DNode'
- domonic.xml.x3d.x3DTextureCoordinateNode
alias of
X3DTextureCoordinateNode
- class domonic.xml.x3d.X3DTextureCoordinateNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DTextureCoordinateNode'
- domonic.xml.x3d.x3DTextureNode
alias of
X3DTextureNode
- domonic.xml.x3d.x3DTextureTransformNode
alias of
X3DTextureTransformNode
- class domonic.xml.x3d.X3DTextureTransformNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DTextureTransformNode'
- domonic.xml.x3d.x3DTimeDependentNode
alias of
X3DTimeDependentNode
- class domonic.xml.x3d.X3DTimeDependentNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DTimeDependentNode'
- domonic.xml.x3d.x3DTouchSensorNode
alias of
X3DTouchSensorNode
- class domonic.xml.x3d.X3DTouchSensorNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DTouchSensorNode'
- domonic.xml.x3d.x3DTransformNode
alias of
X3DTransformNode
- class domonic.xml.x3d.X3DTransformNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DTransformNode'
- domonic.xml.x3d.x3DVertexAttributeNode
alias of
X3DVertexAttributeNode
- class domonic.xml.x3d.X3DVertexAttributeNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DVertexAttributeNode'
- domonic.xml.x3d.x3DViewpointNode
alias of
X3DViewpointNode
- class domonic.xml.x3d.X3DViewpointNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DViewpointNode'
- domonic.xml.x3d.x3DVolumeDataNode
alias of
X3DVolumeDataNode
- class domonic.xml.x3d.X3DVolumeDataNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DVolumeDataNode'
- domonic.xml.x3d.x3DVolumeRenderStyleNode
alias of
X3DVolumeRenderStyleNode
- class domonic.xml.x3d.X3DVolumeRenderStyleNode(*args, **kwargs)
Bases:
Element- name: str = 'X3DVolumeRenderStyleNode'
domonic.aframe¶
Generate aframe tags with python 3 https://aframe.io/
- class domonic.xml.aframe.material(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'material'
- class domonic.xml.aframe.appearance(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'appearance'
- class domonic.xml.aframe.curvedimage(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'curvedimage'
- class domonic.xml.aframe.cylinder(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'cylinder'
- class domonic.xml.aframe.dodecahedron(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'dodecahedron'
- class domonic.xml.aframe.icosahedron(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'icosahedron'
- class domonic.xml.aframe.octahedron(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'octahedron'
- class domonic.xml.aframe.tetrahedron(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'tetrahedron'
- class domonic.xml.aframe.triangle(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'triangle'
- class domonic.xml.aframe.videosphere(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'videosphere'
- class domonic.xml.aframe.gltf_model(*args, **kwargs)
Bases:
aframe_tag,Element- name: str = 'gltf_model'