org.stellarium
Class Skylight

java.lang.Object
  extended by org.stellarium.Skylight

public class Skylight
extends java.lang.Object


Nested Class Summary
 class Skylight.SkylightStruct
           
static class Skylight.SkylightStruct2
           
 
Field Summary
(package private)  float aX
           
(package private)  double Ay
           
(package private)  double AY
           
(package private)  float bX
           
(package private)  double By
           
(package private)  double BY
           
(package private)  float cX
           
(package private)  double Cy
           
(package private)  double CY
           
(package private)  float dX
           
(package private)  double Dy
           
(package private)  double DY
           
(package private)  float eX
           
(package private)  double Ey
           
(package private)  double EY
           
(package private)  double eye_lum_conversion
           
(package private)  float[] sunPos
           
(package private)  float T
           
(package private) static float T2
           
(package private)  float term_Y
           
(package private)  float termX
           
(package private)  float termY
           
private  float thetas
           
(package private) static float thetas2
           
(package private) static float thetas3
           
(package private)  float zenith_color_y
           
(package private)  float zenith_luminance
           
(package private)  float zenithColorX
           
 
Constructor Summary
Skylight()
           
 
Method Summary
(package private)  void compute_color_distribution_coefs()
          Compute the color distribution coefficients
(package private)  void compute_luminance_distribution_coefs()
          Compute the luminance distribution coefficients
(package private)  void compute_zenith_color()
          Compute CIE x and y color components
(package private)  void compute_zenith_luminance()
          Compute CIE luminance for zenith in cd/m^2
(package private)  void get_xyY_value(Skylight.SkylightStruct p)
          Compute the sky color at the given position in the CIE color system and store it in p.color p.color[0] is CIE x color component p.color[1] is CIE y color component p.color[2] is CIE Y color component (luminance)
 void get_xyY_valuev(Skylight.SkylightStruct2 p)
          Compute the sky color at the given position in the CIE color system and store it in p.color p.color[0] is CIE x color component p.color[1] is CIE y color component p.color[2] is CIE Y color component (luminance)
(package private)  void get_zenith_color(double[] v)
          Return the current zenith color in xyY color system
(package private)  void setParams(float _sun_zenith_angle, float _turbidity)
           
 void setParamsV(float[] _sun_pos, float _turbidity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thetas

private float thetas

T

float T

zenith_luminance

float zenith_luminance

zenithColorX

float zenithColorX

zenith_color_y

float zenith_color_y

eye_lum_conversion

double eye_lum_conversion

AY

double AY

BY

double BY

CY

double CY

DY

double DY

EY

double EY

aX

float aX

bX

float bX

cX

float cX

dX

float dX

eX

float eX

Ay

double Ay

By

double By

Cy

double Cy

Dy

double Dy

Ey

double Ey

termX

float termX

termY

float termY

term_Y

float term_Y

sunPos

float[] sunPos

thetas2

static float thetas2

thetas3

static float thetas3

T2

static float T2
Constructor Detail

Skylight

public Skylight()
Method Detail

setParams

void setParams(float _sun_zenith_angle,
               float _turbidity)

setParamsV

public void setParamsV(float[] _sun_pos,
                       float _turbidity)

compute_zenith_luminance

void compute_zenith_luminance()
Compute CIE luminance for zenith in cd/m^2


compute_zenith_color

void compute_zenith_color()
Compute CIE x and y color components


compute_luminance_distribution_coefs

void compute_luminance_distribution_coefs()
Compute the luminance distribution coefficients


compute_color_distribution_coefs

void compute_color_distribution_coefs()
Compute the color distribution coefficients


get_xyY_value

void get_xyY_value(Skylight.SkylightStruct p)
Compute the sky color at the given position in the CIE color system and store it in p.color p.color[0] is CIE x color component p.color[1] is CIE y color component p.color[2] is CIE Y color component (luminance)


get_xyY_valuev

public void get_xyY_valuev(Skylight.SkylightStruct2 p)
Compute the sky color at the given position in the CIE color system and store it in p.color p.color[0] is CIE x color component p.color[1] is CIE y color component p.color[2] is CIE Y color component (luminance)


get_zenith_color

void get_zenith_color(double[] v)
Return the current zenith color in xyY color system