All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.VisibilitySensor

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.generic.geometry.ChildrenNode
                   |
                   +----vlc.vrml.generic.geometry.Sensor
                           |
                           +----vlc.vrml.generic.geometry.VisibilitySensor

public class VisibilitySensor
extends Sensor
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

Constructor Index

 o VisibilitySensor()
Default Constructor.

Method Index

 o clone()
Make a clone of this object
 o get_center()
Get the location of the light in the local coordinate system
 o get_size()
Get the size to be of area monitored.
 o set_center(float[])
Set the location of the light in the local coordinate system
 o set_size(float[])
Set the size to be monitored.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o VisibilitySensor
 public VisibilitySensor()
Default Constructor. Creates a default VisiblitySensor

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_size
 public void set_size(float pos[])
Set the size to be monitored. The values are a box shape defining the maximum values +/- in each extent.

Parameters:
size - The size in each axis size[0] = x, size[1] = y, size[2] = z
 o get_size
 public float[] get_size()
Get the size to be of area monitored.

Returns:
The size in each axis size[0] = x, size[1] = y, size[2] = z
 o set_center
 public void set_center(float pos[])
Set the location of the light in the local coordinate system

Parameters:
val - The position where val[0] = x, val[1] = y, val[2] = z
 o get_center
 public float[] get_center()
Get the location of the light in the local coordinate system

Returns:
The position where val[0] = x, val[1] = y, val[2] = z
 o clone
 public Object clone()
Make a clone of this object

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index