Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbLayoutPaperPE.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 OdDbLayoutPaperPE(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbLayoutPaperPE_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbLayoutPaperPE 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
44 : this(TD_DbPINVOKE.new_OdDbLayoutPaperPE(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 {
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
47 if (null != mTr)
48 {
49 mTr.AddObject(new OdDbLayoutPaperPE(swigCPtr.Handle, true));
50 }
52 SwigDirectorConnect();
53 }
54
55 public static OdDbLayoutPaperPE cast(OdRxObject pObj) {// OdSmartPtr<OdDbLayoutPaperPE>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59
60 OdDbLayoutPaperPE ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true));
64 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, false);
65 }
66 else
67 {
68 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true);
69 }
70
72 return ret;
73}
74
75 public new static OdRxClass desc() {
76 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbLayoutPaperPE_desc(),false); /*createInt 3_2*/
77
79 return ret;
80}
81
82 public override OdRxClass isA() {
83 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? TD_DbPINVOKE.OdDbLayoutPaperPE_isASwigExplicitOdDbLayoutPaperPE(swigCPtr) : TD_DbPINVOKE.OdDbLayoutPaperPE_isA(swigCPtr)),false); /*createInt 3_2*/
84
86 return ret;
87}
88
89 public override OdRxObject queryX(OdRxClass protocolClass) {
90 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? TD_DbPINVOKE.OdDbLayoutPaperPE_queryXSwigExplicitOdDbLayoutPaperPE(swigCPtr, OdRxClass.getCPtr(protocolClass)) : TD_DbPINVOKE.OdDbLayoutPaperPE_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
91
93 return ret;
94}
95
96 public static OdDbLayoutPaperPE createObject() {// OdSmartPtr<OdDbLayoutPaperPE>
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdDbLayoutPaperPE ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true));
105 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, false);
106 }
107 else
108 {
109 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true);
110 }
111
113 return ret;
114}
115
116 public virtual bool drawPaper(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points) {
119 return ret;
120 }
121
122 public virtual bool drawBorder(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points) {
125 return ret;
126 }
127
128 public virtual bool drawMargins(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points) {
131 return ret;
132 }
133
134 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
135 string ret = TD_DbPINVOKE.OdDbLayoutPaperPE_getRealClassName(ptr /*SIMPLETYPE*/);
137 return ret;
138 }
139
140 private void SwigDirectorConnect() {
141 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
142 swigDelegate0 = new SwigDelegateOdDbLayoutPaperPE_0(SwigDirectorMethodqueryX);
143 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
144 swigDelegate1 = new SwigDelegateOdDbLayoutPaperPE_1(SwigDirectorMethodisA);
145 if (SwigDerivedClassHasMethod("drawPaper", swigMethodTypes2))
146 swigDelegate2 = new SwigDelegateOdDbLayoutPaperPE_2(SwigDirectorMethoddrawPaper);
147 if (SwigDerivedClassHasMethod("drawBorder", swigMethodTypes3))
148 swigDelegate3 = new SwigDelegateOdDbLayoutPaperPE_3(SwigDirectorMethoddrawBorder);
149 if (SwigDerivedClassHasMethod("drawMargins", swigMethodTypes4))
150 swigDelegate4 = new SwigDelegateOdDbLayoutPaperPE_4(SwigDirectorMethoddrawMargins);
151 TD_DbPINVOKE.OdDbLayoutPaperPE_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
152 }
153
154 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
155 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
156 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbLayoutPaperPE));
157 return hasDerivedMethod;
158 }
159
160 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
161 return
162 // csdirectorout for OdRxObject*, OdRxObject&
164 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
165)).Handle
166;
167 }
168
169 private IntPtr SwigDirectorMethodisA() {
170 return
171 // csdirectorout for OdRxClass*, OdRxClass&
172 OdRxClass.getCPtr(isA()).Handle
173;
174 }
175
176 private bool SwigDirectorMethoddrawPaper(IntPtr pThis, IntPtr pWd, global::System.IntPtr points) {
177 return drawPaper(
178 (OdDbLayout)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayout),pThis,false) /*createInt 6_2*/ // csdirectorin for smart pointer
179,
180 (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),pWd,false) /*createInt 6_1*/ // csdirectorin for smart pointer
181, (points == global::System.IntPtr.Zero) ? null : new OdGePoint3d(points, false));
182 }
183
184 private bool SwigDirectorMethoddrawBorder(IntPtr pThis, IntPtr pWd, global::System.IntPtr points) {
185 return drawBorder(
186 (OdDbLayout)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayout),pThis,false) /*createInt 6_2*/ // csdirectorin for smart pointer
187,
188 (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),pWd,false) /*createInt 6_1*/ // csdirectorin for smart pointer
189, (points == global::System.IntPtr.Zero) ? null : new OdGePoint3d(points, false));
190 }
191
192 private bool SwigDirectorMethoddrawMargins(IntPtr pThis, IntPtr pWd, global::System.IntPtr points) {
193 return drawMargins(
194 (OdDbLayout)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayout),pThis,false) /*createInt 6_2*/ // csdirectorin for smart pointer
195,
196 (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),pWd,false) /*createInt 6_1*/ // csdirectorin for smart pointer
197, (points == global::System.IntPtr.Zero) ? null : new OdGePoint3d(points, false));
198 }
199
200 public delegate IntPtr SwigDelegateOdDbLayoutPaperPE_0(IntPtr protocolClass);
201 public delegate IntPtr SwigDelegateOdDbLayoutPaperPE_1();
202 public delegate bool SwigDelegateOdDbLayoutPaperPE_2(IntPtr pThis, IntPtr pWd, global::System.IntPtr points);
203 public delegate bool SwigDelegateOdDbLayoutPaperPE_3(IntPtr pThis, IntPtr pWd, global::System.IntPtr points);
204 public delegate bool SwigDelegateOdDbLayoutPaperPE_4(IntPtr pThis, IntPtr pWd, global::System.IntPtr points);
205
206 private SwigDelegateOdDbLayoutPaperPE_0 swigDelegate0;
207 private SwigDelegateOdDbLayoutPaperPE_1 swigDelegate1;
208 private SwigDelegateOdDbLayoutPaperPE_2 swigDelegate2;
209 private SwigDelegateOdDbLayoutPaperPE_3 swigDelegate3;
210 private SwigDelegateOdDbLayoutPaperPE_4 swigDelegate4;
211
212 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
213 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
214 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdDbLayout), typeof(OdGiWorldDraw), typeof(OdGePoint3d) };
215 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(OdDbLayout), typeof(OdGiWorldDraw), typeof(OdGePoint3d) };
216 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(OdDbLayout), typeof(OdGiWorldDraw), typeof(OdGePoint3d) };
217}
218
219}
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDbLayout obj)
Definition: OdDbLayout.cs:26
static OdDbLayoutPaperPE cast(OdRxObject pObj)
delegate IntPtr SwigDelegateOdDbLayoutPaperPE_1()
override OdRxClass isA()
virtual bool drawPaper(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points)
static HandleRef getCPtr(OdDbLayoutPaperPE obj)
OdDbLayoutPaperPE(IntPtr cPtr, bool cMemoryOwn)
virtual bool drawMargins(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points)
delegate bool SwigDelegateOdDbLayoutPaperPE_4(IntPtr pThis, IntPtr pWd, global::System.IntPtr points)
static OdDbLayoutPaperPE createObject()
static string getRealClassName(IntPtr ptr)
delegate bool SwigDelegateOdDbLayoutPaperPE_3(IntPtr pThis, IntPtr pWd, global::System.IntPtr points)
delegate IntPtr SwigDelegateOdDbLayoutPaperPE_0(IntPtr protocolClass)
virtual bool drawBorder(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points)
override OdRxObject queryX(OdRxClass protocolClass)
static new OdRxClass desc()
delegate bool SwigDelegateOdDbLayoutPaperPE_2(IntPtr pThis, IntPtr pWd, global::System.IntPtr points)
override void Dispose(bool disposing)
static global::System.Exception Retrieve()
static IntPtr OdDbLayoutPaperPE_isA(HandleRef jarg1)
static bool OdDbLayoutPaperPE_drawBorder(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdDbLayoutPaperPE_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbLayoutPaperPE.SwigDelegateOdDbLayoutPaperPE_0 delegate0, OdDbLayoutPaperPE.SwigDelegateOdDbLayoutPaperPE_1 delegate1, OdDbLayoutPaperPE.SwigDelegateOdDbLayoutPaperPE_2 delegate2, OdDbLayoutPaperPE.SwigDelegateOdDbLayoutPaperPE_3 delegate3, OdDbLayoutPaperPE.SwigDelegateOdDbLayoutPaperPE_4 delegate4)
static IntPtr OdDbLayoutPaperPE_createObject()
static bool OdDbLayoutPaperPE_drawPaper(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr OdDbLayoutPaperPE_queryX(HandleRef jarg1, HandleRef jarg2)
static string OdDbLayoutPaperPE_getRealClassName(IntPtr jarg1)
static IntPtr OdDbLayoutPaperPE_isASwigExplicitOdDbLayoutPaperPE(HandleRef jarg1)
static bool OdDbLayoutPaperPE_drawMargins(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr OdDbLayoutPaperPE_queryXSwigExplicitOdDbLayoutPaperPE(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbLayoutPaperPE_desc()
static void delete_OdDbLayoutPaperPE(HandleRef jarg1)
static IntPtr OdDbLayoutPaperPE_cast(HandleRef jarg1)