CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbSynergy.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 OD_SYNERGY_H
25#define OD_SYNERGY_H
26
27#include "DbObject.h"
28#include "ModelDocObjExports.h"
29#include "UInt64Array.h"
30#include "RxIterator.h"
31
32#include "TD_PackPush.h"
33
34class OdDbSynergyLayerMappingImpl;
35class OdDbIdwViewMappingImpl;
36class OdDbIdwSheetMappingImpl;
37
54
55#define SYRX_DECLARE_MEMBERS(ClassName) \
56protected: \
57 ClassName(ClassName##Impl* pImpl); \
58public: \
59ODRX_DECLARE_MEMBERS (ClassName)
60
61
67public:
69
72
73 void layerIds(OdDbObjectIdArray& ids) const;
77
79 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
81 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
82
83protected:
84 friend class OdDbSynergyMappings;
85 OdDbSynergyLayerMappingImpl* m_pImpl;
86};
87
89
118
120
125class MODELDOCOBJ_EXPORT OdDbIdwSheetMapping : public OdRxObject {
126public:
128
131
134
137
139 //OdResult invalidIds(OdUInt64Array& outIds) const;
140 OdResult update(OdUInt64Array* outUpdatedIds = 0);
144 OdDbIdwViewMapping* addIdwViewMapping(OdUInt64 _inventorViewId, OdDbObjectId _viewportId, OdDbObjectId _viewRepId);
151
152 class Iterator : public OdRxIterator {
153 public:
158 };
160
162
163 // OdDbObject methods :
165 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
167 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
168
169#ifndef ODMD_IDW_EDITING_SUPPORTED
171#endif
172protected:
176
178private:
179// void eraseViewMappings();
180};
181
183
184
192{
193public:
195
198
200 //OdResult allLayoutIds(OdDbObjectIdArray&) const;
201 //OdResult invalidIds(OdArray<unsigned long>&, OdArray<OdUInt64>&) const;
204 //OdResult update(OdArray<unsigned long>&, OdArray<OdUInt64>&);
207 //bool eraseIdwSheetMappingBySheetId(unsigned long);
208 //OdDbIdwSheetMapping* addIdwSheetMapping(unsigned long,OdDbObjectId);
213 void addMapping(OdDbIdwSheetMapping* sheetMapping);
214
215 // OdDbObject methods :
217 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
219 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
220 // virtual subErase
221 void subClose() override;
222
223 static OdDbObjectId fromDb(OdDbDatabase* db, bool create = false);
224
226//private:
227// void eraseIdwSheetMappings();
228};
229
234
241//class MODELDOCOBJ_EXPORT OdDbSynergyBulletin : public OdDbObject
242//{
243//public:
244// ODDB_DECLARE_MEMBERS(OdDbSynergyBulletin);
245// OdDbSynergyBulletin();
246// virtual ~OdDbSynergyBulletin();
247//
248//protected:
249// // OdDbObject methods :
250// virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
251// virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
252// virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
253// virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
254//};
255
259//typedef OdSmartPtr<OdDbSynergyBulletin> OdDbSynergyBulletinPtr;
260
261#include "TD_PackPop.h"
262
263#endif // OD_SYNERGY_H
OdSmartPtr< OdDbSynergyLayerMapping > OdDbSynergyLayerMappingPtr
Definition DbSynergy.h:88
OdSmartPtr< OdDbIdwSheetMapping > OdDbIdwSheetMappingPtr
Definition DbSynergy.h:182
OdSmartPtr< OdDbIdwViewMapping > OdDbIdwViewMappingPtr
Definition DbSynergy.h:119
OdSmartPtr< OdDbSynergyMappings > OdDbSynergyMappingsPtr
Definition DbSynergy.h:233
OdArray< OdDbObjectId, OdClrMemAllocator< OdDbObjectId > > OdDbObjectIdArray
Definition IdArrays.h:53
#define MODELDOCOBJ_EXPORT
unsigned int OdUInt32
OdResult
Definition OdResult.h:29
OdArray< OdUInt64, OdMemoryAllocator< OdUInt64 > > OdUInt64Array
virtual OdDbIdwViewMappingPtr idwViewMapping() const =0
const OdDbIdwViewMapping * idwViewMappingByViewId(OdUInt64) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
bool eraseViewMappingByViewRepId(OdDbObjectId)
OdDbIdwViewMapping * idwViewMappingByViewportId(OdDbObjectId)
friend class OdDbIdwSheetMappingIterator
Definition DbSynergy.h:173
friend class OdDbIdwSheetMappingImpl
Definition DbSynergy.h:174
const OdDbIdwViewMapping * idwViewMappingByViewRepId(OdDbObjectId) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
IteratorPtr newIterator()
OdSmartPtr< Iterator > IteratorPtr
Definition DbSynergy.h:159
bool hasInventorModelDocViews() const
friend class OdDbSynergyMappings
Definition DbSynergy.h:175
OdDbIdwViewMapping * addIdwViewMapping(OdUInt64 _inventorViewId, OdDbObjectId _viewportId, OdDbObjectId _viewRepId)
virtual ~OdDbIdwSheetMapping()
const OdDbIdwViewMapping * idwViewMappingByViewportId(OdDbObjectId) const
void setLayoutId(OdDbObjectId)
OdDbIdwViewMapping * idwViewMappingByViewId(OdUInt64)
OdDbIdwSheetMappingImpl * m_pImpl
Definition DbSynergy.h:177
OdResult update(OdUInt64Array *outUpdatedIds=0)
OdUInt64 nextIdwViewId() const
bool eraseViewMappingByViewportId(OdDbObjectId)
OdUInt32 idwSheetId() const
OdDbObjectId layoutId() const
OdDbIdwViewMapping * idwViewMappingByViewRepId(OdDbObjectId)
void setIdwSheetId(OdUInt32 id)
bool eraseViewMappingByViewId(OdUInt64)
SYRX_DECLARE_MEMBERS(OdDbIdwSheetMapping)
friend class OdDbIdwViewMappingImpl
Definition DbSynergy.h:115
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setViewRepId(OdDbObjectId)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbIdwViewMappingImpl * m_pImpl
Definition DbSynergy.h:116
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdUInt64 inventorViewId() const
void setInventorViewId(OdUInt64)
SYRX_DECLARE_MEMBERS(OdDbIdwViewMapping)
void setViewportId(OdDbObjectId)
OdDbObjectId viewportId() const
virtual ~OdDbIdwViewMapping()
OdDbObjectId viewRepId() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbSynergyLayerMappingImpl * m_pImpl
Definition DbSynergy.h:85
friend class OdDbSynergyMappings
Definition DbSynergy.h:84
void layerIds(OdDbObjectIdArray &ids) const
bool layerId(OdSynergyObj::ViewEdgeLayerStyleType edgeStyle, OdDbObjectId &id) const
void removeLayerId(OdSynergyObj::ViewEdgeLayerStyleType edgeStyle)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual ~OdDbSynergyLayerMapping()
void addLayerId(OdSynergyObj::ViewEdgeLayerStyleType edgeStyle, OdDbObjectId id)
SYRX_DECLARE_MEMBERS(OdDbSynergyLayerMapping)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
bool eraseIdwSheetMappingByLayoutId(OdDbObjectId layoutId)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void addMapping(OdDbIdwSheetMapping *sheetMapping)
bool hasInventorModelDocViews() const
virtual ~OdDbSynergyMappings()
const OdDbSynergyLayerMapping & layerMapping() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
static OdDbObjectId fromDb(OdDbDatabase *db, bool create=false)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
const OdDbIdwSheetMapping * idwSheetMappingByLayoutId(OdDbObjectId) const
OdUInt32 nextIdwLayoutId() const
void subClose() override
OdDbIdwSheetMapping * idwSheetMappingByLayoutId(OdDbObjectId)
OdDbSynergyLayerMapping & layerMapping()
const OdDbIdwSheetMapping * idwSheetMappingBySheetId(unsigned long) const
bool eraseAllIdwSheetMappings()
OdDbIdwSheetMapping * idwSheetMappingBySheetId(unsigned long)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
ODDB_DECLARE_MEMBERS(OdDbSynergyMappings)