24 namespace serialization
39 friend class boost::serialization::access;
51 template <
class ItrType>
52 void Add(ItrType a_begin, ItrType a_end);
58 void GetExtents(
double* a_MinX,
double* a_MaxX,
double* a_MinY,
double* a_MaxY);
68 template <
typename Archive>
69 void serialize(Archive& archive,
const unsigned int version);
82 template <
typename ItrType>
97 template <
typename Archive>
113 friend class boost::serialization::access;
135 double* a_MaxZ)
const;
147 template <
typename Archive>
148 void serialize(Archive& archive,
const unsigned int version);
161 template <
typename Archive>
bool Overlap(const GmExtents2d &a_b) const
Test to see if two extents overlap.
Pt2d GetMin() const
Gets the minimum.
double GetMinX() const
Gets the minimum x.
Pt3d GetMin() const
Gets the minimum.
bool IsValid()
If we don't have any data we return false.
double GetMaxY() const
Gets the maximum y.
static double GetTolerance()
Gets the tolerance in use.
void GetExtents(double *a_MinX, double *a_MaxX, double *a_MinY, double *a_MaxY)
Gets the extents via the parameters.
bool IsValid() const
If we don't have any data we return false.
Pt2d m_max
Maximum, maximum extents.
virtual void AddToExtents(const Pt3d &pt)
Add a point to the extents.
Pt3d GetMax() const
Gets the maximum.
Pt2d GetMax() const
Gets the maximum.
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.
bool IsPointWithin(const Pt3d &pt) const
Tests if the point is inside the extents.
bool Overlap(GmExtents3d &a_b) const
Test to see if two extents overlap.
void Set(const Pt3d &a_min, const Pt3d &a_max)
Sets the min/max.
double GetMaxY() const
Gets the maximum y.
double GetMinY() const
Gets the minimum y.
static double m_tolerance
Tolerance used in comparisons.
double GetMaxZ() const
Gets the maximum z.
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 m_tolerance
Tolerance used in comparisons.
double GetMinZ() const
Gets the minimum z.
void serialize(Archive &archive, const unsigned int version)
Boost serialize function.
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 +=
double GetMaxX() const
Gets the maximum x.
void AddToExtents(const Pt3d &pt)
Add a point to the extents.
double GetMinY() const
Gets the minimum y.
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.
double GetMinX() const
Gets the minimum x.
static double GetTolerance()
Gets the tolerance in use.
void Add(ItrType a_begin, ItrType a_end)
Adds a range defined by two iterators to the extents.
Pt3d m_min
Minimum, maximum extents.
double GetMaxX() const
Gets the maximum x.
virtual ~GmExtents2d()
destructor
void operator+=(const GmExtents3d &a_rhs)
operator +=
Pt2d m_min
Minimum, maximum extents.