ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  Panel and HTMLText
Up to VRML Extensions

AdvancedAppearance 

Animated GIF 

BumpMap 

Collision Detection 

CortonaExtrusion 

CubeEnvironment 

DirectX 9.0 Shaders 

Drag & Drop 

EventUtilities 

Flash animations 

FlashMovie 

FontStyle 

Inline Extension 

Interpolator Nodes 

Keyboard Input 

Layers and 2D Nodes 

MipMap 

NavigationInfo 

NURBS 

OrderedGroup 

Panel and HTMLText 

QuickTime 

SFVec2f Interpolator 

SphereEnvironment 

Splines 

Three-Dimensional Text 

TextureTransform3 

TransformSensor 

ZGroup 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D

Try RobinZone!


Panel and HTMLText

Panel

EXTERNPROTO Panel [ 

  exposedField  SFNode        source        #NULL
  exposedField  SFString      left  #"0"
  exposedField  SFString      top  #"0"
  exposedField  SFString      right  #""
  exposedField  SFString      bottom  #""
  exposedField  SFString      width  #""
  exposedField  SFString      height  #""
  exposedField  SFString      offsetLeft  #""
  exposedField  SFString      offsetTop  #""
  exposedField  SFBool        sticky  #FALSE
  exposedField  SFBool        enabled  #FALSE
  exposedField  SFFloat       backgroundTransparency  #1
  exposedField  SFColor       backgroundColor  #1 1 1
  exposedField  SFInt32       borderSize  #0
  exposedField  SFColor       borderColor  #1 1 1
  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  #FALSE
  exposedField  SFFloat      shadowTransparency  #0
  exposedField  SFInt32      shadowSize  #8
  exposedField  MFInt32      shadowOffset  #[]
  exposedField  SFColor      shadowColor  #0 0 0
]
[
  "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

scene size: 6.3KB
archive size: 6.5KB
view online download

Last updated: Tue, 08 Jul 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.