FormIt Plugin API  v23.0.0 (2023.0.0)
FormIt.SunAndLocation API

Description

Functions

json FormIt.SunAndLocation.AddSatelliteImage (centerLat, centerLon, latSpan, lonSpan, pixelWidth, pixelHeight, physicalWidth, physicalHeight, address, xOffset, yOffset)
 
json FormIt.SunAndLocation.SetProjectAddress (address)
 SetProjectAddress sets the location address. More...
 
json FormIt.SunAndLocation.GetProjectAddress ()
 GetProjectAddress returns the location address. More...
 
json FormIt.SunAndLocation.SetLocation (longitude, latitude)
 SetLocation sets the location. More...
 
json FormIt.SunAndLocation.SetTimeOfDay (dTimeOfDay, bUpdateRender, bForceUpdateShadows)
 SetTimeOfDay sets the time of day. More...
 
json FormIt.SunAndLocation.UpdateShadows ()
 UpdateShadows updates the shadows. More...
 
json FormIt.SunAndLocation.SetDate (nDay, nMonth, nYear, bUpdateRender, bForceUpdateShadows)
 SetDate sets the date. More...
 
json FormIt.SunAndLocation.GetDaylightSavingTime ()
 GetDaylightSavingTime true if DST is active. More...
 
json FormIt.SunAndLocation.SetDaylightSavingTime (bEnable, bUpdateRender)
 SetDaylightSavingTime sets DST on/off. More...
 
json FormIt.SunAndLocation.GetLocationDateTime ()
 GetLocationDateTime Parameters: In: Out: {{"objectName", "SunLocationData", "latitude":, "longitude":, "Time":, "UTCTimeZone":, "DSTOffset":, "Day":, "Month":, "Year":, "DSTEnabled":};. More...
 
json FormIt.SunAndLocation.GetSunRiseAndSet ()
 GetSunRiseAndSet Parameters: In: Out: {"objectName"" "SunRiseData", sunRises":, sunRise":, sunSet":};. More...
 
json FormIt.SunAndLocation.GetLightDirectionFromLocationData (sunLocationData)
 GetLightDirectionFromLocationData Parameters: In:SunLocationData Out: {{"objectName", "Vector3d", "x":, "y":, "z": };. More...
 

Function Documentation

json FormIt.SunAndLocation.AddSatelliteImage ( centerLat  ,
centerLon  ,
latSpan  ,
lonSpan  ,
pixelWidth  ,
pixelHeight  ,
physicalWidth  ,
physicalHeight  ,
address  ,
xOffset  ,
yOffset   
)
json FormIt.SunAndLocation.GetDaylightSavingTime ( )

GetDaylightSavingTime true if DST is active.

Parameters: In: Out: bool

Returns
{...}
json FormIt.SunAndLocation.GetLightDirectionFromLocationData ( sunLocationData  )

GetLightDirectionFromLocationData Parameters: In:SunLocationData Out: {{"objectName", "Vector3d", "x":, "y":, "z": };.

Parameters
[in]sunLocationDataFormIt.SunLocationData
Returns
{...}
json FormIt.SunAndLocation.GetLocationDateTime ( )

GetLocationDateTime Parameters: In: Out: {{"objectName", "SunLocationData", "latitude":, "longitude":, "Time":, "UTCTimeZone":, "DSTOffset":, "Day":, "Month":, "Year":, "DSTEnabled":};.

Returns
{...}
json FormIt.SunAndLocation.GetProjectAddress ( )

GetProjectAddress returns the location address.

Parameters: In: Out: string

Returns
{...}
json FormIt.SunAndLocation.GetSunRiseAndSet ( )

GetSunRiseAndSet Parameters: In: Out: {"objectName"" "SunRiseData", sunRises":, sunRise":, sunSet":};.

Returns
{...}
json FormIt.SunAndLocation.SetDate ( nDay  ,
nMonth  ,
nYear  ,
bUpdateRender  ,
bForceUpdateShadows   
)

SetDate sets the date.

Parameters: In: nDay, nMonth, nYear, bUpdateRender (OPTIONAL=true), bForceUpdateShadows(OPTIONAL=true) Out: JSON_UNDEFINED

Parameters
[in]nDayint
[in]nMonthint
[in]nYearint
[in]bUpdateRender(OPTIONAL, default = true) bool
[in]bForceUpdateShadows(OPTIONAL, default = true) bool
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.SunAndLocation.SetDaylightSavingTime ( bEnable  ,
bUpdateRender   
)

SetDaylightSavingTime sets DST on/off.

Parameters: In: nDay, nMonth, nYear, bUpdateRender Out: JSON_UNDEFINED

Parameters
[in]bEnablebool
[in]bUpdateRender(OPTIONAL, default = true) bool
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.SunAndLocation.SetLocation ( longitude  ,
latitude   
)

SetLocation sets the location.

Parameters: In: longitude, latitude Out: JSON_UNDEFINED

Parameters
[in]longitudedouble
[in]latitudedouble
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.SunAndLocation.SetProjectAddress ( address  )

SetProjectAddress sets the location address.

Parameters: In: address Out: JSON_UNDEFINED

Parameters
[in]addressString
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.SunAndLocation.SetTimeOfDay ( dTimeOfDay  ,
bUpdateRender  ,
bForceUpdateShadows   
)

SetTimeOfDay sets the time of day.

Parameters: In: dTimeOfDay, bUpdateRender (OPTIONAL=true), bForceUpdateShadows(OPTIONAL=true) Out: JSON_UNDEFINED

Parameters
[in]dTimeOfDaydouble
[in]bUpdateRender(OPTIONAL, default = true) bool
[in]bForceUpdateShadows(OPTIONAL, default = true) bool
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.SunAndLocation.UpdateShadows ( )

UpdateShadows updates the shadows.

Parameters: In: Out: JSON_UNDEFINED

Returns
JSON_UNDEFINED, i.e. {}