Extended .NET SDK Documentation 2025 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 DelegateHolder.OnHoldSwigDirectorDelegates(this);
54 }
55
56 public static OdDbLayoutPaperPE cast(OdRxObject pObj) {// OdSmartPtr<OdDbLayoutPaperPE>
57 MemoryManager mMan = MemoryManager.GetMemoryManager();
58 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
60
61 OdDbLayoutPaperPE ret = null;
62 if (null != mTrans)
63 {
64 mTrans.AddObject((OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true));
65 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, false);
66 }
67 else
68 {
69 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true);
70 }
71
73 return ret;
74}
75
76 public new static OdRxClass desc() {
77 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbLayoutPaperPE_desc(),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public override OdRxClass isA() {
84 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*/
85
87 return ret;
88}
89
90 public override OdRxObject queryX(OdRxClass protocolClass) {
91 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*/
92
94 return ret;
95}
96
97 public static OdDbLayoutPaperPE createObject() {// OdSmartPtr<OdDbLayoutPaperPE>
98 MemoryManager mMan = MemoryManager.GetMemoryManager();
99 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
101
102 OdDbLayoutPaperPE ret = null;
103 if (null != mTrans)
104 {
105 mTrans.AddObject((OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true));
106 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, false);
107 }
108 else
109 {
110 ret = (OdDbLayoutPaperPE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayoutPaperPE),ptr, true);
111 }
112
114 return ret;
115}
116
117 public virtual bool drawPaper(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points) {
120 return ret;
121 }
122
123 public virtual bool drawBorder(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points) {
126 return ret;
127 }
128
129 public virtual bool drawMargins(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points) {
132 return ret;
133 }
134
135 protected static string getRealClassName(IntPtr ptr) {
136 string ret = TD_DbPINVOKE.OdDbLayoutPaperPE_getRealClassName(ptr /*SIMPLETYPE*/);
138 return ret;
139 }
140
141 private void SwigDirectorConnect() {
142 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
143 swigDelegate0 = new SwigDelegateOdDbLayoutPaperPE_0(SwigDirectorMethodqueryX);
144 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
145 swigDelegate1 = new SwigDelegateOdDbLayoutPaperPE_1(SwigDirectorMethodisA);
146 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
147 swigDelegate2 = new SwigDelegateOdDbLayoutPaperPE_2(SwigDirectorMethodcopyFrom);
148 if (SwigDerivedClassHasMethod("drawPaper", swigMethodTypes3))
149 swigDelegate3 = new SwigDelegateOdDbLayoutPaperPE_3(SwigDirectorMethoddrawPaper);
150 if (SwigDerivedClassHasMethod("drawBorder", swigMethodTypes4))
151 swigDelegate4 = new SwigDelegateOdDbLayoutPaperPE_4(SwigDirectorMethoddrawBorder);
152 if (SwigDerivedClassHasMethod("drawMargins", swigMethodTypes5))
153 swigDelegate5 = new SwigDelegateOdDbLayoutPaperPE_5(SwigDirectorMethoddrawMargins);
154 TD_DbPINVOKE.OdDbLayoutPaperPE_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5);
155 }
156
157 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
158 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);
159 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbLayoutPaperPE));
160 return hasDerivedMethod;
161 }
162
163 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
164 return
165 // csdirectorout for OdRxObject*, OdRxObject&
167 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
168)).Handle
169;
170 }
171
172 private IntPtr SwigDirectorMethodisA() {
173 return
174 // csdirectorout for OdRxClass*, OdRxClass&
175 OdRxClass.getCPtr(isA()).Handle
176;
177 }
178
179 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
180 copyFrom(
181 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
182);
183 }
184
185 private bool SwigDirectorMethoddrawPaper(IntPtr pThis, IntPtr pWd, global::System.IntPtr points) {
186 return drawPaper(
187 (OdDbLayout)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayout),pThis,false) /*createInt 6_2*/ // csdirectorin for smart pointer
188,
189 (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),pWd,false) /*createInt 6_1*/ // csdirectorin for smart pointer
190, (points == global::System.IntPtr.Zero) ? null : new OdGePoint3d(points, false));
191 }
192
193 private bool SwigDirectorMethoddrawBorder(IntPtr pThis, IntPtr pWd, global::System.IntPtr points) {
194 return drawBorder(
195 (OdDbLayout)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayout),pThis,false) /*createInt 6_2*/ // csdirectorin for smart pointer
196,
197 (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),pWd,false) /*createInt 6_1*/ // csdirectorin for smart pointer
198, (points == global::System.IntPtr.Zero) ? null : new OdGePoint3d(points, false));
199 }
200
201 private bool SwigDirectorMethoddrawMargins(IntPtr pThis, IntPtr pWd, global::System.IntPtr points) {
202 return drawMargins(
203 (OdDbLayout)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbLayout),pThis,false) /*createInt 6_2*/ // csdirectorin for smart pointer
204,
205 (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),pWd,false) /*createInt 6_1*/ // csdirectorin for smart pointer
206, (points == global::System.IntPtr.Zero) ? null : new OdGePoint3d(points, false));
207 }
208
209 public delegate IntPtr SwigDelegateOdDbLayoutPaperPE_0(IntPtr protocolClass);
210 public delegate IntPtr SwigDelegateOdDbLayoutPaperPE_1();
211 public delegate void SwigDelegateOdDbLayoutPaperPE_2(IntPtr pSource);
212 public delegate bool SwigDelegateOdDbLayoutPaperPE_3(IntPtr pThis, IntPtr pWd, global::System.IntPtr points);
213 public delegate bool SwigDelegateOdDbLayoutPaperPE_4(IntPtr pThis, IntPtr pWd, global::System.IntPtr points);
214 public delegate bool SwigDelegateOdDbLayoutPaperPE_5(IntPtr pThis, IntPtr pWd, global::System.IntPtr points);
215
216 private SwigDelegateOdDbLayoutPaperPE_0 swigDelegate0;
217 private SwigDelegateOdDbLayoutPaperPE_1 swigDelegate1;
218 private SwigDelegateOdDbLayoutPaperPE_2 swigDelegate2;
219 private SwigDelegateOdDbLayoutPaperPE_3 swigDelegate3;
220 private SwigDelegateOdDbLayoutPaperPE_4 swigDelegate4;
221 private SwigDelegateOdDbLayoutPaperPE_5 swigDelegate5;
222
223 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
224 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
225 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
226 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(OdDbLayout), typeof(OdGiWorldDraw), typeof(OdGePoint3d) };
227 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(OdDbLayout), typeof(OdGiWorldDraw), typeof(OdGePoint3d) };
228 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(OdDbLayout), typeof(OdGiWorldDraw), typeof(OdGePoint3d) };
229}
230
231}
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
virtual void copyFrom(OdRxObject pSource)
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdDbLayout obj)
Definition OdDbLayout.cs:26
delegate bool SwigDelegateOdDbLayoutPaperPE_5(IntPtr pThis, IntPtr pWd, global::System.IntPtr points)
static OdDbLayoutPaperPE cast(OdRxObject pObj)
delegate IntPtr SwigDelegateOdDbLayoutPaperPE_1()
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 void SwigDelegateOdDbLayoutPaperPE_2(IntPtr pSource)
delegate IntPtr SwigDelegateOdDbLayoutPaperPE_0(IntPtr protocolClass)
virtual bool drawBorder(OdDbLayout pThis, OdGiWorldDraw pWd, OdGePoint3d points)
override OdRxObject queryX(OdRxClass protocolClass)
static new OdRxClass desc()
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 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 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, OdDbLayoutPaperPE.SwigDelegateOdDbLayoutPaperPE_5 delegate5)
static IntPtr OdDbLayoutPaperPE_queryXSwigExplicitOdDbLayoutPaperPE(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbLayoutPaperPE_desc()
static void delete_OdDbLayoutPaperPE(HandleRef jarg1)
static IntPtr OdDbLayoutPaperPE_cast(HandleRef jarg1)