00001
00002
00004
00005 #if !defined(AFX_XYVECTOR_H__06A83D38_2E71_478A_A4B2_24AB0F2A8822__INCLUDED_)
00006 #define AFX_XYVECTOR_H__06A83D38_2E71_478A_A4B2_24AB0F2A8822__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "XYPoint.h"
00013 #include <algorithm>
00014 #include <vector>
00015
00016
00017 class CXYVector
00018 {
00019 public:
00020 CXYVector();
00021 virtual ~CXYVector();
00022 void AddXYPoint(double x, double y);
00023 std::vector<CXYPoint *> *GetXYVector() {return &m_vpXYVector;}
00024 void SortOnX();
00025 void SortOnY();
00026 void SetXYPair(int n, double x, double y);
00027 private:
00028 std::vector<CXYPoint *> m_vpXYVector;
00029 };
00030
00031 #endif // !defined(AFX_XYVECTOR_H__06A83D38_2E71_478A_A4B2_24AB0F2A8822__INCLUDED_)