public class VgLight extends VgReferenced
Modifier and Type | Method and Description |
---|---|
void |
delete() |
VgAnimationRefPtr |
editAnimation(java.lang.String pName)
Gets an animation from the light's animation map for editing.
|
VgColor |
getAmbient() |
VgAnimationConstRefPtr |
getAnimation(java.lang.String pName)
Gets an animation from the light's animation map.
|
void |
getAnimationNames(VgStringList pNameList)
Gets the list of the stored animation names.
|
VgColor |
getDiffuse() |
VgColor |
getEmission() |
VgOrientation |
getOrientation()
Gets lights's orientation.
|
VgPosition |
getPosition()
Gets light's position.
|
VgColor |
getSpecular() |
double |
getSpotCutoff() |
double |
getSpotExponent() |
boolean |
isDirectional()
Tell if the light is directional.
|
void |
setAmbient(VgColor pColor)
Sets the ambient light color for the light.
|
void |
setAnimation(java.lang.String pAnimationName,
VgAnimationRefPtr pAnimation)
Sets an animation on this light.
|
void |
setDiffuse(VgColor pColor)
Sets the diffuse light color for the light.
|
void |
setDirectional(boolean pDirectional)
Sets the light to be directional.
|
void |
setEmission(VgColor pColor)
Sets the emission light color for the light.
|
void |
setOrientation(VgOrientation pOrientation)
Sets the light's orientation.
|
void |
setPosition(VgPosition pPosition)
Sets the light's position.
|
void |
setSpecular(VgColor pColor)
Sets the specular light color for the light.
|
void |
setSpotCutoff(double pCutoff)
Sets the current spot cutoff value.
|
void |
setSpotExponent(double pExponent) |
getNbReferences, ref, unref
public void delete()
delete
in class VgReferenced
public void setAnimation(java.lang.String pAnimationName, VgAnimationRefPtr pAnimation)
pAnimationName
- The name to associate the animation with in this spatialpAnimation
- An animation to animate the spatial with.public VgAnimationConstRefPtr getAnimation(java.lang.String pName)
pName
- The name of the animation to fetch.public VgAnimationRefPtr editAnimation(java.lang.String pName)
pName
- The name of the animation to fetch.public void getAnimationNames(VgStringList pNameList)
pNameList
- The list of strings to feed with the names.public VgPosition getPosition()
public void setPosition(VgPosition pPosition)
pPosition
- The position to put the light at. This value is ignored if the light is set to be directionalpublic VgOrientation getOrientation()
public void setOrientation(VgOrientation pOrientation)
pOrientation
- The orientation to set on the light. This value is only valid if the spot cut-off is different than -1.0.public VgColor getAmbient()
public void setAmbient(VgColor pColor)
pColor
- Ambient light color to setpublic VgColor getDiffuse()
public void setDiffuse(VgColor pColor)
pColor
- Diffuse light color to setpublic VgColor getSpecular()
public void setSpecular(VgColor pColor)
pColor
- Specular light color to setpublic VgColor getEmission()
public void setEmission(VgColor pColor)
pColor
- Emission light color to setpublic double getSpotCutoff()
public void setSpotCutoff(double pCutoff)
pCutoff
- Diffuse light color to setpublic double getSpotExponent()
public void setSpotExponent(double pExponent)
public boolean isDirectional()
public void setDirectional(boolean pDirectional)
pDirectional
- True to set the light to be directional