SetDataDouble

Description

SetDataDouble gives the data to the plugin.

Syntax

int SetDataDouble(const wchar_t* iwszParameterName, const unsigned int iunTableSize, const double* 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 DataDouble

{
     unsigned int Size;
     double* Table;
};

std::map<std::wstring, DataDouble> gmDatas;

int SetDataDouble(const wchar_t* iwszParameterName, const unsigned int iunTableSize, const double* ipTable)
{
     if (iunTableSize != 0 && ipTable != NULL)
     {
DataDouble 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"

Only the parameters that HIW can compute are sent to the plugin.

For example in "Uniform" eyebox mode, the parameters relative to the adaptive eyebox are not sent. If you do not specify an "Outer Surface" in the "Windshield/Combiner" tab, the parameters relative to the ghost are not sent.

Parameter name

Unit

Description

DriverHeight

mm Defines the driver's height

RotationMirror

Mirror's rotation angle