6#if !defined(AFX_2DPOINTLIST_H__15665002_0D39_11D3_A380_9A856250DB28__INCLUDED_)
7#define AFX_2DPOINTLIST_H__15665002_0D39_11D3_A380_9A856250DB28__INCLUDED_
16BEGIN_MOOTOOLS_NAMESPACE
18class C2DPointMethods :
public CPointMethods
20 DECLARE_SERIAL_XOBJECT(C2DPointMethods);
22 SIZET GetSizeof()
const;
23 ElementType GetType()
const;
24 void ConstructElement(
void* pNewData);
27inline SIZET C2DPointMethods::GetSizeof()
const
32inline ElementType C2DPointMethods::GetType()
const
34 return MAKE_CUSTOM_ID(
'2',
'D',
'P',
'T');
37inline void C2DPointMethods::ConstructElement(
void* pNewData)
52 using CPointList::operator=;
69 CXString GetPointListType()
const {
return _T(
"2D"); }
76 return (
C2DPoint *)CElementArray::GetFirst();
81 return (
C2DPoint *)CElementArray::GetNext(pointList);
86 return ((
C2DPoint *)CElementArray::ElementAt(i));
91 return ((
C2DPoint *)CElementArray::operator[](i));
C2DTPoint template class for handling x, y 2D point coordinate.
The class handles C2DPoint list of points.
Definition 2DPointList.h:48
C2DPoint * ElementAt(int i)
Get ith element, for using in a for loop.
Definition 2DPointList.h:84
C2DPoint * GetFirst()
Get first point, for using in while loop.
Definition 2DPointList.h:74
C2DPoint * operator[](int i)
Get ith element, for using in a for loop.
Definition 2DPointList.h:89
C2DPoint * GetNext(C2DPoint *pointList)
Get next point, for using in while loop.
Definition 2DPointList.h:79
The class defines an x, y 2D point which can use int, float or double.
Definition 2DPoint.h:23
CPointList is the base class for different classes (C3DPointList, CUVWPointList......
Definition PointList.h:50