Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiGeometryMetafile.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGiGeometryMetafile(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiGeometryMetafile_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiGeometryMetafile obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdGiGeometryMetafile cast(OdRxObject pObj) {// OdSmartPtr<OdGiGeometryMetafile>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiGeometryMetafile ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),ptr, true));
51 ret = (OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiGeometryMetafile_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiGeometryMetafile_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiGeometryMetafile_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiGeometryMetafile createObject() {// OdSmartPtr<OdGiGeometryMetafile>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiGeometryMetafile ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),ptr, true));
92 ret = (OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),ptr, true);
97 }
98
100 return ret;
101}
102
103 public class Record : global::System.IDisposable {
104 private Object locker = new Object();
105 private HandleRef swigCPtr;
106 protected bool swigCMemOwn;
107 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
108 public Record(IntPtr cPtr, bool cMemoryOwn) {
109 swigCMemOwn = cMemoryOwn;
110 swigCPtr = new HandleRef(this, cPtr);
111 }
112 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
113 public static HandleRef getCPtr(Record obj) {
114 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
115 }
116
117 ~Record() {
118 Dispose(false);
119 }
120
121 public void Dispose() {
122 Dispose(true);
123 global::System.GC.SuppressFinalize(this);
124 }
125
126 protected virtual void Dispose(bool disposing) {
127 lock(this) {
128 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
129 if (swigCMemOwn) {
130 swigCMemOwn = false;
131 GlobalsPINVOKE.delete_OdGiGeometryMetafile_Record(swigCPtr); // NESTED_DTOR_CSHARP
132 }
133 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
134 }
135 }
136 }
137
139 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiGeometryMetafile_Record_tail__SWIG_0(swigCPtr);
140 OdGiGeometryMetafile.Record ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiGeometryMetafile.Record(cPtr, false);
142 return ret;
143 }
144
148 }
149
150 public void deleteList() {
153 }
154
155 public virtual void play(OdGiConveyorGeometry pGeom, OdGiConveyorContext pCtx) {
158 }
159
160 public virtual UInt64 recordSize() {
161 // test csout
162 /*SIMPLETYPE*/
165 return ret;
166 }
167
168 }
169
170 public void clear() {
173 }
174
178 }
179
180 public void play(OdGiConveyorOutput output, OdGiConveyorContext pCtx) {
183 }
184
185 public virtual UInt64 metafileSize() {
186// test csout
187 /*SIMPLETYPE*/
190 return ret;
191 }
192
196 }
197
198 public bool isEmpty() {
199 bool ret = GlobalsPINVOKE.OdGiGeometryMetafile_isEmpty(swigCPtr);
201 return ret;
202 }
203
205 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiGeometryMetafile_firstRecord(swigCPtr);
206 OdGiGeometryMetafile.Record ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiGeometryMetafile.Record(cPtr, false);
208 return ret;
209 }
210
212 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiGeometryMetafile_lastRecord(swigCPtr);
213 OdGiGeometryMetafile.Record ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiGeometryMetafile.Record(cPtr, false);
215 return ret;
216 }
217
218 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
219 string ret = GlobalsPINVOKE.OdGiGeometryMetafile_getRealClassName(ptr /*SIMPLETYPE*/);
221 return ret;
222 }
223
224}
225
226}
static global::System.Exception Retrieve()
static void OdGiGeometryMetafile_clear(HandleRef jarg1)
static void OdGiGeometryMetafile_setRecords(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGiGeometryMetafile_isEmpty(HandleRef jarg1)
static void OdGiGeometryMetafile_play__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGiGeometryMetafile_createObject()
static void delete_OdGiGeometryMetafile(HandleRef jarg1)
static string OdGiGeometryMetafile_getRealClassName(IntPtr jarg1)
static UInt64 OdGiGeometryMetafile_metafileSize(HandleRef jarg1)
static IntPtr OdGiGeometryMetafile_desc()
static void OdGiGeometryMetafile_play__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGiGeometryMetafile_firstRecord(HandleRef jarg1)
static global::System.IntPtr OdGiGeometryMetafile_Record_tail__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGiGeometryMetafile_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdGiGeometryMetafile_Record_setTail(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiGeometryMetafile_cast(HandleRef jarg1)
static UInt64 OdGiGeometryMetafile_Record_recordSize(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiGeometryMetafile_Record_deleteList(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiGeometryMetafile_lastRecord(HandleRef jarg1)
static void OdGiGeometryMetafile_Record_play(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdGiGeometryMetafile_Record(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGiGeometryMetafile_isA(HandleRef jarg1)
virtual void play(OdGiConveyorGeometry pGeom, OdGiConveyorContext pCtx)
void setTail(OdGiGeometryMetafile.Record pTail)
void play(OdGiConveyorOutput output, OdGiConveyorContext pCtx)
OdGiGeometryMetafile.Record lastRecord()
OdGiGeometryMetafile.Record firstRecord()
static OdGiGeometryMetafile cast(OdRxObject pObj)
static HandleRef getCPtr(OdGiGeometryMetafile obj)
static string getRealClassName(IntPtr ptr)
static OdGiGeometryMetafile createObject()
override OdRxObject queryX(OdRxClass protocolClass)
void play(OdGiConveyorGeometry pGeom, OdGiConveyorContext pCtx)
OdGiGeometryMetafile(IntPtr cPtr, bool cMemoryOwn)
override void Dispose(bool disposing)
void setRecords(OdGiGeometryMetafile.Record pRec)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()