All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.Background

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.external.geometry.VrmlObject
                   |
                   +----vlc.vrml.external.geometry.ChildrenNode
                           |
                           +----vlc.vrml.external.geometry.BindableNode
                                   |
                                   +----vlc.vrml.external.geometry.Background

public class Background
extends BindableNode
JVerge

Version:
0.8 (beta 4) Copyright 1997 The Virtual Light Company under the GNU LGPL

The latest information and bugs in JVerge can be found at http://www.vlc.com.au/JVerge

For definition of the Anchor node please see the VRML 97 Anchor specification

Author:
Justin Couch justin@vlc.com.au

Variable Index

 o _set_backUrl
 o _set_bottomUrl
 o _set_frontUrl
 o _set_groundAngle
 o _set_groundColor
 o _set_leftUrl
 o _set_rightUrl
 o _set_skyAngle
 o _set_skyColor
 o _set_topUrl

Constructor Index

 o Background()
Default constructor.
 o Background(Browser)
Default constructor.

Method Index

 o clone()
Make a clone of this object
 o get_backUrl()
Get the list of URLs for the current back image
 o get_bottomUrl()
Get the list of URLs for the current bottom image
 o get_frontUrl()
Get the list of URLs for the current front image
 o get_groundAngle()
Get the currently set groundAngle value
 o get_groundColor()
Get the current colors that correspond to the ground angles
 o get_leftUrl()
Get the list of URLs for the current left image
 o get_rightUrl()
Get the list of URLs for the current right image
 o get_skyAngle()
Get the currently set skyAngle value
 o get_skyColor()
Get the current colors that correspond to the sky part of groundangles
 o get_topUrl()
Get the list of URLs for the current top image
 o set_backUrl(String[])
Set the URLs that correspond to the back image
 o set_bottomUrl(String[])
Set the URLs that correspond to the bottom image
 o set_frontUrl(String[])
Set the URLs that correspond to the front image
 o set_groundAngle(float[])
Set a new groundAngle value.
 o set_groundColor(float[][])
Set the colors that correspond to the ground angles
 o set_leftUrl(String[])
Set the URLs that correspond to the left image
 o set_rightUrl(String[])
Set the URLs that correspond to the right image
 o set_skyAngle(float[])
Set a new skyAngle value.
 o set_skyColor(float[][])
Set the sky colors that correspond to the sky part of groundAngle
 o set_topUrl(String[])
Set the URLs that correspond to the top image
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Variables

 o _set_groundAngle
 protected EventInMFFloat _set_groundAngle
 o _set_groundColor
 protected EventInMFColor _set_groundColor
 o _set_backUrl
 protected EventInMFString _set_backUrl
 o _set_bottomUrl
 protected EventInMFString _set_bottomUrl
 o _set_frontUrl
 protected EventInMFString _set_frontUrl
 o _set_leftUrl
 protected EventInMFString _set_leftUrl
 o _set_rightUrl
 protected EventInMFString _set_rightUrl
 o _set_topUrl
 protected EventInMFString _set_topUrl
 o _set_skyAngle
 protected EventInMFFloat _set_skyAngle
 o _set_skyColor
 protected EventInMFColor _set_skyColor

Constructors

 o Background
 public Background()
Default constructor. Creates a default Background node

 o Background
 public Background(Browser b)
Default constructor. Used when you want to supply your own Browser reference. Creates a default Background node.

Parameters:
b - A valid Browser reference

Methods

 o writeToStream
 public void writeToStream(int indent)
Prints the formatted contents of this node to the given stream.

Parameters:
indent - The number of spaces to indent this node in the string
Overrides:
writeToStream in class VrmlObject
 o set_groundAngle
 public void set_groundAngle(float val[])
Set a new groundAngle value.

Parameters:
An - array of angles (in radians) that defines the ground colors
 o get_groundAngle
 public float[] get_groundAngle()
Get the currently set groundAngle value

Returns:
An array of the current angles (in radians)
 o set_groundColor
 public void set_groundColor(float colors[][])
Set the colors that correspond to the ground angles

Parameters:
colors - An array of colors that are defined for each angle defined by the groundAngle. The values are defined as: color[i][0] = red, color[i][1] = green, color[i][2] = blue
 o get_groundColor
 public float[][] get_groundColor()
Get the current colors that correspond to the ground angles

Returns:
An array of colors that are defined for each angle defined by the groundAngle. The values are defined as: color[i][0] = red, color[i][1] = green, color[i][2] = blue
 o set_skyAngle
 public void set_skyAngle(float val[])
Set a new skyAngle value.

Parameters:
An - array of angles (in radians) that defines the ground colors
 o get_skyAngle
 public float[] get_skyAngle()
Get the currently set skyAngle value

Returns:
An array of the current angles (in radians)
 o set_skyColor
 public void set_skyColor(float colors[][])
Set the sky colors that correspond to the sky part of groundAngle

Parameters:
colors - An array of colors that are defined for each angle defined by the groundAngle. The values are defined as: color[i][0] = red, color[i][1] = green, color[i][2] = blue
 o get_skyColor
 public float[][] get_skyColor()
Get the current colors that correspond to the sky part of groundangles

Returns:
An array of colors that are defined for each angle defined by the groundAngle. The values are defined as: color[i][0] = red, color[i][1] = green, color[i][2] = blue
 o set_backUrl
 public void set_backUrl(String val[])
Set the URLs that correspond to the back image

Parameters:
val - An array of URLs and/or URNs to be used.
 o get_backUrl
 public String[] get_backUrl()
Get the list of URLs for the current back image

Returns:
An array of Strings, each representing one URL/URN.
 o set_bottomUrl
 public void set_bottomUrl(String val[])
Set the URLs that correspond to the bottom image

Parameters:
val - An array of URLs and/or URNs to be used.
 o get_bottomUrl
 public String[] get_bottomUrl()
Get the list of URLs for the current bottom image

Returns:
An array of Strings, each representing one URL/URN.
 o set_frontUrl
 public void set_frontUrl(String val[])
Set the URLs that correspond to the front image

Parameters:
val - An array of URLs and/or URNs to be used.
 o get_frontUrl
 public String[] get_frontUrl()
Get the list of URLs for the current front image

Returns:
An array of Strings, each representing one URL/URN.
 o set_leftUrl
 public void set_leftUrl(String val[])
Set the URLs that correspond to the left image

Parameters:
val - An array of URLs and/or URNs to be used.
 o get_leftUrl
 public String[] get_leftUrl()
Get the list of URLs for the current left image

Returns:
An array of Strings, each representing one URL/URN.
 o set_rightUrl
 public void set_rightUrl(String val[])
Set the URLs that correspond to the right image

Parameters:
val - An array of URLs and/or URNs to be used.
 o get_rightUrl
 public String[] get_rightUrl()
Get the list of URLs for the current right image

Returns:
An array of Strings, each representing one URL/URN.
 o set_topUrl
 public void set_topUrl(String val[])
Set the URLs that correspond to the top image

Parameters:
val - An array of URLs and/or URNs to be used.
 o get_topUrl
 public String[] get_topUrl()
Get the list of URLs for the current top image

Returns:
An array of Strings, each representing one URL/URN.
 o clone
 public Object clone()
Make a clone of this object

Returns:
A deep clone copy of this object
Overrides:
clone in class VrmlObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index