CFx SDK Documentation 2024 SP0
|
#include <DbGeomRef.h>
Public Types | |
enum | ImpliedType { kExplicitVertex , kUnknownType , kEdgeStart , kEdgeEnd , kEdgeMid , kEdgeCenter , kEdgeSplineControlPoint , kEdgeSplineFitPoint } |
Static Public Member Functions | |
static OdSmartPtr< OdDbVertexRef > | createObject (const OdGePoint3d &) |
static OdSmartPtr< OdDbVertexRef > | createObject (const OdDbObjectId entId, const OdDbSubentId subId, const OdGePoint3d &point) |
Static Public Member Functions inherited from OdRxObjectImpl< OdDbSubentRef > | |
static OdSmartPtr< OdDbSubentRef > | createObject () |
Static Public Member Functions inherited from OdDbSubentRef | |
static OdSmartPtr< OdDbSubentRef > | createObject (const OdDbCompoundObjectId &compId, const OdDbSubentId &subent=OdDbSubentId()) |
static OdSmartPtr< OdDbSubentRef > | createObject (const OdDbCompoundObjectId *pid, const OdDbSubentId &subentid=OdDbSubentId()) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Additional Inherited Members | |
Protected Member Functions inherited from OdRxObjectImpl< OdDbSubentRef > | |
ODRX_HEAP_OPERATORS () | |
Protected Member Functions inherited from OdDbSubentRef | |
void | setEntity (const OdDbCompoundObjectId &entityId) |
void | setSubent (const OdDbSubentId &subentId) |
void | setFromSubentPath (const OdDbFullSubentPath &pathSubEnt) |
This class represents a reference to a vertex object.
<group OdDb_Classes>
Definition at line 524 of file DbGeomRef.h.
Declares the implied types.
Definition at line 532 of file DbGeomRef.h.
OdDbVertexRef::OdDbVertexRef | ( | ) |
Constructor creates an instance of this class.
OdDbVertexRef::OdDbVertexRef | ( | const OdDbCompoundObjectId & | comId, |
const OdDbSubentId & | subentId = OdDbSubentId() , |
||
const OdGePoint3d & | point3d = OdGePoint3d::kOrigin |
||
) |
Sets the data members of the OdDbVertexRef.
comId | [in] Component id. |
subentId | [in] subentid. |
point3d | [in] face subentid. |
OdDbVertexRef::OdDbVertexRef | ( | const OdDbFullSubentPath & | fullPath | ) |
Creates the OdDbVertexRef from an entity in a block table recordand referenced via a path of block inserts.
fullPath | [in] Component id. |
OdDbVertexRef::OdDbVertexRef | ( | const OdDbEntity * | pEnt | ) |
Causes the OdDbVertexRef to maintain the OdDbObjectId of the given OdDbEntity. Moreover, if the entity is derived from OdDbPoint, it maintains its OdGePoint3d as OdGePoint3d.
pEnt | [in] given entity. |
OdDbVertexRef::OdDbVertexRef | ( | const OdGePoint3d & | point3d | ) |
The constructor causes the OdDbVertexRef to maintain the OdGePoint3d.
point3d | [in] given point. |
OdDbVertexRef::OdDbVertexRef | ( | ImpliedType | implType, |
const OdDbEdgeRef & | edgeRef, | ||
int | controlOrFitPointIndex = 0 , |
||
const OdGePoint3d & | point3d = OdGePoint3d::kOrigin |
||
) |
Creates the OdDbVertexRef from set of parameters.
implType | [in] implied type. |
controlOrFitPointIndex | [in] point index. |
point3d | [in] point. |
OdDbVertexRef::OdDbVertexRef | ( | const OdDbVertexRef & | src | ) |
Creates the OdDbVertexRef from other OdDbVertexRef.
src | [in] other OdDbVertexRef. |
|
virtual |
Destructor destroys an instance of this class.
|
virtual |
Initializes this reference using a given object.
other | [in] other vertex. |
Reimplemented from OdDbSubentRef.
|
virtual |
Creates an entity using this vertex reference.
Reimplemented from OdDbSubentRef.
|
static |
The method sets the data members of the OdDbVertexRef.
entId | [in] object id. |
subId | [in] subentid. |
point | [in] point. |
|
static |
Causes the OdDbVertexRef to maintain the OdGePoint3d.
point3d | [in] given point. |
|
virtual |
Checks whether this vertex reference is empty.
\If referencedRef() is not NULL, returns its OdDbCompoundObjectId, otherwise returns OdDbCompoundObjectId from the base-class OdDbSubentRef.
Reimplemented from OdDbSubentRef.
|
virtual |
Evaluates and caches the geometry.
Reimplemented from OdDbSubentRef.
|
virtual |
Evaluates the point from the referenced geometry. If no geometry, returns the cached point coordinates.
point | [out] evaluated point. |
ImpliedType OdDbVertexRef::impliedType | ( | ) | const |
Returns the implied type.
int OdDbVertexRef::index | ( | ) | const |
Returns the vertex index.
|
virtual |
Checks whether this vertex reference is valid.
Reimplemented from OdDbSubentRef.
OdDbVertexRef::ODRX_DECLARE_MEMBERS | ( | OdDbVertexRef | ) |
OdDbVertexRef & OdDbVertexRef::operator= | ( | const OdDbVertexRef & | other | ) |
Copies a given vertex reference to this reference.
other | [in] other vertex. |
OdGePoint3d OdDbVertexRef::point | ( | ) | const |
Returns the three-dimensional point directly held by this vertex reference.
const OdDbGeomRef * OdDbVertexRef::referencedRef | ( | ) | const |
Returns the geometry reference referenced by this vertex reference.
|
virtual |
Resets this vertex reference.
Reimplemented from OdDbSubentRef.
|
virtual |
Returns the subent ID.
Reimplemented from OdDbSubentRef.