|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.VcObject camera3d.VcLight camera3d.VcPointLight
Represents a point light.
Field Summary |
Fields inherited from class camera3d.VcObject |
transformationMode |
Constructor Summary | |
VcPointLight()
|
Method Summary | |
javax.vecmath.Point3f |
getAttenuation()
|
double |
getConstantAttenuation()
|
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. |
double |
getLinearAttenuation()
|
double |
getQuadraticAttenuation()
|
void |
setAttenuation(double constant,
double linear,
double quadratic)
|
void |
setAttenuation(javax.vecmath.Point3f p3f)
|
void |
setColor(float r,
float g,
float b)
Sets color of this light. |
void |
setEnable(boolean b)
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 VcPointLight()
Method Detail |
public static int getInstanceCounter()
public javax.vecmath.Point3f getAttenuation()
public void setAttenuation(javax.vecmath.Point3f p3f)
public void setAttenuation(double constant, double linear, double quadratic)
public double getConstantAttenuation()
public double getLinearAttenuation()
public double getQuadraticAttenuation()
public javax.media.j3d.Light getJ3DLight()
VcLight
getJ3DLight
in class VcLight
public void setEnable(boolean b)
VcLight
setEnable
in class VcLight
b
- If true, turns light on. If false, turns light off.public void setColor(float r, float g, float b)
VcLight
setColor
in class VcLight
r
- red component of color.g
- green component of color.b
- blue component of color.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 |