ProcUnit::SetMeasureProcMask
Sets measure processing mask
int SetMeasureProcMask(
int enabled,
int mode
)
Parameters
enabled
|
The measurement processing interrupts is enabled or not.
|
mode
|
Exclusive control effectiveness
|
Return Value
Returns 0 when the measure processing mask is successfully set.
Otherwise returns a non-zero value.
Description
Setting that the following measurement processing doesn't interrupt while processing measurement result display after measurement is processed.
Parameter enable is specified Whether the following measurement processing interrupts while processing the measurement result display after the measurement is processed.
SetMeasureProcMask(TRUE); // The interruption of the measurement processing is prohibited.
Processing that it doesn't want to be interrupted during the measurement processing
SetMeasureProcMask(FALSE); // The prohibition of the measurement processing interruption is released.
Parameter mode is specified whether the exclusive control is effective(Relate to the memory control method).
mode:0
SetMeasureProcMask(TRUE, 0) ~ SetMeasureProcMask(FALSE, 0)
When the memory relocation is being done (Windows CE version's default)
Exclusive control works, and the measurement processing never interrupts for this period.
When the memory relocation isn't being done (Windows XP version's default)
Exclusive control doesn't work. (The measurement processing can interrupt. )
mode:1
SetMeasureProcMask(TRUE, 1) ~ SetMeasureProcMask(FALSE, 1)
The exclusive control always works without depending on the memory control method and the measurement processing doesn't interrupt.
Parameter mode is considered as 0 when it is omitted.
Example
int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
{
// Sets measure processing mask
ptrProcUnit->SetMeasureProcMask(TRUE);
}