Class Hierarchy
AcGeEntity2d AcGeCurve2d AcGeExternalCurve2d
C++
class AcGeExternalCurve2d : public AcGeCurve2d;
File
geextc2d.h
Description
AcGeExternalCurve2d class is a representation for a 2D curve geometry that has its definition external to GeLib. Since AcGeExternalCurve2d is a AcGeCurve2d, these external entities can be treated as any other GeLib 2D curves. Certain external curve points sets may have corresponding native representations in GeLib. In such cases, it is possible to obtain such GeLib representations. However, the curve definitions of native GeLib curves would differ from the definition of external entities. An example of such a difference is differing curve parameterizations. A typical example of a use of AcGeExternalCurve2d would be to represent a ShapeManager pcurve.
An instance of AcGeExternalCurve2d can be used as any other AcGeCurve2d. Alternatively, knowledge of the precise definition of the external entity allows direct access to the external entity in its native form. This access is more efficient since it avoids the level of indirection that is incurred when accessing the external entity through GeLib interface.
Remarks
The external entity is represented within AcGeExternalCurve2d as a pointer. The memory used by this pointer can either be under user control, or it can be made to be managed by the instance of this class. In the latter case, the class is said to "own" the definition data. Ownership of the definition data by the instance results in the destructor of the class deleting the memory occupied by the definition data pointer. In perusing the following method descriptions, pay special attention to those methods that may influence the ownership of the curve definition data.
Links
AcGeExternalCurve2d Constructor, AcGeExternalCurve2d Methods, AcGeExternalCurve2d Operators
See Also
AcGeExternalCurve3d