|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcamera3d.VcObject
camera3d.VcLight
camera3d.VcDirectLight
Represents a directional light.
| Field Summary |
| Fields inherited from class camera3d.VcObject |
transformationMode |
| Constructor Summary | |
VcDirectLight()
|
|
| Method Summary | |
static int |
getInstanceCounter()
Returns the number of objects instatiated so far. |
javax.media.j3d.Light |
getJ3DLight()
Returns the Java 3D light encapsulated by this VcLight. |
void |
setColor(float red,
float green,
float blue)
Sets color of this light. |
void |
setEnable(boolean enabled)
Sets state (on/off) of this light. |
void |
setJ3DLight(javax.media.j3d.Light light)
Sets the Java 3D light encapsulated by this VcLight. |
| Methods inherited from class camera3d.VcLight |
getBlue, getColor, getGreen, getIcon, getRed, isEnabled, setIcon |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VcDirectLight()
| Method Detail |
public javax.media.j3d.Light getJ3DLight()
VcLight
getJ3DLight in class VcLightpublic void setEnable(boolean enabled)
VcLight
setEnable in class VcLightenabled - If true, turns light on. If false, turns light off.
public void setColor(float red,
float green,
float blue)
VcLight
setColor in class VcLightred - red component of color.green - green component of color.blue - blue component of color.public static int getInstanceCounter()
public void setJ3DLight(javax.media.j3d.Light light)
VcLight
setJ3DLight in class VcLight
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||