CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbObjectContextPE.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 _ODDBOBJECTCONTEXTPE_H_ICLUDED_
25#define _ODDBOBJECTCONTEXTPE_H_ICLUDED_
26
29#include "DbObjectContextData.h"
30
35{
36public:
39 virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
41 virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
42};
43
44class OdDbContextDataSubManager;
45
50{
51public:
54 virtual OdDbObjectContextDataPtr getDefaultContextData(const OdDbObject* ,const OdString& /*,bool*/) const;
56 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject* pObj,const OdDbObjectContext& ctx, const OdDbObjectContext& def) const = 0;
57 virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
59 virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
61 virtual void compose(OdDbObject* pObj);
62/*
63 virtual OdResult addContext(OdDbObject*,const OdDbObjectContext&,OdDbObjectContextData*) const;
64 virtual OdDbObjectContextCollection* contextCollection(const OdDbObject*,const OdString&) const;
65 virtual OdResult addCurrentContext(OdDbObject*,const OdString&,OdDbObjectContextData*) const;
66 //virtual OdResult copyContextData(const OdDbObject*,OdDbObject*) const;
67 virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
68 virtual OdResult deleteContextData(OdDbObject*) const;
69 virtual OdResult dwgInContextData(const OdDbObject*,OdDbDwgFiler*) const;
70 virtual OdResult dwgOutContextData(const OdDbObject*,OdDbDwgFiler*) const;
71 OdDbContextDataSubManager* getContextDataSubManager(const OdDbObject*,const OdDbObjectContext&,bool,bool) const;
72 OdDbContextDataSubManager* getContextDataSubManager(const OdDbObject*,const OdString&,bool,bool) const;
73 virtual OdResult getContexts(const OdDbObject*,const OdString&,OdRxObjectPtrArray&) const;
74 virtual OdDbObjectContextData* getCurrentContextData(const OdDbObject*,const OdString&,bool) const;
75 static OdDbObjectContextPE* getObjectContextPE(const OdDbObject*);
76 virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
77 virtual int numContexts(const OdDbObject*,const OdString&) const;
78 virtual OdResult removeAllContexts(OdDbObject*,const OdString&) const;
79 virtual OdResult removeContext(OdDbObject*,const OdDbObjectContext&) const;
80 virtual OdResult removeContext(OdDbObject*,OdDbObjectContextData*) const;
81 virtual OdResult replaceContext(OdDbObject*,OdDbObjectContextData*,bool) const;
82 virtual OdResult saveContextData(const OdDbObject*) const;
83 virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
84 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);
85 OdResult updateContextData(const OdDbObject*,void *) const;
86 static void init();
87 static void uninit();*/
88};
89
91
96{
97public:
100 virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const ODRX_OVERRIDE;
101/*
102 virtual OdDbObjectContextData* getContextData(const OdDbObject*,const OdDbObjectContext&) const;
103 virtual OdDbObjectContextData* getCurrentContextData(const OdDbObject*,const OdString&,bool) const;
104 virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
105 virtual OdResult removeAllContexts(OdDbObject*,const OdString&) const;
106 virtual OdResult removeContext(OdDbObject*,const OdDbObjectContext&) const;
107 virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
108 */
109};
110
115{
116public:
119 //virtual OdResult addContext(OdDbObject*,const OdDbObjectContext&,OdDbObjectContextData*) const;
120};
121
126{
127public:
130};
132
137{
138public:
140 virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const ODRX_OVERRIDE;
141 //FELIX_CHANGE_BEGIN
143 //FELIX_CHANGE_END
144};
145
150{
151public:
154};
155
160{
161public:
165};
167
172{
173public:
176};
177
182{
183public:
189 virtual void compose(OdDbObject*);
190};
191
196{
197public:
199 virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const;
200/* virtual void * contextDataManager(const OdDbObject*,bool) const;
201 virtual OdDbObjectContextData* createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
202 virtual OdResult dwgInContextData(const OdDbObject*,OdDbDwgFiler*) const;
203 virtual OdResult saveContextDataManager(OdDbObject*,void *) const;
204 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
205};
206
211{
212public:
215/* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
216 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
217 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
218};
219
224{
225public:
228/* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
229 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
230 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
231};
232
237{
238public:
241/* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
242 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
243 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
244};
245
250{
251public:
254/* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
255 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
256 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
257};
258
263{
264public:
267/* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
268 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
269 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
270};
271
276{
277public:
280/* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
281 virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
282 virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
283};
284
285TOOLKIT_EXPORT bool oddbGetContextDataAndScale(class OdGiCommonDraw* pWd, const OdDbObject* pObject, OdDbAnnotScaleObjectContextDataPtr& ctx, double* scaleOut = 0, bool getDefaultScale = false);
286
287#endif
#define DBENT_EXPORT
Definition: DbExport.h:67
#define DBDIM_EXPORT
Definition: DbExport.h:72
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
TOOLKIT_EXPORT bool oddbGetContextDataAndScale(class OdGiCommonDraw *pWd, const OdDbObject *pObject, OdDbAnnotScaleObjectContextDataPtr &ctx, double *scaleOut=0, bool getDefaultScale=false)
OdSmartPtr< OdDbObjectContextPE > OdDbObjectContextPEPtr
OdSmartPtr< OdDbObjectContextTextPE > OdDbObjectContextTextPEPtr
OdSmartPtr< OdDbObjectContextMLeaderPE > OdDbObjectContextMLeaderPEPtr
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
ODRX_DECLARE_MEMBERS(OdDbObjectContextAlDimPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextAngDimPE)
ODRX_DECLARE_MEMBERS(OdDbObjectContextAttributePE)
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
virtual OdResult addContext(OdDbObject *pObject, const OdDbObjectContext &ctx) const ODRX_OVERRIDE
virtual void compose(OdDbObject *)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const ODRX_OVERRIDE
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
virtual OdResult setDefaultContext(OdDbObject *, const OdDbObjectContext &) ODRX_OVERRIDE
ODRX_DECLARE_MEMBERS(OdDbObjectContextBlkRefPE)
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
virtual bool supportsCollection(const OdDbObject *, const OdString &) const
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const
virtual bool hasContext(const OdDbObject *, const OdDbObjectContext &) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextDefaultPE)
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextDimPE)
virtual OdResult addContext(OdDbObject *pObject, const OdDbObjectContext &ctx) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextDmDimPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextFcfPE)
ODRX_DECLARE_MEMBERS(OdDbObjectContextHatchPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const ODRX_OVERRIDE
virtual OdResult addContext(OdDbObject *pObject, const OdDbObjectContext &ctx) const ODRX_OVERRIDE
ODRX_DECLARE_MEMBERS(OdDbObjectContextLeaderPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const ODRX_OVERRIDE
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
ODRX_DECLARE_MEMBERS(OdDbObjectContextMLeaderPE)
ODRX_DECLARE_MEMBERS(OdDbObjectContextMTextPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextOrdDimPE)
virtual OdResult setDefaultContext(OdDbObject *, const OdDbObjectContext &)
virtual OdDbObjectContextDataPtr getDefaultContextData(const OdDbObject *, const OdString &) const
virtual bool supportsCollection(const OdDbObject *, const OdString &) const
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *pObj, const OdDbObjectContext &ctx, const OdDbObjectContext &def) const =0
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const
virtual void compose(OdDbObject *pObj)
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const
virtual OdDbObjectContextDataPtr getContextData(const OdDbObject *, const OdDbObjectContext &) const
virtual bool hasContext(const OdDbObject *, const OdDbObjectContext &) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextRaDimLrgPE)
ODRX_DECLARE_MEMBERS(OdDbObjectContextRaDimPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
ODRX_DECLARE_MEMBERS(OdDbObjectContextTextPE)
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const