SetDataUnsignedInt

Description

SetDataUnsignedInt gives the data to the plugin.

Syntax

int SetDataUnsignedInt(const wchar_t* iwszParameterName, const unsigned int iunTableSize, const unsigned int* ipTable);

Parameters

Input

  • iwszParameterName: Data name the "ipTable" contains. See the list of possibles values bellow.
  • iunTableSize: Size of the table "ipTable".
  • ipTable: A table that contains the data.

Return

(int): returns the identification number of the error if an error occurs or 0 if no error occurs.

Example

#define OPT_PLUGIN_NO_ERROR 0
#define OPT_PLUGIN_ERROR_INVALID_DATA 4

struct DataUnsignedInt

{
     unsigned int Size;
     unsigned int* Table;
};
std::map<std::wstring, DataUnsignedInt> gmDatas;
int SetDataUnsignedInt(const wchar_t* iwszParameterName, const unsigned int iunTableSize, const unsigned int* ipTable)
{
     if (iunTableSize != 0 && ipTable != NULL)
     {
DataUnsignedInt theData;
theData.Size = iunTableSize;
theData.Table = ipTable;
std::wstring parameterName(iwszParameterName);
gmDatas[parameterName] = theData;
     }
     else
     {
return OPT_PLUGIN_ERROR_INVALID_DATA;
     }
     return OPT_PLUGIN_NO_ERROR;
}

List of the possible value of "iwszParameterName"

Parameter name

Unit

Description

Organization

InputImageHorizontalResolution

Horizontal resolution of image to be warped.

InputImageVerticalResolution

Vertical resolution of image to be warped.

PGUHorizontalResolution

Horizontal resolution of PGU.

PGUVerticalResolution

Vertical resolution of PGU.