CFx SDK Documentation
2022 SP0
|
#include <GeExtents2d.h>
Public Types | |
enum | IntersectionStatus { kIntersectUnknown , kIntersectNot , kIntersectOpIn , kIntersectOpOut , kIntersectOk } |
Public Member Functions | |
OdGeExtents2d () | |
OdGeExtents2d (const OdGePoint2d &min, const OdGePoint2d &max) | |
const OdGePoint2d & | minPoint () const |
const OdGePoint2d & | maxPoint () const |
void | set (const OdGePoint2d &min, const OdGePoint2d &max) |
void | comparingSet (const OdGePoint2d &pt1, const OdGePoint2d &pt2) |
void | addPoint (const OdGePoint2d &point) |
void | addExt (const OdGeExtents2d &extents) |
bool | isValidExtents () const |
void | expandBy (const OdGeVector2d &vect) |
void | transformBy (const OdGeMatrix2d &xfm) |
bool | contains (const OdGePoint2d &point) const |
bool | contains (const OdGeExtents2d &extents) const |
bool | isDisjoint (const OdGeExtents2d &extents) const |
IntersectionStatus | intersectWith (const OdGeExtents2d &extents, OdGeExtents2d *pResult=0) const |
OdGePoint2d | center () const |
bool | isEqualTo (const OdGeExtents2d &extents, const OdGeTol &tol=OdGeContext::gTol) const |
bool | operator== (const OdGeExtents2d &extents) const |
bool | operator!= (const OdGeExtents2d &extents) const |
Static Public Attributes | |
static GE_STATIC_EXPORT const OdGeExtents2d | kInvalid |
Protected Attributes | |
OdGePoint2d | m_min |
OdGePoint2d | m_max |
This class represents 2D bounding boxes as minimum and maximum 2d points.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 42 of file GeExtents2d.h.
Enumerator | |
---|---|
kIntersectUnknown | |
kIntersectNot | |
kIntersectOpIn | |
kIntersectOpOut | |
kIntersectOk |
Definition at line 220 of file GeExtents2d.h.
|
inline |
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 49 of file GeExtents2d.h.
|
inline |
Definition at line 54 of file GeExtents2d.h.
|
inline |
Updates the extents of this Extents object with the specified Extents object.
extents | [in] Any 2D Extents object. |
Definition at line 128 of file GeExtents2d.h.
|
inline |
Updates the extents of this Extents object with the specified point.
point | [in] Any 2D point. |
Definition at line 107 of file GeExtents2d.h.
|
inline |
Definition at line 251 of file GeExtents2d.h.
|
inline |
Sets the minimum and maximum points for this Extents object to that of the box defined by pt1 and pt2.
pt1 | [in] First point. |
pt2 | [in] Second point. |
Definition at line 274 of file GeExtents2d.h.
|
inline |
Definition at line 199 of file GeExtents2d.h.
|
inline |
Returns true if and only if this Extents object contains the specified object.
point | [in] Any 2D point. |
extents | [in] Any 2D Extents object. |
Definition at line 192 of file GeExtents2d.h.
|
inline |
Updates the extents of this Extents object by the specified vector.
vect | [in] Any 2D vector. |
Definition at line 154 of file GeExtents2d.h.
IntersectionStatus OdGeExtents2d::intersectWith | ( | const OdGeExtents2d & | extents, |
OdGeExtents2d * | pResult = 0 |
||
) | const |
Determines the intersection of the specified Extents object with this one, and returns the resulting intersection box.
extents | [in] Any 2D Extents object. |
pResult | [out] Receives extents of the intersection. |
@untitled table kIntersectUnknown Either or both Extents objects are invalid kIntersectNot The Extents objects are NOT intersecting kIntersectOpIn The specified Extents object is completely within this one kIntersectOpOut This Extents object is completely within the specified one kIntersectOk The Extents objectes are intersecting, and a result is returned
|
inline |
Returns true if and only if specified Extents object does not intersect this one.
extents | [in] Any 2D Extents object. |
Definition at line 213 of file GeExtents2d.h.
|
inline |
Definition at line 298 of file GeExtents2d.h.
|
inline |
Returns true if and only if this Extents object contains valid extents.
Definition at line 145 of file GeExtents2d.h.
|
inline |
Returns the maximum point of this Extents object.
Definition at line 73 of file GeExtents2d.h.
|
inline |
Returns the minimum point of this Extents object.
Definition at line 67 of file GeExtents2d.h.
|
inline |
Definition at line 262 of file GeExtents2d.h.
|
inline |
Definition at line 258 of file GeExtents2d.h.
|
inline |
Sets the minimum and maximum points for this Extents object.
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 82 of file GeExtents2d.h.
|
inline |
Applies the 2D transformation matrix to the extents.
xfm | [in] 2D transformation matrix. |
Definition at line 172 of file GeExtents2d.h.
|
static |
The invalid extents.
Definition at line 62 of file GeExtents2d.h.
|
protected |
Definition at line 269 of file GeExtents2d.h.
|
protected |
Definition at line 268 of file GeExtents2d.h.