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

Description

Functions

json FormIt.ImageManager.ReloadImageLayerWithImage (nHistoryID, nLayerID, imageFile)
 
json FormIt.ImageManager.ReloadImageLayerWithPlaceholder (nHistoryID, nLayerID)
 Reloads a layer with a placeholder image. More...
 
json FormIt.ImageManager.GetData (nHistoryID, nImageID, aIncludeSatelliteData)
 Gets ImageData for a single image. More...
 
json FormIt.ImageManager.GetAllImages (nHistoryID, nSort)
 Gets all images in given history. More...
 
json FormIt.ImageManager.ImportImage (nHistoryID, fileName, pixelWidth, pixelHeight, worldWidth, worldHeight, isSatelliteImage, addToSelections)
 Gets all images in given history. More...
 
json FormIt.ImageManager.SetImageName (nHistoryID, imageID, name)
 Set the Image name. More...
 
json FormIt.ImageManager.SetImageAlpha (nHistoryID, imageID, fAlpha, bFinalChange)
 Set the Image alpha. More...
 
json FormIt.ImageManager.SetImagePosition (nHistoryID, imageID, nPosition)
 Set the Image Position. More...
 
json FormIt.ImageManager.ReloadTerrain (nHistoryID, nImageID, imageFile, nRows, nCols, elevations)
 Reloads terrain based on elevation data and an image. More...
 

Function Documentation

json FormIt.ImageManager.GetAllImages ( nHistoryID  ,
nSort   
)

Gets all images in given history.

Parameters
[in]nHistoryIDsize_t
[in]nSortenum
Returns
FormIt.AllImageData
json FormIt.ImageManager.GetData ( nHistoryID  ,
nImageID  ,
aIncludeSatelliteData   
)

Gets ImageData for a single image.

Parameters
[in]nHistoryIDsize_t
[in]nImageIDsize_t
[in]aIncludeSatelliteDatabool
Returns
Image Data
json FormIt.ImageManager.ImportImage ( nHistoryID  ,
fileName  ,
pixelWidth  ,
pixelHeight  ,
worldWidth  ,
worldHeight  ,
isSatelliteImage  ,
addToSelections   
)

Gets all images in given history.

Parameters
[in]fileName,pixelWidth,pixelHeight,worldWidth,worldHeight,isSatelliteImage,addToSelections
[in]nHistoryIDint
[in]fileNameString
[in]pixelWidthint
[in]pixelHeightint
[in]worldWidthdouble
[in]worldHeightdouble
[in]isSatelliteImagebool
[in]addToSelections(OPTIONAL, default = true) bool
Returns
imageID New Image ID
json FormIt.ImageManager.ReloadImageLayerWithImage ( nHistoryID  ,
nLayerID  ,
imageFile   
)
json FormIt.ImageManager.ReloadImageLayerWithPlaceholder ( nHistoryID  ,
nLayerID   
)

Reloads a layer with a placeholder image.

Parameters
[in]nHistoryIDsize_t
[in]nLayerIDsize_t
Returns
JSON_UNDEFINED
json FormIt.ImageManager.ReloadTerrain ( nHistoryID  ,
nImageID  ,
imageFile  ,
nRows  ,
nCols  ,
elevations   
)

Reloads terrain based on elevation data and an image.

If the image file is not specified, re-uses the existing image.

Parameters
[in]nHistoryIDsize_t
[in]nImageIDsize_t
[in]imageFilestd.string
[in]nRowssize_t - the number of rows of elevation data
[in]nColssize_t - the number of columns of elevation data
[in]elevationsstd.vector<double>
Returns
JSON_UNDEFINED
json FormIt.ImageManager.SetImageAlpha ( nHistoryID  ,
imageID  ,
fAlpha  ,
bFinalChange   
)

Set the Image alpha.

Parameters
[in]nHistoryID,imageID,fAlpha,bFinalChange
[in]nHistoryIDint
[in]imageIDint
[in]fAlphafloat
[in]bFinalChangebool
Returns
success
json FormIt.ImageManager.SetImageName ( nHistoryID  ,
imageID  ,
name   
)

Set the Image name.

Parameters
[in]nHistoryID,imageID,name
[in]nHistoryIDint
[in]imageIDint
[in]nameString
Returns
success
json FormIt.ImageManager.SetImagePosition ( nHistoryID  ,
imageID  ,
nPosition   
)

Set the Image Position.

Parameters
[in]nHistoryID,imageID,nPosition
[in]nHistoryIDint
[in]imageIDint
[in]nPositionint
Returns
success