CFx SDK Documentation 2024 SP0
|
#include <SiExtents.h>
Public Types | |
enum | IntersectResult { left = 0 , upon = 1 , right = 2 } |
Public Types inherited from OdGeExtents3d | |
enum | IntersectionStatus { kIntersectUnknown , kIntersectNot , kIntersectOpIn , kIntersectOpOut , kIntersectOk } |
enum | Convert2dPlane { kConvert2dPlaneXY = 0x04 , kConvert2dPlaneXZ = 0x08 , kConvert2dPlaneYX = 0x01 , kConvert2dPlaneYZ = 0x09 , kConvert2dPlaneZX = 0x02 , kConvert2dPlaneZY = 0x06 } |
Public Member Functions | |
virtual bool | contains (const OdGeExtents3d &extents, bool planar=false, const OdGeTol &tol=OdGeContext::gTol) const |
virtual bool | intersects (const OdGeExtents3d &extents, bool planar=false, const OdGeTol &tol=OdGeContext::gTol) const |
IntersectResult | intersects (double coordinate, int dimension, double tol=OdGeContext::gTol.equalPoint()) const |
void | makeHalf (int dimension, bool moveRight) |
void | makeDouble (int dimension, bool moveRight) |
void | makeCube (bool planar) |
Extent3d () | |
Extent3d (const OdGePoint3d &min, const OdGePoint3d &max) | |
Extent3d (const OdGeExtents3d &source) | |
Extent3d (const OdGeExtents2d &source) | |
Public Member Functions inherited from OdGeExtents3d | |
OdGeExtents3d () | |
OdGeExtents3d (const OdGePoint3d &min, const OdGePoint3d &max) | |
const OdGePoint3d & | minPoint () const |
const OdGePoint3d & | maxPoint () const |
const OdGePoint3d & | operator[] (int iIndex) const |
OdGePoint3d & | operator[] (int iIndex) |
void | set (const OdGePoint3d &min, const OdGePoint3d &max) |
void | comparingSet (const OdGePoint3d &pt1, const OdGePoint3d &pt2) |
OdGeExtents3d & | addPoint (const OdGePoint3d &point) |
OdGeExtents3d & | addPoints (const OdGePoint3dArray &points) |
OdGeExtents3d & | addExt (const OdGeExtents3d &extents) |
bool | isValidExtents () const |
void | expandBy (const OdGeVector3d &vect) |
void | transformBy (const OdGeMatrix3d &xfm) |
bool | contains (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const |
bool | contains (const OdGeExtents3d &extents, const OdGeTol &tol=OdGeContext::gTol) const |
bool | isDisjoint (const OdGeExtents3d &extents, const OdGeTol &tol=OdGeContext::gTol) const |
bool | isDisjointEuclidean (const OdGeExtents3d &extents, const OdGeTol &tol=OdGeContext::gTol) const |
double | distanceTo (const OdGePoint3d &iPoint) const |
double | distanceTo (const OdGeExtents3d &iExtents) const |
IntersectionStatus | intersectWith (const OdGeExtents3d &extents, OdGeExtents3d *pResult=0) const |
bool | isWithinRange (const OdGePoint3d &pt, double radius) |
OdGePoint3d | center () const |
OdGeVector3d | diagonal () const |
void | convert2d (OdGeExtents2d &extents, Convert2dPlane plane=kConvert2dPlaneXY) const |
void | setFrom2d (const OdGeExtents2d &extents, Convert2dPlane plane=kConvert2dPlaneXY) |
bool | isEqualTo (const OdGeExtents3d &extents, const OdGeTol &tol=OdGeContext::gTol) const |
bool | operator== (const OdGeExtents3d &extents) const |
bool | operator!= (const OdGeExtents3d &extents) const |
Public Member Functions inherited from OdSiShape | |
virtual bool | contains (const OdGeExtents3d &extents, bool planar, const OdGeTol &tol=OdGeContext::gTol) const =0 |
virtual bool | intersects (const OdGeExtents3d &extents, bool planar, const OdGeTol &tol=OdGeContext::gTol) const =0 |
virtual | ~OdSiShape () |
virtual OdSiShape * | clone () const |
virtual void | transform (const OdGeMatrix3d &) |
Additional Inherited Members | |
Static Public Member Functions inherited from OdSiShape | |
static bool | isOverallSpace (const OdSiShape *ptr) |
static bool | isNoSpace (const OdSiShape *ptr) |
Static Public Attributes inherited from OdGeExtents3d | |
static GE_STATIC_EXPORT const OdGeExtents3d | kInvalid |
Static Public Attributes inherited from OdSiShape | |
static ODSI_API_STATIC const OdSiShape & | kOverallSpace |
static ODSI_API_STATIC const OdSiShape & | kNoSpace |
Protected Attributes inherited from OdGeExtents3d | |
OdGePoint3d | m_min |
OdGePoint3d | m_max |
This class implements 3D Spatial Index Extents objects.
Corresponding C++ library: SpatialIndex
Definition at line 46 of file SiExtents.h.
Enumerator | |
---|---|
left | |
upon | |
right |
Definition at line 90 of file SiExtents.h.
|
inline |
Definition at line 162 of file SiExtents.h.
|
inline |
min | [in] Minimum point. |
max | [in] Maximum point. |
Definition at line 166 of file SiExtents.h.
|
inline |
Definition at line 168 of file SiExtents.h.
|
inline |
Definition at line 169 of file SiExtents.h.
|
inlinevirtual |
Returns true if and only if this Shape object contains the specfied extents.
extents | [in] Any 3D extents box. |
planar | [in] If and only if true, a planar computation is made. |
Implements OdSiShape.
Definition at line 49 of file SiExtents.h.
|
inlinevirtual |
Returns true if and only if this Shape object intersects the specfied extents.
extents | [in] Any 3D extents box. |
planar | [in] If and only if true, a planar computation is made. |
tol | [in] Tolerance. \remarksintersects() returns one of the following. |
Value Description true .. The specified extents intersect this Extents object. false .. The specified extents do not intersect this Extents object.
Implements OdSiShape.
Definition at line 74 of file SiExtents.h.
|
inline |
Returns the intersection with this Extents object.
\param coordinate [in] Coordinate to test.
dimension | [in] X, Y, or Z. |
tol | [in] Tolerance. |
Value Description left 0 coordinate is to the left of this Extents object. upon 1 coordinate is upon this Extents object. right 2 coordinate is to the right of this Extents object.
Definition at line 116 of file SiExtents.h.
|
inline |
Expands this Extents object to a square or cube of its largest dimension.
planar | [in] True for 2D extents, false for 3D. |
Definition at line 152 of file SiExtents.h.
|
inline |
Doubles the specified dimension of this Extents object.
dimension | [in] X, Y, or Z. |
moveRight | [in] True to move the right -hand edge, false for the left -hand. |
Definition at line 141 of file SiExtents.h.
|
inline |
Halves the specified dimension of this Extents object.
dimension | [in] X, Y, or Z. |
moveRight | [in] True to move the right -hand edge, false for the left -hand. |
Definition at line 128 of file SiExtents.h.