public static class LightFilter.Light extends Object implements Cloneable
Constructor and Description |
---|
LightFilter.Light() |
LightFilter.Light(float azimuth,
float elevation,
float intensity) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
float |
getAzimuth() |
float |
getCentreX()
Get the centre of the light in the X direction as a proportion of the
image size.
|
float |
getCentreY()
Get the centre of the light in the Y direction as a proportion of the
image size.
|
int |
getColor() |
float |
getConeAngle() |
float |
getDistance() |
float |
getElevation() |
float |
getFocus() |
float |
getIntensity() |
void |
prepare(int width,
int height)
Prepare the light for rendering.
|
void |
setAzimuth(float azimuth) |
void |
setCentreX(float x)
Set the centre of the light in the X direction as a proportion of the
image size.
|
void |
setCentreY(float y)
Set the centre of the light in the Y direction as a proportion of the
image size.
|
void |
setColor(int color) |
void |
setConeAngle(float coneAngle) |
void |
setDistance(float distance) |
void |
setElevation(float elevation) |
void |
setFocus(float focus) |
void |
setIntensity(float intensity) |
String |
toString() |
public LightFilter.Light()
public LightFilter.Light(float azimuth, float elevation, float intensity)
public void setAzimuth(float azimuth)
public float getAzimuth()
public void setElevation(float elevation)
public float getElevation()
public void setDistance(float distance)
public float getDistance()
public void setIntensity(float intensity)
public float getIntensity()
public void setConeAngle(float coneAngle)
public float getConeAngle()
public void setFocus(float focus)
public float getFocus()
public void setColor(int color)
public int getColor()
public void setCentreX(float x)
centreX
- the centergetCentreX()
public float getCentreX()
setCentreX(float)
public void setCentreY(float y)
centreY
- the centergetCentreY()
public float getCentreY()
setCentreY(float)
public void prepare(int width, int height)
width
- the output image widthheight
- the output image heightCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.