类 LightFilter.Light
- java.lang.Object
-
- org.meteoinfo.image.filter.LightFilter.Light
-
- 所有已实现的接口:
Cloneable
- 直接已知子类:
LightFilter.AmbientLight,LightFilter.DistantLight,LightFilter.PointLight,LightFilter.SpotLight
- 封闭类:
- LightFilter
public static class LightFilter.Light extends Object implements Cloneable
A class representing a light.
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectclone()floatgetAzimuth()floatgetCentreX()Get the centre of the light in the X direction as a proportion of the image size.floatgetCentreY()Get the centre of the light in the Y direction as a proportion of the image size.intgetColor()floatgetConeAngle()floatgetDistance()floatgetElevation()floatgetFocus()floatgetIntensity()voidprepare(int width, int height)Prepare the light for rendering.voidsetAzimuth(float azimuth)voidsetCentreX(float x)Set the centre of the light in the X direction as a proportion of the image size.voidsetCentreY(float y)Set the centre of the light in the Y direction as a proportion of the image size.voidsetColor(int color)voidsetConeAngle(float coneAngle)voidsetDistance(float distance)voidsetElevation(float elevation)voidsetFocus(float focus)voidsetIntensity(float intensity)StringtoString()
-
-
-
方法详细资料
-
setAzimuth
public void setAzimuth(float azimuth)
-
getAzimuth
public float getAzimuth()
-
setElevation
public void setElevation(float elevation)
-
getElevation
public float getElevation()
-
setDistance
public void setDistance(float distance)
-
getDistance
public float getDistance()
-
setIntensity
public void setIntensity(float intensity)
-
getIntensity
public float getIntensity()
-
setConeAngle
public void setConeAngle(float coneAngle)
-
getConeAngle
public float getConeAngle()
-
setFocus
public void setFocus(float focus)
-
getFocus
public float getFocus()
-
setColor
public void setColor(int color)
-
getColor
public int getColor()
-
setCentreX
public void setCentreX(float x)
Set the centre of the light in the X direction as a proportion of the image size.- 参数:
x-- 另请参阅:
getCentreX()
-
getCentreX
public float getCentreX()
Get the centre of the light in the X direction as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentreX(float)
-
setCentreY
public void setCentreY(float y)
Set the centre of the light in the Y direction as a proportion of the image size.- 参数:
y-- 另请参阅:
getCentreY()
-
getCentreY
public float getCentreY()
Get the centre of the light in the Y direction as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentreY(float)
-
prepare
public void prepare(int width, int height)Prepare the light for rendering.- 参数:
width- the output image widthheight- the output image height
-
-