Programming Reference for VirtualLab Fusion  2025.1
Loading...
Searching...
No Matches
ImportExport Class Referenceabstract

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Collection of static support functions for export and import of data fields. More...

Static Public Member Functions

static void ExportASCII (ComplexAmplitude ca, ASCIIParam param)
 Exports given globally polarized ComplexAmplitude to text file. Note that only a real component of complex amplitude is stored. For complete export of complex amplitude use ExportPTF.
 
static void ExportBitmap (ComplexAmplitude complexAmplitude, string fileName, ColorMapping colorMapping)
 Exports the given ComplexAmplitude as Bitmap with given ColorMapping.
 
static ComplexAmplitude ImportASCII (ASCIIParam importASCIIParam)
 Imports an ASCII file into an ComplexAmplitude.
 
static ComplexAmplitude ImportASCII (ASCIIParam importASCIIParam, AdditionalCAImportParams additionalParams)
 Imports an ASCII file into an ComplexAmplitude.
 
static ComplexField ImportASCII (string fileName, char columnSeparator=' ', char decimalSeparator='.', PrecisionMode precisionMode=PrecisionMode.Double)
 Imports an ASCII file into a ComplexField.
 
static ComplexAmplitude ImportBitmapQuantizedHeightProfile (string fileName, double heightIncrement, bool invert, bool importGDSII, SamplingParameters samplingForGDSII)
 Imports a quantized bitmap into a ComplexAmplitude representing the height profile.
 
static ComplexAmplitude ImportBitmapQuantizedHeightProfile (string[] fileNames, double heightIncrement, int numberOfLayers, bool invert, bool importGDSII, SamplingParameters samplingForGDSII)
 Imports a quantized bitmap into a ComplexAmplitude representing the height profile.
 

Detailed Description

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Collection of static support functions for export and import of data fields.

Member Function Documentation

◆ ExportASCII()

static void ExportASCII ( ComplexAmplitude  ca,
ASCIIParam  param 
)
static

Exports given globally polarized ComplexAmplitude to text file. Note that only a real component of complex amplitude is stored. For complete export of complex amplitude use ExportPTF.

Parameters
caComplexAmplitude to be exported.
paramAdditional parameters for export.

◆ ExportBitmap()

static void ExportBitmap ( ComplexAmplitude  complexAmplitude,
string  fileName,
ColorMapping  colorMapping 
)
static

Exports the given ComplexAmplitude as Bitmap with given ColorMapping.

Parameters
complexAmplitudeComplexAmplitude to be exported.
colorMappingColorMapping to be applied.
fileNameFilename of exported image.

◆ ImportASCII() [1/3]

static ComplexAmplitude ImportASCII ( ASCIIParam  importASCIIParam)
static

Imports an ASCII file into an ComplexAmplitude.

Parameters
importASCIIParamContains all necessary parameters to import.
Returns
Imported ComplexAmplitude.

◆ ImportASCII() [2/3]

static ComplexAmplitude ImportASCII ( ASCIIParam  importASCIIParam,
AdditionalCAImportParams  additionalParams 
)
static

Imports an ASCII file into an ComplexAmplitude.

Parameters
importASCIIParamContains all necessary parameters to import.
additionalParamsAdditional parameters for interpretation of imported data.
Returns
Imported ComplexAmplitude.

◆ ImportASCII() [3/3]

static ComplexField ImportASCII ( string  fileName,
char  columnSeparator = ' ',
char  decimalSeparator = '.',
PrecisionMode  precisionMode = PrecisionMode::Double 
)
static

Imports an ASCII file into a ComplexField.

Parameters
fileNameThe name of the file to import.
columnSeparatorOptional parameter giving the column separator. Default value is a space.
decimalSeparatorOptional parameter giving the decimal parameter. Default value is a dot.
precisionModeOptional parameter giving the precision mode of the imported field. Default is double precision.
Returns
The imported data as a ComplexField.

◆ ImportBitmapQuantizedHeightProfile() [1/2]

static ComplexAmplitude ImportBitmapQuantizedHeightProfile ( string  fileName,
double  heightIncrement,
bool  invert,
bool  importGDSII,
SamplingParameters  samplingForGDSII 
)
static

Imports a quantized bitmap into a ComplexAmplitude representing the height profile.

Parameters
fileNameName of the file.
heightIncrementNeeds number of quantization levels for proper calculation of phase
invertif set to true invert the layers.
importGDSIIif set to true import GDSII.
samplingForGDSIIThe sampling parameters imported from the XML file. Used to ease the GDSII import.
Returns
The imported ComplexAmplitude.

◆ ImportBitmapQuantizedHeightProfile() [2/2]

static ComplexAmplitude ImportBitmapQuantizedHeightProfile ( string[]  fileNames,
double  heightIncrement,
int  numberOfLayers,
bool  invert,
bool  importGDSII,
SamplingParameters  samplingForGDSII 
)
static

Imports a quantized bitmap into a ComplexAmplitude representing the height profile.

Parameters
fileNamesarray of file names
heightIncrementNeeds number of quantization levels for proper calculation of phase
numberOfLayersThe number of layers.
invertif set to true invert the layers.
importGDSIIif set to true import GDSII.
samplingForGDSIIThe sampling parameters imported from the XML file. Used to ease the GDSII import.
Returns
The imported ComplexAmplitude.