ProcUnit::SetFigureData
Sets the figure data
int SetFigureData(
int figureNo,
FIG_HEADER *figure
int measureImageUpdate
);
int SetFigureData(
int figureNo,
FIG_HEADER *figure,
ProcUnit *ptrSrcProcUnit
);
Parameters
figureNo
|
Figure number to be set
|
*figure
|
Pointer to the memory space for storing figure data to be set
|
measureImageUpdate
|
Measure image update flag
TRUE :To process the input/generate image in the last processing unit which image is input-operated/change-operated.
FALSE:To process the measure image in the last measure processing unit.
|
*ptrSrcProcUnit
|
Pointer to the processing unit information
|
Return Value
Returns 0 when the figure data is successfully set.
Otherwise returns a non-zero value.
Description
Set data for the figure of the specified number.
If you specify NULL for "figure", the figure data of the specified number is deleted.
Example
int Sample::MeasureProc(ProcUnit *ptrProcUnit)
{
FIG_HEADER fig;
// Set the figure data
ptrProcUnit->SetFigureData(0, &fig);
// Set the figure data
ptrProcUnit->SetFigureData(1, &fig, TRUE);
// Set the figure data
ProcUnit *ptrInnerUnit;
ptrInnerUnit = ptrProcUnit->GetInnerUnit(0);
ptrInnerUnit->SetFigureData(0, &fig, ptrProcUnit);
}