CFx SDK Documentation  2020SP3
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
OdResult
OdResult
Definition: OdResult.h:29
OdDbObjectContextOrdDimPE
Definition: DbObjectContextPE.h:197
OdDbObjectContext
Definition: DbObjectContext.h:49
OdDbObjectContextDefaultPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextDefaultPE)
OdDbObjectContextMLeaderPE
Definition: DbObjectContextPE.h:134
OdDbObjectContextDefaultPE::hasContext
virtual bool hasContext(const OdDbObject *, const OdDbObjectContext &) const
OdString
Definition: OdString.h:95
OdDbObjectContextPE::hasContext
virtual bool hasContext(const OdDbObject *, const OdDbObjectContext &) const
OdDbObjectContextRaDimLrgPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextPEPtr
OdSmartPtr< OdDbObjectContextPE > OdDbObjectContextPEPtr
Definition: DbObjectContextPE.h:83
OdDbObjectContextPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextPE)
OdDbObjectContextAttributePE::removeContext
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
OdDbObjectContextRaDimPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextDefaultPE
Definition: DbObjectContextPE.h:32
OdDbObjectContextDefaultPE::removeContext
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const
OdDbObjectContextBlkRefPE::removeContext
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
oddbGetContextDataAndScale
TOOLKIT_EXPORT bool oddbGetContextDataAndScale(class OdGiCommonDraw *pWd, const OdDbObject *pObject, OdDbAnnotScaleObjectContextDataPtr &ctx, double *scaleOut=0, bool getDefaultScale=false)
OdDbObjectContextOrdDimPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextBlkRefPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const ODRX_OVERRIDE
OdDbObjectContextAlDimPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextDmDimPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextDmDimPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextDmDimPE)
OdDbObjectContextAlDimPE
Definition: DbObjectContextPE.h:170
OdGiCommonDraw
Definition: GiCommonDraw.h:572
OdDbObjectContextTextPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextTextPE
Definition: DbObjectContextPE.h:109
OdDbObjectContextRaDimPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextRaDimPE)
OdDbObjectContextDmDimPE
Definition: DbObjectContextPE.h:188
OdDbObjectContextMLeaderPEPtr
OdSmartPtr< OdDbObjectContextMLeaderPE > OdDbObjectContextMLeaderPEPtr
Definition: DbObjectContextPE.h:140
OdDbObjectContextPE::addContext
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const
OdDbObjectContextHatchPE
Definition: DbObjectContextPE.h:86
OdDbObjectContextPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *pObj, const OdDbObjectContext &ctx, const OdDbObjectContext &def) const =0
OdDbObjectContextDimPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextDimPE)
OdDbObjectContextPE
Definition: DbObjectContextPE.h:44
OdDbObjectContextMLeaderPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const ODRX_OVERRIDE
OdSmartPtr
Definition: SmartPtr.h:58
OdDbObjectContextDimPE
Definition: DbObjectContextPE.h:159
OdDbObjectContextBlkRefPE::addContext
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
OdDbObjectContextMTextPE
Definition: DbObjectContextPE.h:101
OdDbObjectContextHatchPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const ODRX_OVERRIDE
OdDbObjectContextFcfPE
Definition: DbObjectContextPE.h:143
OdDbObjectContextTextPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextTextPE)
OdDbObjectContextAttributePE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextAttributePE)
OdDbObjectContextAlDimPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextAlDimPE)
OdDbObjectContextHatchPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextHatchPE)
OdDbObjectContextLeaderPE
Definition: DbObjectContextPE.h:127
DbObjectContextData.h
OdDbObjectContextLeaderPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextLeaderPE)
OdDbObjectContextMLeaderPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextMLeaderPE)
OdDbObjectContextTextPEPtr
OdSmartPtr< OdDbObjectContextTextPE > OdDbObjectContextTextPEPtr
Definition: DbObjectContextPE.h:114
OdDbObjectContextLeaderPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
DbObjectContextCollection.h
OdDbObjectContextAngDimPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextRaDimLrgPE
Definition: DbObjectContextPE.h:216
OdDbObjectContextFcfPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextFcfPE)
OdDbObjectContextDimPE::addContext
virtual OdResult addContext(OdDbObject *pObject, const OdDbObjectContext &ctx) const
OdDbObjectContextMTextPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextAngDimPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextAngDimPE)
OdDbObjectContextAttributePE::addContext
virtual OdResult addContext(OdDbObject *pObject, const OdDbObjectContext &ctx) const ODRX_OVERRIDE
OdDbObjectContextPE::getDefaultContextData
virtual OdDbObjectContextDataPtr getDefaultContextData(const OdDbObject *, const OdString &) const
OdDbObjectContextBlkRefPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextBlkRefPE)
DbObjectContextInterface.h
OdDbObjectContextAngDimPE
Definition: DbObjectContextPE.h:179
OdDbObjectContextPE::getContextData
virtual OdDbObjectContextDataPtr getContextData(const OdDbObject *, const OdDbObjectContext &) const
OdDbObjectContextOrdDimPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextOrdDimPE)
OdDbObjectContextRaDimPE
Definition: DbObjectContextPE.h:207
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbObjectContextDefaultPE::supportsCollection
virtual bool supportsCollection(const OdDbObject *, const OdString &) const
OdDbObjectContextRaDimLrgPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextRaDimLrgPE)
OdDbObjectContextBlkRefPE
Definition: DbObjectContextPE.h:149
OdDbObjectContextMTextPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbObjectContextMTextPE)
OdDbObjectContextPE::removeContext
virtual OdResult removeContext(OdDbObject *, const OdDbObjectContext &) const
OdDbObjectContextPE::supportsCollection
virtual bool supportsCollection(const OdDbObject *, const OdString &) const
OdDbObjectContextHatchPE::addContext
virtual OdResult addContext(OdDbObject *pObject, const OdDbObjectContext &ctx) const ODRX_OVERRIDE
OdDbObjectContextInterface
Definition: DbObjectContextInterface.h:45
OdDbObjectContextBlkRefPE::setDefaultContext
virtual OdResult setDefaultContext(OdDbObject *, const OdDbObjectContext &) ODRX_OVERRIDE
OdDbObjectContextPE::setDefaultContext
virtual OdResult setDefaultContext(OdDbObject *, const OdDbObjectContext &)
OdDbObject
Definition: DbObject.h:211
OdDbObjectContextMLeaderPE::addContext
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const ODRX_OVERRIDE
OdDbObjectContextDefaultPE::addContext
virtual OdResult addContext(OdDbObject *, const OdDbObjectContext &) const
OdDbObjectContextFcfPE::createContextData
virtual OdDbObjectContextDataPtr createContextData(const OdDbObject *, const OdDbObjectContext &, const OdDbObjectContext &def) const
OdDbObjectContextAttributePE
Definition: DbObjectContextPE.h:117