Class ColorFunction

java.lang.Object
  |
  +--ColorFunction
All Implemented Interfaces:
RelFunction

public class ColorFunction
extends java.lang.Object
implements RelFunction


Field Summary
protected  javax.vecmath.Color3f the_color
           
 
Constructor Summary
ColorFunction()
           
ColorFunction(float red, float green, float blue)
           
 
Method Summary
 void command(VRObject target)
          Do a command.
 void command(VRObject target, VRObject reference)
          Do a command.
 boolean query(VRObject target)
          Query an object.
 boolean query(VRObject target, VRObject reference)
          Do a query taking two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

the_color

protected javax.vecmath.Color3f the_color
Constructor Detail

ColorFunction

public ColorFunction()

ColorFunction

public ColorFunction(float red,
                     float green,
                     float blue)
Method Detail

query

public boolean query(VRObject target,
                     VRObject reference)
Description copied from interface: RelFunction
Do a query taking two objects.
Specified by:
query in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The target object in the query.
reference - The reference object in the query. Returns true or false base on query.

command

public void command(VRObject target,
                    VRObject reference)
Description copied from interface: RelFunction
Do a command.
Specified by:
command in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The target object to perform the command on.
reference - A reference object.

query

public boolean query(VRObject target)
Description copied from interface: RelFunction
Query an object.
Specified by:
query in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The object to query. Returns true or false base on query.

command

public void command(VRObject target)
Description copied from interface: RelFunction
Do a command.
Specified by:
command in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The target object to do command on.