//***************************************************************************************
// 
// File name: SimpleFixture.cpp
// Location: See Matrox Example Launcher in the MIL Control Center
// 
//
// Synopsis: This file contains the implementation of the CSimpleFixture class.
//
// Copyright (C) Matrox Electronic Systems Ltd., 1992-2020.
// All Rights Reserved


#include <mil.h>
#include "SimpleFixture.h"

//*****************************************************************************
// Constants.
//*****************************************************************************

//*****************************************************************************
// Constructor.
//*****************************************************************************
CSimpleFixture::CSimpleFixture(MIL_DOUBLE PosX, MIL_DOUBLE PosY, MIL_DOUBLE Angle, CInspectionTask* FixtureProvider /* = M_NULL */)
   : CInspectionTask(M_NONE, FixtureProvider),
     m_PosX(PosX),
     m_PosY(PosY),
     m_Angle(Angle)
   {
   }

//*****************************************************************************
// Destructor.
//*****************************************************************************
CSimpleFixture::~CSimpleFixture()
   {
   }

//*****************************************************************************
// Inspect.
//*****************************************************************************
ResultStatusEnum CSimpleFixture::Inspect(MIL_ID MilImage)
   {
   // Set the output fixture.
   SetOutputFixture(M_POINT_AND_ANGLE, M_NULL, M_DEFAULT, m_PosX, m_PosY, m_Angle, M_DEFAULT);

   return eValid;
   }

//*****************************************************************************
// Draw text result.
//*****************************************************************************
void CSimpleFixture::DrawTextResult(MIL_ID MilGraContext, MIL_ID MilDest)
   {   
   }

//*****************************************************************************
// Draw graphical result.
//*****************************************************************************
void CSimpleFixture::DrawGraphicalResult(MIL_ID MilGraContext, MIL_ID MilDest)
   {
   }