Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbBlockRepresentationContext.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbBlockRepresentationContext(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbBlockRepresentationContext_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbBlockRepresentationContext obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate, bool loadIndstanceData) {
46 }
47
48 public void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate) {
51 }
52
56 }
57
58 public void loadInstanceData(bool bRequireEvaluate, bool noHistoryData) {
59 TD_DbPINVOKE.OdDbBlockRepresentationContext_loadInstanceData__SWIG_0(swigCPtr, bRequireEvaluate, noHistoryData);
61 }
62
63 public void loadInstanceData(bool bRequireEvaluate) {
66 }
67
68 public void loadInstanceData() {
71 }
72
73 public void compactRepresentation() {
76 }
77
81 return ret;
82 }
83
87 return ret;
88 }
89
90 public static void tagBlockRecord(OdDbBlockTableRecord repBTR, OdDbHandle originalBlockHandle) {
93 }
94
95 public static void clearRepBlock(OdDbBlockTableRecord repRTR) {
98 }
99
100 public void createRepresentation(bool copied) {
103 }
104
105 public void createRepresentation() {
108 }
109
110 public void addHistoryRecord(String name, OdResBuf value, uint node) {
113 }
114
115 public OdDbXrecord getHistoryRecord() {// OdDbXrecordPtr
116 MemoryManager mMan = MemoryManager.GetMemoryManager();
117 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
119
120 OdDbXrecord ret = null;
121 if (null != mTrans)
122 {
123 mTrans.AddObject((OdDbXrecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbXrecord),ptr, true));
124 ret = (OdDbXrecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbXrecord),ptr, false);
125 }
126 else
127 {
128 ret = (OdDbXrecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbXrecord),ptr, true);
129 }
130
132 return ret;
133}
134
135 public bool applyHistory(OdResBuf pRb) {
138 return ret;
139 }
140
141 public void updateRepresentation() {
144 }
145
147 MemoryManager mMan = MemoryManager.GetMemoryManager();
148 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
150
151 OdDbObjectId ret = null;
152 if (null != mTrans)
153 {
154 mTrans.AddObject(new OdDbObjectId(ptr, true));
155 ret = new OdDbObjectId(ptr, false);
156 }
157 else
158 {
159 ret = new OdDbObjectId(ptr, true);
160 }
161
163 return ret;
164}
165
167 MemoryManager mMan = MemoryManager.GetMemoryManager();
168 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
170
171 OdDbObjectId ret = null;
172 if (null != mTrans)
173 {
174 mTrans.AddObject(new OdDbObjectId(ptr, true));
175 ret = new OdDbObjectId(ptr, false);
176 }
177 else
178 {
179 ret = new OdDbObjectId(ptr, true);
180 }
181
183 return ret;
184}
185
186 public OdDbEvalExpr getRepresentationNode(uint id) {// OdDbEvalExprPtr
187 MemoryManager mMan = MemoryManager.GetMemoryManager();
188 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
190
191 OdDbEvalExpr ret = null;
192 if (null != mTrans)
193 {
194 mTrans.AddObject((OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalExpr),ptr, true));
195 ret = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalExpr),ptr, false);
196 }
197 else
198 {
199 ret = (OdDbEvalExpr)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalExpr),ptr, true);
200 }
201
203 return ret;
204}
205
206 public OdDbBlockReference getReference() {// OdDbBlockReferencePtr
207 MemoryManager mMan = MemoryManager.GetMemoryManager();
208 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
210
211 OdDbBlockReference ret = null;
212 if (null != mTrans)
213 {
214 mTrans.AddObject((OdDbBlockReference)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockReference),ptr, true));
215 ret = (OdDbBlockReference)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockReference),ptr, false);
216 }
217 else
218 {
219 ret = (OdDbBlockReference)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockReference),ptr, true);
220 }
221
223 return ret;
224}
225
226 public OdDbEvalGraph getGraph() {// OdDbEvalGraphPtr
227 MemoryManager mMan = MemoryManager.GetMemoryManager();
228 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
230
231 OdDbEvalGraph ret = null;
232 if (null != mTrans)
233 {
234 mTrans.AddObject((OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalGraph),ptr, true));
235 ret = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalGraph),ptr, false);
236 }
237 else
238 {
239 ret = (OdDbEvalGraph)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEvalGraph),ptr, true);
240 }
241
243 return ret;
244}
245
246 public OdDbBlockTableRecord getBlock() {// OdDbBlockTableRecordPtr
247 MemoryManager mMan = MemoryManager.GetMemoryManager();
248 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
250
251 OdDbBlockTableRecord ret = null;
252 if (null != mTrans)
253 {
254 mTrans.AddObject((OdDbBlockTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockTableRecord),ptr, true));
255 ret = (OdDbBlockTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockTableRecord),ptr, false);
256 }
257 else
258 {
259 ret = (OdDbBlockTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbBlockTableRecord),ptr, true);
260 }
261
263 return ret;
264}
265
266 public void writeUndo(OdDbEvalGraph gr) {
269 }
270
271 public void readUndo(OdDbObjectId refId, OdDbDwgFiler pFiler) {
274 }
275
278
280 return ret;
281}
282
285
287 return ret;
288}
289
290 public OdDbAttribute getAttribute(OdDbAttributeDefinition arg0) {// OdDbAttributePtr
291 MemoryManager mMan = MemoryManager.GetMemoryManager();
292 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
294
295 OdDbAttribute ret = null;
296 if (null != mTrans)
297 {
298 mTrans.AddObject((OdDbAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttribute),ptr, true));
299 ret = (OdDbAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttribute),ptr, false);
300 }
301 else
302 {
303 ret = (OdDbAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbAttribute),ptr, true);
304 }
305
307 return ret;
308}
309
313 return ret;
314 }
315
319 return ret;
320 }
321
323 MemoryManager mMan = MemoryManager.GetMemoryManager();
324 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
326
327 OdDbObjectId ret = null;
328 if (null != mTrans)
329 {
330 mTrans.AddObject(new OdDbObjectId(ptr, true));
331 ret = new OdDbObjectId(ptr, false);
332 }
333 else
334 {
335 ret = new OdDbObjectId(ptr, true);
336 }
337
339 return ret;
340}
341
342 public void setBlockUpdateMode(bool b) {
345 }
346
347 public bool blockUpdateMode() {
350 return ret;
351 }
352
354 MemoryManager mMan = MemoryManager.GetMemoryManager();
355 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
357
358 OdDbObjectId ret = null;
359 if (null != mTrans)
360 {
361 mTrans.AddObject(new OdDbObjectId(ptr, true));
362 ret = new OdDbObjectId(ptr, false);
363 }
364 else
365 {
366 ret = new OdDbObjectId(ptr, true);
367 }
368
370 return ret;
371}
372
373 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
374 string ret = TD_DbPINVOKE.OdDbBlockRepresentationContext_getRealClassName(ptr /*SIMPLETYPE*/);
376 return ret;
377 }
378
379}
380
381}
static HandleRef getCPtr(OdDbHandle obj)
Definition: OdDbHandle.cs:26
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static HandleRef getCPtr(OdDbAttributeDefinition obj)
static HandleRef getCPtr(OdDbBlockReference obj)
static OdDbBlockRepresentationContext getRepresentationContext(OdDbBlockReference br, bool validate)
void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate, bool loadIndstanceData)
bool representationPathToOriginalPath(OdDbObjectIdArray arg0)
static HandleRef getCPtr(OdDbBlockRepresentationContext obj)
void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr)
static OdDbBlockRepresentationContext getRepresentationContext(OdDbBlockReference br)
static void clearRepBlock(OdDbBlockTableRecord repRTR)
void loadInstanceData(bool bRequireEvaluate, bool noHistoryData)
void init(OdDbDynBlockReference ref_, OdDbBlockReference dbref, OdDbEvalGraph gr, bool bRequireEvaluate)
static void tagBlockRecord(OdDbBlockTableRecord repBTR, OdDbHandle originalBlockHandle)
bool originalPathToRepresentationPath(OdDbObjectIdArray arg0, OdDbEntityPtrArray res)
OdDbAttribute getAttribute(OdDbAttributeDefinition arg0)
void readUndo(OdDbObjectId refId, OdDbDwgFiler pFiler)
void addHistoryRecord(String name, OdResBuf value, uint node)
OdDbBlockRepresentationContext(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdDbBlockTableRecord obj)
static HandleRef getCPtr(OdDbDwgFiler obj)
Definition: OdDbDwgFiler.cs:26
static HandleRef getCPtr(OdDbDynBlockReference obj)
static HandleRef getCPtr(OdDbEntityPtrArray obj)
static HandleRef getCPtr(OdDbEvalGraph obj)
static HandleRef getCPtr(OdDbObjectIdArray obj)
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static HandleRef getCPtr(OdResBuf obj)
Definition: OdResBuf.cs:26
static global::System.Exception Retrieve()
static void OdDbBlockRepresentationContext_init__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, bool jarg5, bool jarg6)
static IntPtr OdDbBlockRepresentationContext_getRepresentationContext__SWIG_0(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getBlockHData(HandleRef jarg1)
static void OdDbBlockRepresentationContext_writeUndo(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbBlockRepresentationContext_getHistoryRecord(HandleRef jarg1)
static global::System.IntPtr OdDbBlockRepresentationContext_getRepresentation(HandleRef jarg1)
static void OdDbBlockRepresentationContext_createRepresentation__SWIG_1(HandleRef jarg1)
static void OdDbBlockRepresentationContext_loadInstanceData__SWIG_0(HandleRef jarg1, bool jarg2, bool jarg3)
static void delete_OdDbBlockRepresentationContext(HandleRef jarg1)
static IntPtr OdDbBlockRepresentationContext_getBlock(HandleRef jarg1)
static bool OdDbBlockRepresentationContext_originalPathToRepresentationPath(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDbBlockRepresentationContext_loadInstanceData__SWIG_1(HandleRef jarg1, bool jarg2)
static IntPtr OdDbBlockRepresentationContext_getReference(HandleRef jarg1)
static void OdDbBlockRepresentationContext_tagBlockRecord(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbBlockRepresentationContext_updateRepresentation(HandleRef jarg1)
static global::System.IntPtr OdDbBlockRepresentationContext_getRelativeMatrix(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getBlockData(HandleRef jarg1)
static IntPtr OdDbBlockRepresentationContext_getAttribute(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbBlockRepresentationContext_getGraph(HandleRef jarg1)
static void OdDbBlockRepresentationContext_addHistoryRecord(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3, uint jarg4)
static bool OdDbBlockRepresentationContext_blockUpdateMode(HandleRef jarg1)
static IntPtr OdDbBlockRepresentationContext_getRepresentationNode(HandleRef jarg1, uint jarg2)
static void OdDbBlockRepresentationContext_compactRepresentation(HandleRef jarg1)
static bool OdDbBlockRepresentationContext_applyHistory(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getRelativeOffset(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbBlockRepresentationContext_representationPathToOriginalPath(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbBlockRepresentationContext_init__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4)
static void OdDbBlockRepresentationContext_clearRepBlock(HandleRef jarg1)
static void OdDbBlockRepresentationContext_createRepresentation__SWIG_0(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbBlockRepresentationContext_getOriginal(HandleRef jarg1)
static string OdDbBlockRepresentationContext_getRealClassName(IntPtr jarg1)
static void OdDbBlockRepresentationContext_readUndo(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static void OdDbBlockRepresentationContext_loadInstanceData__SWIG_2(HandleRef jarg1)
static void OdDbBlockRepresentationContext_setBlockUpdateMode(HandleRef jarg1, bool jarg2)
static void OdDbBlockRepresentationContext_init__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, bool jarg5)
static IntPtr OdDbBlockRepresentationContext_getRepresentationContext__SWIG_1(HandleRef jarg1)