CFx SDK Documentation 2024 SP0
|
#include <GeExtents2d.h>
Public Types | |
enum | IntersectionStatus { kIntersectUnknown , kIntersectNot , kIntersectOpIn , kIntersectOpOut , kIntersectOk } |
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 43 of file GeExtents2d.h.
Types of intersection results.
Definition at line 268 of file GeExtents2d.h.
|
inline |
Default constructor for the OdGeExtents2d class.
Definition at line 53 of file GeExtents2d.h.
|
inline |
Constructor for the OdGeExtents2d class.
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 63 of file GeExtents2d.h.
|
inline |
Updates the extents of this OdGeExtents2d object with the specified extents.
extents | [in] 2D extents with the points to be added. |
Definition at line 172 of file GeExtents2d.h.
|
inline |
Updates the extents of this OdGeExtents2d object with the specified point.
point | [in] A 2D point that is added to define new extents. |
Definition at line 137 of file GeExtents2d.h.
OdGeExtents2d & OdGeExtents2d::addPoints | ( | const OdGePoint2dArray & | points | ) |
Updates the extents of this OdGeExtents2d object with the specified array of points.
points | [in] Array of 2D points to define the extents. |
|
inline |
Returns a center point of this Extents object.
Definition at line 313 of file GeExtents2d.h.
|
inline |
Sets the minimum and maximum points for this OdGeExtents2d object to that of the box defined by pt1 and pt2.
pt1 | [in] First point that defines the extents. |
pt2 | [in] Second point that defines the extents. |
Definition at line 366 of file GeExtents2d.h.
|
inline |
Indicates whether this OdGeExtents2d object contains the specified extents.
extents | [in] 2D extents that is tested to be within these extents. |
tol | [in] Tolerance of measurement error. |
Definition at line 384 of file GeExtents2d.h.
|
inline |
Indicates whether this OdGeExtents2d object contains the specified point.
point | [in] A 2D point that is presumably contained inside these extents. |
tol | [in] Tolerance of measurement error. |
Definition at line 374 of file GeExtents2d.h.
|
inline |
Returns the vector from minimal to maximal point.
Definition at line 97 of file GeExtents2d.h.
void OdGeExtents2d::expandBy | ( | const OdGeVector2d & | vect | ) |
Updates the extents of this OdGeExtents2d object by the specified vector.
vect | [in] A 2D vector that defines where new points are located. |
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 boxes are invalid kIntersectNot The extents boxes are not intersecting kIntersectOpIn The specified OdGeExtents2d object is completely within this one kIntersectOpOut This OdGeExtents2d object is completely within the specified one kIntersectOk The extents boxes are intersecting, and a result is returned
|
inline |
Indicates whether the specified OdGeExtents2d object intersects these extents.
extents | [in] 2D extents. |
tol | [in] Tolerance of measurement error. |
Definition at line 394 of file GeExtents2d.h.
bool OdGeExtents2d::isEqualTo | ( | const OdGeExtents2d & | extents, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Checks if this OdGeExtents2d object is equal to the passed extents.
extents | [in] A 2D Extents object to be tested for equality. |
tol | [in] Geometric tolerance. |
|
inline |
Checks whether this OdGeExtents2d object contains valid extents.
Definition at line 193 of file GeExtents2d.h.
|
inline |
Returns the maximum point of this OdGeExtents2d object.
Definition at line 88 of file GeExtents2d.h.
|
inline |
Returns the minimum point of this OdGeExtents2d object.
Definition at line 79 of file GeExtents2d.h.
|
inline |
Comparison operator for the OdGeExtents2d object.
extents | [in] Extents to compare with. |
Definition at line 353 of file GeExtents2d.h.
|
inline |
Comparison operator for the OdGeExtents2d object.
extents | [in] Extents to compare with. |
Definition at line 340 of file GeExtents2d.h.
|
inline |
Sets the minimum and maximum points for this OdGeExtents2d object.
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 106 of file GeExtents2d.h.
void OdGeExtents2d::transformBy | ( | const OdGeMatrix2d & | xfm | ) |
Applies the 2D transformation matrix to the extents.
xfm | [in] 2D transformation matrix. |
|
inline |
Applies the 2D translation to the extents.
iShift | [in] 2D translation vector. |
Definition at line 219 of file GeExtents2d.h.
|
static |
The invalid extents.
Definition at line 71 of file GeExtents2d.h.
|
protected |
Definition at line 360 of file GeExtents2d.h.
|
protected |
Definition at line 359 of file GeExtents2d.h.