M_ANGLE::Set
Set the angle value
int Set(
double angle,
ProcUnit *ptrProcUnit,
int imageNo,
int mode
);
Parameters
angle
|
Angle
|
*ptrProcUnit
|
Pointer to the processing unit class
|
imageNo
|
The current target image number to be registered
|
mode
|
bit1:calibration ON/OFF, bit0:scroll ON/OFF
|
Return Value
Returns 0 when the expression is successfully converted.
Otherwise returns a non-zero value.
Description
Set the angle value
Example
int Sample::MeasureProc(ProcUnit *ptrProcUnit)
{
double posX, posY, angle;
int outputMode = 0;
M_XY position;
func_measure(&posX, &posY, &angleA);
if (ptrSetupData->outputCoordinate == 1) {
outputMode |= 0x00000001;
}
if (ptrSetupData->calibration == 1) {
outputMode |= 0x00000002;
}
// set data
angle.Set(angleA, ptrProcUnit, 0, outputMode);
}