|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.VcObject camera3d.VcLight
Abstract superclass to all lights that can be added to the scene graph. This class encapsulates a javax.media.j3d.Light and provides some functionality for editing it.
Field Summary |
Fields inherited from class camera3d.VcObject |
transformationMode |
Constructor Summary | |
VcLight()
Creates new light. |
Method Summary | |
float |
getBlue()
Returns blue component of this light's color. |
javax.vecmath.Color3f |
getColor()
Returns current color of this light. |
float |
getGreen()
Returns green component of this light's color. |
javax.swing.Icon |
getIcon()
Returns the Icon associated with lights. |
static int |
getInstanceCounter()
Returns the number of objects instatiated so far. |
abstract javax.media.j3d.Light |
getJ3DLight()
Returns the Java 3D light encapsulated by this VcLight. |
float |
getRed()
Returns red component of this light's color. |
boolean |
isEnabled()
Returns a flag indicating current light's state (on/off). |
abstract void |
setColor(float red,
float green,
float blue)
Sets color of this light. |
abstract void |
setEnable(boolean b)
Sets state (on/off) of this light. |
void |
setIcon(javax.swing.Icon lightIcon)
Sets the Icon associated with lights. |
abstract void |
setJ3DLight(javax.media.j3d.Light light)
Sets the Java 3D light encapsulated by this VcLight. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VcLight()
Method Detail |
public static int getInstanceCounter()
public abstract void setColor(float red, float green, float blue)
red
- red component of color.green
- green component of color.blue
- blue component of color.public abstract void setEnable(boolean b)
b
- If true, turns light on. If false, turns light off.public javax.vecmath.Color3f getColor()
public float getRed()
public float getGreen()
public float getBlue()
public boolean isEnabled()
public javax.swing.Icon getIcon()
getIcon
in class VcObject
public void setIcon(javax.swing.Icon lightIcon)
setIcon
in class VcObject
public abstract javax.media.j3d.Light getJ3DLight()
public abstract void setJ3DLight(javax.media.j3d.Light light)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |