CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
AECSmartReference.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a
16// license agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef __AECSMARTREFERENCE_H__
25#define __AECSMARTREFERENCE_H__
26
27#include "AECBase.h"
28
38struct AECBASE_API AECSmartReference
39{
40 public:
59 enum Type
60 {
62 eBlock = 1,
65 };
66
67 public:
72 {
73 eType = eSimple;
74 cUnk1 = 0;
75 hObject = 0;
76 }
77
82 static const AECSmartReference createSimple ( const OdDbObjectId& idObj );
83
90 static const AECSmartReference createWithPath ( const OdDbObjectId& idObj, const OdDbObjectId& idPath );
91
96 static const AECSmartReference createPathNode ( OdDbDatabase* pPathDB, const OdDbObjectId& idBlockReference );
97
98 public:
103 bool isNull() const;
104
109 bool isValid( bool bSkipNotLoadedXREFs = false,
110 const OdRxClass* pTargetClass = 0 ) const;
111
117
122
127 OdResult getTransform( OdGeMatrix3d& mTransform ) const;
128
129 bool operator == ( const AECSmartReference& rRef ) const;
130 bool operator != ( const AECSmartReference& rRef ) const;
131
132 public:
133 // Type of smart reference.
135
136 // Major reference.
138
139 // Auxiliary reference.
141
142 // Value in front of handle string
143 // for XRef reference.
145
146 // Handle for XRef reference.
148
149 public:
150 AECBASE_API_STATIC static AECSmartReference kNull;
151};
152
153#endif // __AECSMARTREFERENCE_H__
bool operator!=(T left, const OdGiVariant::EnumType right)
Definition GiVariant.h:405
bool operator==(T left, const OdGiVariant::EnumType right)
Definition GiVariant.h:399
unsigned char OdUInt8
OdResult
Definition OdResult.h:29
OdDbObjectId getPathId() const
static const AECSmartReference createWithPath(const OdDbObjectId &idObj, const OdDbObjectId &idPath)
OdDbObjectId getTargetId() const
static const AECSmartReference createPathNode(OdDbDatabase *pPathDB, const OdDbObjectId &idBlockReference)
OdResult getTransform(OdGeMatrix3d &mTransform) const
static const AECSmartReference createSimple(const OdDbObjectId &idObj)
bool isNull() const
bool isValid(bool bSkipNotLoadedXREFs=false, const OdRxClass *pTargetClass=0) const
static AECBASE_API_STATIC AECSmartReference kNull