ProcUnit::GetSetupData
Gets the pointer to the memory space where the setting data of a processing item is stored
SETUPDATA *GetSetupData() {
}
Parameters
None.
Return Value
Returns the pointer to the memory space where the processing item setting data is stored.
If failed to get, returns NULL.
Description
Gets the pointer to the memory space where the setting data of a processing item is stored.
Example
struct SETUPDATA {
int x1; // Measurement region X1
int y1; // Measurement region Y1
int x2; // Measurement region X2
int y2; // Measurement region Y2
};
int Sample::MeasureProc(ProcUnit *ptrProcUnit)
{
SETUPDATA *ptrSetupData;
ptrSetupData = ptrProcUnit->GetSetupData();
// Get the measurement regions
ptrSetupData->x1;
ptrSetupData->y1;
ptrSetupData->x2;
ptrSetupData->y2;
}