ImageWindow::DrawSearchFigure

Draws a search result figure in the Image Display window

int DrawSearchFigure(
   FIG_HEADER   *figure,
   int          imageSizeX,
   int          imageSizeY,
   double               referenceX,
   double               referenceY,
   double               measureX,
   double               measureY,
   double               measureAngle
);

int DrawSearchFigure(
   FIG_HEADER   *figure,
   double               referenceX,
   double               referenceY,
   double               measureX,
   double               measureY,
   double               measureAngle,
   ProcUnit             *ptrProcUnit,
   int          imageNo
);

Parameters
*figure
Pointer to the memory space for storing the figure information of the search model to be drawn
imageSizeX
Image size X on which the model is drawn
imageSizeY
Image size Y on which the model is drawn
referenceX
Reference coordinate X of the search to be drawn
referenceY
Reference coordinate Y of the search to be drawn
measureX
Measurement result position X of the search to be drawn
measureY
Measurement result position Y of the search to be drawn
mesureAngle
Measurement result angle of the search to be drawn
*ptrProcUnit
Pointer to processing unit information
imageNo
Image number

Return Value
Returns 0 when a figure is successfully drawn.
Otherwise returns a non-zero value.

Description
Draws the figure that reflects the search result in the Image Display window.

Example
    int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
    {
        FIG_HEADER *ptrFigure;
        double referenceX;
        double referenceY;
        double measureX;
        double measureY;
        double measureAngle;

        // Get the figure information of the search model region

        ptrFigure = ptrProcUnit->GetFigureData(0);

        // Get the reference coordinate position

        referenceX = ptrProcUnit->GetSetupData()->referenceX;
        referenceY = ptrProcUnit->GetSetupData()->referenceY;

        // Get the measurement result

        measureX = ptrProcUnit->GetMeasureData()->measureX;
        measureX = ptrProcUnit->GetMeasureData()->measureY;
        measureAngle = ptrProcUnit->GetMeasureData()->measureAngle;

        // Display the figure of the search result position

        ptrImageWindow.DrawSearchFigure(ptrFigure, 640, 480, referenceX, referenceY, measureX, measureY, measureAngle);

        // Display the figure of the search result position

        ptrImageWindow.DrawSearchFigure(ptrFigure, referenceX, referenceY, measureX, measureY, measureAngle, ptrProcUnit, 0);
    }