CFx SDK Documentation
2023 SP0
|
#include <AECSmartReference.h>
Public Types | |
enum | Type { eSimple = 0 , eBlock = 1 , eBlockReference = 2 , eXRef = 3 } |
Public Member Functions | |
AECSmartReference () | |
bool | isNull () const |
bool | isValid (bool bSkipNotLoadedXREFs=false, const OdRxClass *pTargetClass=0) const |
OdDbObjectId | getTargetId () const |
OdDbObjectId | getPathId () const |
OdResult | getTransform (OdGeMatrix3d &mTransform) const |
bool | operator== (const AECSmartReference &rRef) const |
bool | operator!= (const AECSmartReference &rRef) const |
Static Public Member Functions | |
static const AECSmartReference | createSimple (const OdDbObjectId &idObj) |
static const AECSmartReference | createWithPath (const OdDbObjectId &idObj, const OdDbObjectId &idPath) |
static const AECSmartReference | createPathNode (OdDbDatabase *pPathDB, const OdDbObjectId &idBlockReference) |
Public Attributes | |
Type | eType |
OdDbObjectId | idRef1 |
OdDbObjectId | idRef2 |
OdUInt8 | cUnk1 |
OdDbHandle | hObject |
Static Public Attributes | |
static AECBASE_API_STATIC AECSmartReference | kNull |
AEC Smart reference.
<group TA_API_Auxiliary_Classes>
Definition at line 38 of file AECSmartReference.h.
The type of smart reference.
Enumerator | |
---|---|
eSimple | |
eBlock | |
eBlockReference | |
eXRef |
Definition at line 59 of file AECSmartReference.h.
|
inline |
Default constructor.
Definition at line 71 of file AECSmartReference.h.
|
static |
Creates eSimple or eBlock reference for AECDbBlockRefPath (idBlockReference should be id of OdDbBlockReference )
|
static |
Creates a simple reference (idObj should be from the database where the reference will be used )
|
static |
Creates an eBlockReference or eXRef reference with a path (idPath should be from the database where the reference will be used (not an XREF one!), idObj can be in the same database (eBlockReference) or in XREF ) Returns null reference, if the the path and the object do not match
OdDbObjectId AECSmartReference::getPathId | ( | ) | const |
Returns AECDbBlockRefPath object id, if the path is present
OdDbObjectId AECSmartReference::getTargetId | ( | ) | const |
Returns object ID of referenced object. Returns null id, if target id can`t be obtained (e.g. XREF was not loaded )
OdResult AECSmartReference::getTransform | ( | OdGeMatrix3d & | mTransform | ) | const |
Returns product of blockTransform()s of all block references in this path.
bool AECSmartReference::isNull | ( | ) | const |
Returns whether this reference is null regardless of type.
bool AECSmartReference::isValid | ( | bool | bSkipNotLoadedXREFs = false , |
const OdRxClass * | pTargetClass = 0 |
||
) | const |
Returns true, if this reference points to a valid object and all intermediate references are valid.
bool AECSmartReference::operator!= | ( | const AECSmartReference & | rRef | ) | const |
bool AECSmartReference::operator== | ( | const AECSmartReference & | rRef | ) | const |
OdUInt8 AECSmartReference::cUnk1 |
Definition at line 146 of file AECSmartReference.h.
Type AECSmartReference::eType |
Definition at line 136 of file AECSmartReference.h.
OdDbHandle AECSmartReference::hObject |
Definition at line 149 of file AECSmartReference.h.
OdDbObjectId AECSmartReference::idRef1 |
Definition at line 139 of file AECSmartReference.h.
OdDbObjectId AECSmartReference::idRef2 |
Definition at line 142 of file AECSmartReference.h.
|
static |
Definition at line 152 of file AECSmartReference.h.