| java.lang.Object org.apache.batik.ext.awt.image.AbstractLight org.apache.batik.ext.awt.image.SpotLight
SpotLight | public class SpotLight extends AbstractLight (Code) | | A light source which emits a light of constant intensity in all directions.
author: Vincent Hardy version: $Id: SpotLight.java 501495 2007-01-30 18:00:36Z dvholten $ |
Constructor Summary | |
public | SpotLight(double lightX, double lightY, double lightZ, double pointAtX, double pointAtY, double pointAtZ, double specularExponent, double limitingConeAngle, Color lightColor) |
Method Summary | |
final public void | getLight(double x, double y, double z, double[] L) | final public void | getLight4(double x, double y, double z, double[] L) computes light vector in (x, y, z). | final public double | getLightBase(double x, double y, double z, double[] L) | public double[][] | getLightRow4(double x, double y, double dx, int width, double[][] z, double[][] lightRow) | public double | getLightX() | public double | getLightY() | public double | getLightZ() | public double | getLimitingConeAngle() | public double | getPointAtX() | public double | getPointAtY() | public double | getPointAtZ() | public double | getSpecularExponent() | public boolean | isConstant() |
SpotLight | public SpotLight(double lightX, double lightY, double lightZ, double pointAtX, double pointAtY, double pointAtZ, double specularExponent, double limitingConeAngle, Color lightColor)(Code) | | |
getLight | final public void getLight(double x, double y, double z, double[] L)(Code) | | Computes the light vector in (x, y, z)
Parameters: x - x-axis coordinate where the light should be computed Parameters: y - y-axis coordinate where the light should be computed Parameters: z - z-axis coordinate where the light should be computed Parameters: L - array of length 3 where the result is stored,x,y,z are scaled by light intensity. |
getLight4 | final public void getLight4(double x, double y, double z, double[] L)(Code) | | computes light vector in (x, y, z).
Parameters: x - x-axis coordinate where the light should be computed Parameters: y - y-axis coordinate where the light should be computed Parameters: z - z-axis coordinate where the light should be computed Parameters: L - array of length 4 where result is stored.0,1,2 are x,y,z respectively of light vector (normalized).3 is the intensity of the light at this point. |
getLightBase | final public double getLightBase(double x, double y, double z, double[] L)(Code) | | Computes the light vector in (x, y, z)
Parameters: x - x-axis coordinate where the light should be computed Parameters: y - y-axis coordinate where the light should be computed Parameters: z - z-axis coordinate where the light should be computed Parameters: L - array of length 3 where the result is stored the intensity factor for this light vector. |
getLightRow4 | public double[][] getLightRow4(double x, double y, double dx, int width, double[][] z, double[][] lightRow)(Code) | | |
getLightX | public double getLightX()(Code) | | the light's x position |
getLightY | public double getLightY()(Code) | | the light's y position |
getLightZ | public double getLightZ()(Code) | | the light's z position |
getLimitingConeAngle | public double getLimitingConeAngle()(Code) | | light's limiting cone angle |
getPointAtX | public double getPointAtX()(Code) | | x-axis coordinate where the light points to |
getPointAtY | public double getPointAtY()(Code) | | y-axis coordinate where the light points to |
getPointAtZ | public double getPointAtZ()(Code) | | z-axis coordinate where the light points to |
getSpecularExponent | public double getSpecularExponent()(Code) | | light's specular exponent (focus) |
isConstant | public boolean isConstant()(Code) | | true if the light is constant over the whole surface |
Methods inherited from org.apache.batik.ext.awt.image.AbstractLight | public double[] getColor(boolean linear)(Code)(Java Doc) public double[][][] getLightMap(double x, double y, double dx, double dy, int width, int height, double[][][] z)(Code)(Java Doc) public double[][] getLightRow(double x, double y, double dx, int width, double[][] z, double[][] lightRow)(Code)(Java Doc) public boolean isConstant()(Code)(Java Doc) final public static double sRGBToLsRGB(double value)(Code)(Java Doc) public void setColor(Color newColor)(Code)(Java Doc)
|
|
|