media @ VU
proto-slide-element-line.vr
proto-slide-element-line.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
line
Web3D/VR
proto
PROTO HorizontalLine [
exposedField SFString elementType "HLINE"
exposedField SFBool linebreak FALSE
exposedField SFBool absolute FALSE
exposedField SFVec3f position 0 0 0
exposedField SFInt32 startLevel -1
exposedField SFInt32 endLevel -1
exposedField SFFloat width 1
exposedField SFFloat height 1
exposedField SFColor color 1 1 1
exposedField MFString justify [ "BEGIN" ]
] {
body
Transform {
translation IS position
children [
DEF TRANSFORM Transform {
children [
Transform {
translation 0.5 0.5 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor IS color
specularColor IS color
}
}
geometry Box { size 1 1 0.02 }
}
]
}
]
}
]
}
script
DEF SCRIPT Script {
directOutput TRUE
field SFFloat width IS width
field SFFloat height IS height
field SFNode transform USE TRANSFORM
url "javascript:
function initialize() {
transform.scale = new SFVec3f(width,height,1);
}
"
}
}
(C) A. Eliëns
21/5/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.