25 namespace serialization
40 friend class boost::serialization::access;
52 template <
class ItrType>
53 void Add(ItrType a_begin, ItrType a_end);
59 void GetExtents(
double* a_MinX,
double* a_MaxX,
double* a_MinY,
double* a_MaxY);
69 template <
typename Archive>
70 void serialize(Archive& archive,
const unsigned int version);
83 template <
typename ItrType>
98 template <
typename Archive>
114 friend class boost::serialization::access;
136 double* a_MaxZ)
const;
148 template <
typename Archive>
149 void serialize(Archive& archive,
const unsigned int version);
162 template <
typename Archive>
bool Overlap(const GmExtents2d &a_b) const
Test to see if two extents overlap.
bool IsValid()
If we don't have any data we return false.
double GetMinZ() const
Gets the minimum z.
static double GetTolerance()
Gets the tolerance in use.
Pt3d GetMax() const
Gets the maximum.
void GetExtents(double *a_MinX, double *a_MaxX, double *a_MinY, double *a_MaxY)
Gets the extents via the parameters.
Pt2d m_max
Maximum, maximum extents.
virtual void AddToExtents(const Pt3d &pt)
Add a point to the extents.
static void SetTolerance(double a_Tol)
Sets the tolerance to use.
3D geometric extents (min/max).
void serialize(Archive &archive, const unsigned int version)
Boost serialize function.
double GetMinY() const
Gets the minimum y.
double GetMaxX() const
Gets the maximum x.
double GetMaxY() const
Gets the maximum y.
void Set(const Pt3d &a_min, const Pt3d &a_max)
Sets the min/max.
double GetMinX() const
Gets the minimum x.
static double m_tolerance
Tolerance used in comparisons.
bool IsValid() const
If we don't have any data we return false.
double GetMaxX() const
Gets the maximum x.
Pt2d GetMin() const
Gets the minimum.
static double m_tolerance
Tolerance used in comparisons.
void serialize(Archive &archive, const unsigned int version)
Boost serialize function.
Pt2d GetMax() const
Gets the maximum.
void Set(const Pt2d &a_min, const Pt2d &a_max)
Sets the min/max.
static void SetTolerance(double a_Tol)
Sets the tolerance to use.
void operator+=(const GmExtents2d &a_rhs)
operator +=
void AddToExtents(const Pt3d &pt)
Add a point to the extents.
void Clear()
Resets the extents to defaults. IsValid will return false.
2D geometric extents (min/max).
Pt3d m_max
Maximum, maximum extents.
void Clear()
Resets the extents to defaults. IsValid will return false.
bool IsPointWithin(const Pt3d &pt) const
Tests if the point is inside the extents.
double GetMinX() const
Gets the minimum x.
void GetExtents(double *a_MinX, double *a_MaxX, double *a_MinY, double *a_MaxY, double *a_MinZ, double *a_MaxZ) const
Gets the extents via the parameters.
static double GetTolerance()
Gets the tolerance in use.
double GetMaxZ() const
Gets the maximum z.
Pt3d GetMin() const
Gets the minimum.
double GetMaxY() const
Gets the maximum y.
void Add(ItrType a_begin, ItrType a_end)
Adds a range defined by two iterators to the extents.
double GetMinY() const
Gets the minimum y.
Pt3d m_min
Minimum, maximum extents.
virtual ~GmExtents2d()
destructor
bool Overlap(GmExtents3d &a_b) const
Test to see if two extents overlap.
void operator+=(const GmExtents3d &a_rhs)
operator +=
Pt2d m_min
Minimum, maximum extents.