|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.visioglobe.libVisioDevKit.VgReferenced
com.visioglobe.libVisioDevKit.VgLight
public class VgLight
This interface handles light management.
| Field Summary |
|---|
| Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced |
|---|
swigCMemOwn, swigRefPtr |
| Constructor Summary | |
|---|---|
VgLight(long cPtr,
boolean cMemoryOwn)
This constructor initializes an useless empty light |
|
| Method Summary | |
|---|---|
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. |
static long |
getCPtr(VgLight obj)
|
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)
|
| Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced |
|---|
finalize, getCPtr, getNbReferences, ref, unref |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VgLight(long cPtr,
boolean cMemoryOwn)
| Method Detail |
|---|
public static long getCPtr(VgLight obj)
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
|
VisioDevKit 2.0, Visioglobe® 2013 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||