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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 12/12/2001
// PROJECT:
// SUBSYSTEM:
// FILE: LgPolygon.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of LgPolygon.h
//----------------------------------------------------------------------------
#ifndef __LG__POLYGON__H__INCLUDED__
#define __LG__POLYGON__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "LgAux.h"
class CLgPolygon {public: CLgPolygon(); ~CLgPolygon();
public: BOOL Add( CLgDPoint &dp ); void RemoveAll();
public: CLgDPoint& operator[] (INT nIndex) { return m_pPoint[nIndex]; } INT GetCount() { return m_nCount; }
private: CLgDPoint *m_pPoint; INT m_nCount;};
class CLgPolyPolygon {public: CLgPolyPolygon(); ~CLgPolyPolygon();
public: BOOL Add( CLgPolygon& polygon ); void RemoveAll();
public: CLgPolygon& operator[] (INT nIndex) { return m_pPolygon[nIndex]; } INT GetCount() { return m_nCount; }
private: CLgPolygon *m_pPolygon; INT m_nCount;};
#endif
|