public final class Sky
extends java.lang.Object
Sky class implements the Perez Sun and Sky Model.| Constructor and Description |
|---|
Sky()
Constructs a new
Sky instance. |
| Modifier and Type | Method and Description |
|---|---|
float[] |
getColHistogram()
Returns the column histogram.
|
float[] |
getImageHistogram()
Returns the image histogram.
|
int |
getImageHistogramHeight()
Returns the image histogram height.
|
int |
getImageHistogramWidth()
Returns the image histogram width.
|
float |
getJacobian()
Returns the Jacobian.
|
OrthoNormalBasis33F |
getOrthoNormalBasis()
Returns the current
OrthoNormalBasis33F. |
double[] |
getPerezRelativeLuminance()
Returns the Perez relative luminance.
|
double[] |
getPerezX()
Returns the Perez X.
|
double[] |
getPerezY()
Returns the Perez Y.
|
int |
getSamples()
Returns the sample count.
|
Color |
getSunColor()
Returns a
Color with the color of the sun. |
Vector3F |
getSunDirection()
Returns a
Vector3F with the sun direction in local-space. |
Vector3F |
getSunDirectionWorld()
Returns a
Vector3F with the sun direction in world-space. |
Point3F |
getSunOrigin()
Returns a
Point3F with the sun origin. |
float |
getTheta()
Returns the Theta angle.
|
float |
getTurbidity()
Returns the turbidity.
|
double |
getZenithRelativeLuminance()
Returns the Zenith relative luminance.
|
double |
getZenithX()
Returns the Zenith X.
|
double |
getZenithY()
Returns the Zenith Y.
|
void |
set()
Sets the sun and sky parameters.
|
void |
set(Vector3F sunDirectionWorld)
Sets the sun and sky parameters.
|
void |
set(Vector3F sunDirectionWorld,
float turbidity)
Sets the sun and sky parameters.
|
void |
setSunDirectionWorldX(float x)
Sets the X-coordinate of the sun direction in world-space and updates the parameters.
|
void |
setSunDirectionWorldY(float y)
Sets the Y-coordinate of the sun direction in world-space and updates the parameters.
|
void |
setSunDirectionWorldZ(float z)
Sets the Z-coordinate of the sun direction in world-space and updates the parameters.
|
void |
setTurbidity(float turbidity)
Sets the turbidity and updates the parameters.
|
public Color getSunColor()
Color with the color of the sun.Color with the color of the sunpublic OrthoNormalBasis33F getOrthoNormalBasis()
OrthoNormalBasis33F.OrthoNormalBasis33Fpublic Point3F getSunOrigin()
Point3F with the sun origin.Point3F with the sun originpublic Vector3F getSunDirection()
Vector3F with the sun direction in local-space.Vector3F with the sun direction in local-spacepublic Vector3F getSunDirectionWorld()
Vector3F with the sun direction in world-space.Vector3F with the sun direction in world-spacepublic double getZenithRelativeLuminance()
public double getZenithX()
public double getZenithY()
public double[] getPerezRelativeLuminance()
public double[] getPerezX()
public double[] getPerezY()
public float getJacobian()
public float getTheta()
public float getTurbidity()
public float[] getColHistogram()
public float[] getImageHistogram()
public int getImageHistogramHeight()
public int getImageHistogramWidth()
public int getSamples()
public void set()
Calling this method is equivalent to set(new Vector3F(1.0F, 1.0F, 1.0F)).
public void set(Vector3F sunDirectionWorld)
Calling this method is equivalent to set(sunDirectionWorld, 2.0F).
If sunDirectionWorld is null, a NullPointerException will be thrown.
sunDirectionWorld - the sun direction in world-spacejava.lang.NullPointerException - thrown if, and only if, sunDirectionWorld is nullpublic void set(Vector3F sunDirectionWorld, float turbidity)
If sunDirectionWorld is null, a NullPointerException will be thrown.
sunDirectionWorld - the sun direction in world-spaceturbidity - the turbidityjava.lang.NullPointerException - thrown if, and only if, sunDirectionWorld is nullpublic void setSunDirectionWorldX(float x)
x - the new X-coordinatepublic void setSunDirectionWorldY(float y)
y - the new Y-coordinatepublic void setSunDirectionWorldZ(float z)
z - the new Z-coordinatepublic void setTurbidity(float turbidity)
turbidity - the new turbidity