CFx SDK Documentation  2022 SP0
DbObjectContextPE.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
32 {
33 public:
36  virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
38  virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
39 };
40 
41 class OdDbContextDataSubManager;
42 
44 {
45 public:
48  virtual OdDbObjectContextDataPtr getDefaultContextData(const OdDbObject* ,const OdString& /*,bool*/) const;
50  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject* pObj,const OdDbObjectContext& ctx, const OdDbObjectContext& def) const = 0;
51  virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
53  virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
55 /*
56  virtual OdResult addContext(OdDbObject*,const OdDbObjectContext&,OdDbObjectContextData*) const;
57  virtual OdDbObjectContextCollection* contextCollection(const OdDbObject*,const OdString&) const;
58  virtual OdResult addCurrentContext(OdDbObject*,const OdString&,OdDbObjectContextData*) const;
59  //virtual OdResult copyContextData(const OdDbObject*,OdDbObject*) const;
60  virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
61  virtual OdResult deleteContextData(OdDbObject*) const;
62  virtual OdResult dwgInContextData(const OdDbObject*,OdDbDwgFiler*) const;
63  virtual OdResult dwgOutContextData(const OdDbObject*,OdDbDwgFiler*) const;
64  OdDbContextDataSubManager* getContextDataSubManager(const OdDbObject*,const OdDbObjectContext&,bool,bool) const;
65  OdDbContextDataSubManager* getContextDataSubManager(const OdDbObject*,const OdString&,bool,bool) const;
66  virtual OdResult getContexts(const OdDbObject*,const OdString&,OdRxObjectPtrArray&) const;
67  virtual OdDbObjectContextData* getCurrentContextData(const OdDbObject*,const OdString&,bool) const;
68  static OdDbObjectContextPE* getObjectContextPE(const OdDbObject*);
69  virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
70  virtual int numContexts(const OdDbObject*,const OdString&) const;
71  virtual OdResult removeAllContexts(OdDbObject*,const OdString&) const;
72  virtual OdResult removeContext(OdDbObject*,const OdDbObjectContext&) const;
73  virtual OdResult removeContext(OdDbObject*,OdDbObjectContextData*) const;
74  virtual OdResult replaceContext(OdDbObject*,OdDbObjectContextData*,bool) const;
75  virtual OdResult saveContextData(const OdDbObject*) const;
76  virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
77  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);
78  OdResult updateContextData(const OdDbObject*,void *) const;
79  static void init();
80  static void uninit();*/
81 };
82 
84 
86 {
87 public:
90  virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const ODRX_OVERRIDE;
91 /*
92  virtual OdDbObjectContextData* getContextData(const OdDbObject*,const OdDbObjectContext&) const;
93  virtual OdDbObjectContextData* getCurrentContextData(const OdDbObject*,const OdString&,bool) const;
94  virtual bool hasContext(const OdDbObject*,const OdDbObjectContext&) const;
95  virtual OdResult removeAllContexts(OdDbObject*,const OdString&) const;
96  virtual OdResult removeContext(OdDbObject*,const OdDbObjectContext&) const;
97  virtual bool supportsCollection(const OdDbObject*,const OdString&) const;
98  */
99 };
101 {
102 public:
105  //virtual OdResult addContext(OdDbObject*,const OdDbObjectContext&,OdDbObjectContextData*) const;
106 };
107 
109 {
110 public:
113 };
115 
117 {
118 public:
120  virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const ODRX_OVERRIDE;
121  //FELIX_CHANGE_BEGIN
123  //FELIX_CHANGE_END
124 };
125 
127 {
128 public:
131 };
132 
134 {
135 public:
139 };
141 
143 {
144 public:
147 };
149 {
150 public:
156 };
157 
159 {
160 public:
162  virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const;
163 /* virtual void * contextDataManager(const OdDbObject*,bool) const;
164  virtual OdDbObjectContextData* createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
165  virtual OdResult dwgInContextData(const OdDbObject*,OdDbDwgFiler*) const;
166  virtual OdResult saveContextDataManager(OdDbObject*,void *) const;
167  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
168 };
170 {
171 public:
174 /* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
175  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
176  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
177 };
179 {
180 public:
183 /* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
184  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
185  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
186 };
188 {
189 public:
192 /* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
193  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
194  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
195 };
197 {
198 public:
201 /* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
202  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
203  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
204 };
205 
207 {
208 public:
211 /* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
212  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
213  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
214 };
216 {
217 public:
220 /* virtual OdDbObjectContextData* copyExtDictContextData(const OdDbObject*,OdDbObjectContextData*) const;
221  virtual OdDbObjectContextDataPtr createContextData(const OdDbObject*,const OdString&,const OdDbObjectContext*,OdDbObjectContextData*,const OdDbContextDataSubManager*) const;
222  virtual OdResult synchronizeContextData(const OdDbObject*,const OdDbObjectContext&);*/
223 };
224 
225 TOOLKIT_EXPORT bool oddbGetContextDataAndScale(class OdGiCommonDraw* pWd, const OdDbObject* pObject, OdDbAnnotScaleObjectContextDataPtr& ctx, double* scaleOut = 0, bool getDefaultScale = false);
226 
227 #endif
#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 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 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