Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgCreateGraphicsCacheTool.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.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDgCreateGraphicsCacheTool : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDgCreateGraphicsCacheTool(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDgCreateGraphicsCacheTool obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdDgCreateGraphicsCacheTool() : this(TG_DbPINVOKE.new_OdDgCreateGraphicsCacheTool(), true) {
54 }
55
56 public OdDgXAttribute createGraphicsCache(OdDgGraphicsElement pGraph, OdGiRegenType regenType, UInt16 /*SIMPLETYPE*/ uXAttrValue) {// OdDgXAttributePtr
57 MemoryManager mMan = MemoryManager.GetMemoryManager();
58 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59 IntPtr ptr = TG_DbPINVOKE.OdDgCreateGraphicsCacheTool_createGraphicsCache__SWIG_0(swigCPtr, OdDgGraphicsElement.getCPtr(pGraph), (int)regenType, uXAttrValue /*SIMPLETYPE*/);
60
61 OdDgXAttribute ret = null;
62 if (null != mTrans)
63 {
64 mTrans.AddObject((OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, true));
65 ret = (OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, false);
66 }
67 else
68 {
69 ret = (OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, true);
70 }
71
73 return ret;
74}
75
76 public OdDgXAttribute createGraphicsCache(OdDgGraphicsElement pGraph, OdGiRegenType regenType) {// OdDgXAttributePtr
77 MemoryManager mMan = MemoryManager.GetMemoryManager();
78 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
80
81 OdDgXAttribute ret = null;
82 if (null != mTrans)
83 {
84 mTrans.AddObject((OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, true));
85 ret = (OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, false);
86 }
87 else
88 {
89 ret = (OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, true);
90 }
91
93 return ret;
94}
95
96 public OdDgXAttribute createGraphicsCache(OdDgGraphicsElement pGraph) {// OdDgXAttributePtr
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdDgXAttribute ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, true));
105 ret = (OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, false);
106 }
107 else
108 {
109 ret = (OdDgXAttribute)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgXAttribute),ptr, true);
110 }
111
113 return ret;
114}
115
116}
117
118}
OdDgXAttribute createGraphicsCache(OdDgGraphicsElement pGraph, OdGiRegenType regenType, UInt16 uXAttrValue)
OdDgXAttribute createGraphicsCache(OdDgGraphicsElement pGraph, OdGiRegenType regenType)
OdDgCreateGraphicsCacheTool(IntPtr cPtr, bool cMemoryOwn)
OdDgXAttribute createGraphicsCache(OdDgGraphicsElement pGraph)
static HandleRef getCPtr(OdDgCreateGraphicsCacheTool obj)
static HandleRef getCPtr(OdDgGraphicsElement obj)
static global::System.Exception Retrieve()
static IntPtr OdDgCreateGraphicsCacheTool_createGraphicsCache__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3)
static void delete_OdDgCreateGraphicsCacheTool(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDgCreateGraphicsCacheTool_createGraphicsCache__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgCreateGraphicsCacheTool_createGraphicsCache__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3, UInt16 jarg4)