Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

62 lines
1.4 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: BorderLGS.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of BorderLGS.h
//----------------------------------------------------------------------------
#ifndef __BORDER__LGS__H__INCLUDED__
#define __BORDER__LGS__H__INCLUDED__
#pragma once
class CBorderLGS
{
public:
CBorderLGS();
virtual ~CBorderLGS();
public:
void Destroy();
void Serialize( CArchive& ar );
void LoadAsSingleIPI( LPCTSTR pFileName );
void SaveAsSingleIPI( LPCTSTR pFileName );
BOOL Copy( CBorderLGS *pBorderLGS );
public:
typedef struct
{
double dAngle[2];
double dRange[2];
int bExist[2];
}BORDER, *PBORDER;
public:
PBORDER operator []( int nIndex ) { return GetAt( nIndex ); }
int GetCount() { return m_nBorder; }
PBORDER GetAt( int nIndex );
public:
BOOL Draw( CDC *pDC, CPoint *pCenter, double dScaleToPixel, double dRotateAngle = 0.0 );
protected:
PBORDER m_pBorder;
INT m_nBorder;
};
inline
CBorderLGS::PBORDER CBorderLGS::GetAt( int nIndex )
{
if( nIndex < 0 || nIndex >= m_nBorder )
return NULL;
return m_pBorder + nIndex;
}
#endif