32 lines
493 B
C++
32 lines
493 B
C++
#pragma once
|
|
#include "GePoly2D.h"
|
|
class TextRange
|
|
{
|
|
public:
|
|
TextRange(){}
|
|
~TextRange(){}
|
|
|
|
BOOL GetExtend(ADSGePoint3d &ptMin, ADSGePoint3d &ptMax) const
|
|
{
|
|
if (!m_lstRanges)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
m_lstRanges[0].GetExtend(ptMin, ptMax);
|
|
for (int i = 1; i < m_lstRanges.Length(); i++)
|
|
{
|
|
ADSGePoint3d pt1, pt2;
|
|
m_lstRanges[i].GetExtend(pt1, pt2);
|
|
ptMin = Min(ptMin, pt1);
|
|
ptMax = Max(ptMax, pt2);
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
public:
|
|
|
|
PtrList<GePoly2D> m_lstRanges;
|
|
};
|