Panel
EXTERNPROTO Panel [
exposedField SFNode source
exposedField SFString left
exposedField SFString top
exposedField SFString right
exposedField SFString bottom
exposedField SFString width
exposedField SFString height
exposedField SFString offsetLeft
exposedField SFString offsetTop
exposedField SFBool sticky
exposedField SFBool enabled
exposedField SFFloat backgroundTransparency
exposedField SFColor backgroundColor
exposedField SFInt32 borderSize
exposedField SFColor borderColor
eventOut MFInt32 contentSize
eventOut SFTime touchTime
eventOut SFVec2f touchPoint
eventOut SFString hotspot
eventOut SFTime hotspotTime
]
[
"urn:inet:parallelgraphics.com:cortona:Panel"
"http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl#Panel"
]
The Panel node represents a rectangular area where HTML text can be rendered. This area always faces the viewer.
The source field contains an HTMLText node or NULL.
The left, to, right and bottom fields specify panel coordinates. Each coordinate can be specified in pixels, in percents of width (for the left or right fields) or height (for the top or bottom) of 3D window size or can be omitted.
The width and height fields specify the width and height of the panel correspondingly. Width and height can be specified in pixels, in percents of 3D window size or can be omitted.
The offsetLeft and offsetTop fields specify the offset of the panel's content. offsetLeft, offsetTop can be specified in pixels, in percents of panel's size or can be omitted.
The sticky field specifies if the parent coordinate system is used or not. TRUE value means that left, right, top and bottom are ignored and upper left corner of the panel is positioned at the origin of the parent transform.
The enabled field specifies if mouse events are processed or not. FALSE value means that no mouse events are processed; TRUE value means that all mouse events are processed.
The backgroundTransparency field specifies the transparency of the panel's background.
The backgroundColor field specifies the color of the panel's background.
The borderSize field specifies the size of the panel's border.
The borderColor field specifies the color of the panel's border.
The contentSize event is generated if the size of the panel is changed. ContentSize event value contains the size of the panel in pixels.
The touchTime and TouchPoint events. If enabled filed is set to TRUE, TouchTime and TouchPoint events are generated when user clicks on the panel's area.
The hotspot and hotspotTime events. If enabled filed is set to TRUE, hotspot and hotspotTime events are generated when user clicks on the <a href=""></a> tag. Hotspot contains the href of the corresponding <a> tag value.
HTMLText
EXTERNPROTO HTMLText [
exposedField SFString body
exposedField MFInt32 padding
exposedField SFBool shadow
exposedField SFFloat shadowTransparency
exposedField SFInt32 shadowSize
exposedField MFInt32 shadowOffset
exposedField SFColor shadowColor
]
[
"urn:inet:parallelgraphics.com:cortona:HTMLText"
"http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl#HTMLText"
]
The HTMLText node represents an HTML text, which can be used in the Panel node.
The Body field contains a string of HTML code. Only p, a, font, b (strong), i (em), u, br, center tags with the face, size, color attributes are supported.
The padding field specifies padding in pixels in a form of [top [right [bottom [left]]]].
The Shadow field specifies if shadow is used or not. FALSE value means that no shadow is used, TRUE value means that shadow is used.
The ShadowTransparency field specifies the transparency of the shadow.
The ShadowSize field specifies the size of the shadow.
The ShadowOffset field specifies the shadow's offset.
The ShadowColor field specifies the shadow's color.
Example
|