FormIt Plugin API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
FormIt.ImageManager API

Description

Functions

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

Function Documentation

◆ GetAllImages()

json FormIt.ImageManager.GetAllImages ( nHistoryID  ,
nSort   
)

Gets all images in given history

Parameters
[in]nHistoryIDsize_t
[in]nSortenum
Returns
FormIt.AllImageData

◆ GetData()

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

◆ ImportImage()

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

◆ ReloadImageLayerWithImage()

json FormIt.ImageManager.ReloadImageLayerWithImage ( nHistoryID  ,
nLayerID  ,
imageFile   
)

Reloads a layer with an image file .

Parameters
[in]nHistoryIDsize_t
[in]nLayerIDsize_t
[in]imageFilestd.string
Returns
JSON_UNDEFINED

◆ ReloadImageLayerWithPlaceholder()

json FormIt.ImageManager.ReloadImageLayerWithPlaceholder ( nHistoryID  ,
nLayerID   
)

Reloads a layer with a placeholder image

Parameters
[in]nHistoryIDsize_t
[in]nLayerIDsize_t
Returns
JSON_UNDEFINED

◆ ReloadTerrain()

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

◆ SetImageAlpha()

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

◆ SetImageName()

json FormIt.ImageManager.SetImageName ( nHistoryID  ,
imageID  ,
name   
)

Set the Image name

Parameters
[in]nHistoryID,imageID,name
[in]nHistoryIDint
[in]imageIDint
[in]nameString
Returns
success

◆ SetImagePosition()

json FormIt.ImageManager.SetImagePosition ( nHistoryID  ,
imageID  ,
nPosition   
)

Set the Image Position

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