CFx SDK Documentation 2024 SP0
|
#include <GeEntity2d.h>
Public Member Functions | |
ODRX_HEAP_OPERATORS () | |
~OdGeEntity2d () | |
bool | isKindOf (OdGe::EntityId entType) const |
OdGe::EntityId | type () const |
OdGeEntity2d * | copy () const |
OdGeEntity2d & | operator= (const OdGeEntity2d &entity) |
bool | operator== (const OdGeEntity2d &entity) const |
bool | operator!= (const OdGeEntity2d &entity) const |
bool | isEqualTo (const OdGeEntity2d &other, const OdGeTol &tol=OdGeContext::gTol) const |
OdGeEntity2d & | transformBy (const OdGeMatrix2d &xfm) |
OdGeEntity2d & | translateBy (const OdGeVector2d &translateVec) |
OdGeEntity2d & | rotateBy (double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin) |
OdGeEntity2d & | mirror (const OdGeLine2d &line) |
OdGeEntity2d & | scaleBy (double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin) |
bool | isOn (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const |
Protected Member Functions | |
OdGeEntity2d () | |
OdGeEntity2d (const OdGeEntity2d &) | |
void | connectTo (OdGeEntity2dImpl *) |
Friends | |
class | OdGeEntity2dImpl |
This class is the base class for all OdGe 2D geometric operations.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 43 of file GeEntity2d.h.
OdGeEntity2d::~OdGeEntity2d | ( | ) |
Destructor for the OdGeEntity2d class.
|
protected |
|
protected |
|
protected |
OdGeEntity2d * OdGeEntity2d::copy | ( | ) | const |
Returns a copy of this entity.
bool OdGeEntity2d::isEqualTo | ( | const OdGeEntity2d & | other, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if the specified entity is equal to this one.
other | [in] Entity to be compared |
tol | [in] Geometric tolerance. |
bool OdGeEntity2d::isKindOf | ( | OdGe::EntityId | entType | ) | const |
Returns true if and only if this entity is of type (or is derived from) entType.
entType | [in] Entity type to test. |
bool OdGeEntity2d::isOn | ( | const OdGePoint2d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if the specified point is on this entity, as determined by the tolerance.
point | [in] Point to be queried. |
tol | [in] Geometric tolerance. |
OdGeEntity2d & OdGeEntity2d::mirror | ( | const OdGeLine2d & | line | ) |
Mirrors this entity about the specified 2D line, and returns a reference to this entity.
line | [in] Mirror Line. |
OdGeEntity2d::ODRX_HEAP_OPERATORS | ( | ) |
bool OdGeEntity2d::operator!= | ( | const OdGeEntity2d & | entity | ) | const |
Comparison operator for the OdGeEntity2d object.
entity | [in] Other entity to compare. |
OdGeEntity2d & OdGeEntity2d::operator= | ( | const OdGeEntity2d & | entity | ) |
Assignment operator for the OdGeEntity2d object.
entity | [in] Entity to assign. |
bool OdGeEntity2d::operator== | ( | const OdGeEntity2d & | entity | ) | const |
Comparison operator for the OdGeEntity2d object.
entity | [in] Other entity to compare. |
OdGeEntity2d & OdGeEntity2d::rotateBy | ( | double | angle, |
const OdGePoint2d & | basePoint = OdGePoint2d::kOrigin |
||
) |
Rotates this entity about the specified point by the specified angle, and returns a reference to this entity.
angle | [in] Rotation angle. |
basePoint | [in] Basepoint. |
OdGeEntity2d & OdGeEntity2d::scaleBy | ( | double | scaleFactor, |
const OdGePoint2d & | basePoint = OdGePoint2d::kOrigin |
||
) |
Scales this entity by the scale factor about the basepoint, and returns a reference to this entity.
scaleFactor | [in] Scale Factor. The scale factor must be greater than zero. |
basePoint | [in] Basepoint. |
OdGeEntity2d & OdGeEntity2d::transformBy | ( | const OdGeMatrix2d & | xfm | ) |
Applies the 2D transformation matrix to this entity, and returns a reference to this entity.
xfm | [in] 2D transformation matrix. |
OdGeEntity2d & OdGeEntity2d::translateBy | ( | const OdGeVector2d & | translateVec | ) |
Applies the 2D translation vector to this entity, and returns a reference to this entity.
translateVec | [in] Translation Vector. |
OdGe::EntityId OdGeEntity2d::type | ( | ) | const |
Returns the entity type of this entity.
|
friend |
Definition at line 191 of file GeEntity2d.h.