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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
the_color
protected javax.vecmath.Color3f the_color
ColorFunction
public ColorFunction()
ColorFunction
public ColorFunction(float red,
float green,
float blue)
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.