CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbCompoundObjectId.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 license
16// 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 OdDbCompoundObjectId_INCLUDED
25#define OdDbCompoundObjectId_INCLUDED
26
27#include "RxObject.h"
28#include "DbObjectId.h"
29#include "IdArrays.h"
30
31class OdDbDwgFiler;
32class OdDbDxfFiler;
33
34class OdGeMatrix3d;
35class OdDbIdMapping;
36class OdDbCompoundObjectIdImpl;
37
38#include "TD_PackPush.h"
39
44class DBENT_EXPORT OdDbCompoundObjectId : public OdRxObject
45{
46public:
48
50
54 virtual void addRef() override;
55
61 virtual void release() ODRX_NOEXCEPT override;
62
66 virtual long numRefs() const override;
67
70
71 bool operator ==(const OdDbCompoundObjectId&) const;
72 bool operator !=(const OdDbCompoundObjectId& other) const;
73
75
77
79
81
82 void setEmpty();
83
84 OdResult set(const OdDbObjectId&, OdDbDatabase* pHostDatabase = NULL);
85
86 OdResult set(const OdDbCompoundObjectId&, OdDbDatabase* pHostDatabase = NULL);
87
88 OdResult set(const OdDbObjectId& id, const OdDbObjectIdArray& path, OdDbDatabase* pHostDatabase = NULL);
89
90 OdResult setFullPath(const OdDbObjectIdArray& fullPath, OdDbDatabase* pHostDatabase = NULL);
91
92 bool isEmpty() const;
93
94 bool isValid(int validityCheckingLevel = 1) const;
95
96 bool isExternal() const;
97
98 bool isSimpleObjectId() const;
99
101
102 bool remap(const OdDbIdMapping& idMap);
103
104 OdResult dwgOutFields(OdDbDwgFiler* pFiler, OdDbDatabase* pHostDatabase) const;
105
106 OdResult dwgInFields(OdDbDwgFiler* pFiler, int ownerVersion);
107
108 OdResult dxfOutFields(OdDbDxfFiler* pFiler, OdDbDatabase* pHostDatabase) const;
109
110 OdResult dxfInFields(OdDbDxfFiler* pFiler, OdDbDatabase* pHostDatabase, int ownerVersion);
111
113
118protected:
119 OdDbCompoundObjectId(OdDbCompoundObjectIdImpl*);
120
121 OdDbCompoundObjectIdImpl* m_pImpl;
122};
123
125
126
138
139#include "TD_PackPop.h"
140
141#endif
OdSmartPtr< OdDbCompoundObjectId > OdDbCompoundObjectIdPtr
OdSmartPtr< OdDbParentTransformOfChildPE > OdDbParentTransformOfChildPEPtr
#define DBENT_EXPORT
Definition DbExport.h:67
OdArray< OdDbObjectId, OdClrMemAllocator< OdDbObjectId > > OdDbObjectIdArray
Definition IdArrays.h:53
#define ODRX_NOEXCEPT
OdResult
Definition OdResult.h:29
bool isValid(int validityCheckingLevel=1) const
OdDbObjectId topId() const
OdResult getPath(OdDbObjectIdArray &path) const
OdResult dwgInFields(OdDbDwgFiler *pFiler, int ownerVersion)
OdResult set(const OdDbObjectId &, OdDbDatabase *pHostDatabase=NULL)
OdResult getTransform(OdGeMatrix3d &trans) const
bool isEmpty() const
static const OdDbCompoundObjectId & nullId()
OdResult setFullPath(const OdDbObjectIdArray &fullPath, OdDbDatabase *pHostDatabase=NULL)
virtual void release() ODRX_NOEXCEPT override
OdResult dxfOutFields(OdDbDxfFiler *pFiler, OdDbDatabase *pHostDatabase) const
virtual void addRef() override
OdResult dwgOutFields(OdDbDwgFiler *pFiler, OdDbDatabase *pHostDatabase) const
OdResult getFullPath(OdDbObjectIdArray &fullPath) const
OdDbCompoundObjectIdImpl * m_pImpl
bool remap(const OdDbIdMapping &idMap)
virtual long numRefs() const override
virtual ~OdDbCompoundObjectId()
OdResult dxfInFields(OdDbDxfFiler *pFiler, OdDbDatabase *pHostDatabase, int ownerVersion)
bool isSimpleObjectId() const
OdDbObjectId leafId() const
bool isExternal() const
ODRX_DECLARE_MEMBERS(OdDbCompoundObjectId)
virtual OdResult getParentTransformOfChild(const OdDbObject *pThisParent, const OdDbObjectId &childId, OdGeMatrix3d &)=0
ODRX_DECLARE_MEMBERS(OdDbParentTransformOfChildPE)