CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbCompoundObjectId.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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
45{
46public:
48
50
54 void addRef();
55
61 void release();
62
66 long numRefs() const;
67
70
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
116protected:
117 OdDbCompoundObjectId(OdDbCompoundObjectIdImpl*);
118
119 OdDbCompoundObjectIdImpl* m_pImpl;
120};
121
123
129{
130public:
132 virtual OdResult getParentTransformOfChild(const OdDbObject* pThisParent, const OdDbObjectId& childId, OdGeMatrix3d&) = 0;
133};
135
136#include "TD_PackPop.h"
137
138#endif
OdSmartPtr< OdDbCompoundObjectId > OdDbCompoundObjectIdPtr
OdSmartPtr< OdDbParentTransformOfChildPE > OdDbParentTransformOfChildPEPtr
#define DBENT_EXPORT
Definition: DbExport.h:67
bool operator!=(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:403
bool operator==(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:397
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)
OdDbCompoundObjectId(OdDbCompoundObjectIdImpl *)
OdResult getTransform(OdGeMatrix3d &trans) const
bool isEmpty() const
static const OdDbCompoundObjectId & nullId()
OdResult setFullPath(const OdDbObjectIdArray &fullPath, OdDbDatabase *pHostDatabase=NULL)
OdDbCompoundObjectId(const OdDbCompoundObjectId &other)
OdResult dxfOutFields(OdDbDxfFiler *pFiler, OdDbDatabase *pHostDatabase) const
OdResult dwgOutFields(OdDbDwgFiler *pFiler, OdDbDatabase *pHostDatabase) const
OdResult getFullPath(OdDbObjectIdArray &fullPath) const
OdDbCompoundObjectIdImpl * m_pImpl
bool remap(const OdDbIdMapping &idMap)
long numRefs() const
OdResult set(const OdDbObjectId &id, const OdDbObjectIdArray &path, OdDbDatabase *pHostDatabase=NULL)
virtual ~OdDbCompoundObjectId()
OdResult dxfInFields(OdDbDxfFiler *pFiler, OdDbDatabase *pHostDatabase, int ownerVersion)
bool isSimpleObjectId() const
OdDbObjectId leafId() const
OdResult set(const OdDbCompoundObjectId &, OdDbDatabase *pHostDatabase=NULL)
bool isExternal() const
ODRX_DECLARE_MEMBERS(OdDbCompoundObjectId)
virtual OdResult getParentTransformOfChild(const OdDbObject *pThisParent, const OdDbObjectId &childId, OdGeMatrix3d &)=0
ODRX_DECLARE_MEMBERS(OdDbParentTransformOfChildPE)