Interface: DaylightSystemFactory2

Interfaces > Core Interfaces > DaylightSystemFactory2

 

   

Core Interfaces - Quick Navigation

The DaylightSystemFactory2 Interface exposes a method for creating a daylight system using the given sun and sky classes.

Methods:

<Interface>DaylightSystemFactory2.Create sunClass:<class>	skyClass:<class> 	 

sunClass default value: undefined
skyClass default value: undefined

Creates a Daylight system.

If the optional keywords are supplied, they should define the sun and/or sky classes to be used.If any of the optional keywords is omitted, the system default settings will be used.

Possible classes for sunClass: are:

 DirectionalLight - corresponds to Standard entry in the Daylight System UI

 IES_Sun

 mr_Sun

Possible classes for skyClass: are:

 IES_Sky

 mr_Sky

 Skylight

EXAMPLE:

theInt = DaylightSystemFactory2.Create sunClass:mr_Sun skyClass:mr_Sky
--> <MixinInterface:IDaylightSystem>
theInt.getSun()
--> mr Sun
theInt.getSky()
--> mr Sky
theInt = DaylightSystemFactory2.Create sunClass:DirectionalLight
--> <MixinInterface:IDaylightSystem>
theInt.getSun()
--> Free Directional Light
theInt.getSky()
--> Skylight

See Also