Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDgSurface.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
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDgSurface(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgSurface_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgSurface 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
48
49 public override byte getElementSubType() {
50// test csout
51 /*SIMPLETYPE*/
52 byte ret = TG_DbPINVOKE.OdDgSurface_getElementSubType(swigCPtr);
54 return ret;
55 }
56
57 public static OdDgSurface cast(OdRxObject pObj) {// OdSmartPtr<OdDgSurface>
58 MemoryManager mMan = MemoryManager.GetMemoryManager();
59 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61
62 OdDgSurface ret = null;
63 if (null != mTrans)
64 {
65 mTrans.AddObject((OdDgSurface)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgSurface),ptr, true));
66 ret = (OdDgSurface)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgSurface),ptr, false);
67 }
68 else
69 {
70 ret = (OdDgSurface)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgSurface),ptr, true);
71 }
72
74 return ret;
75}
76
77 public new static OdRxClass desc() {
78 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgSurface_desc(),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public override OdRxClass isA() {
85 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgSurface_isA(swigCPtr),false); /*createInt 3_2*/
86
88 return ret;
89}
90
91 public override OdRxObject queryX(OdRxClass protocolClass) {
92 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TG_DbPINVOKE.OdDgSurface_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
93
95 return ret;
96}
97
98 public new static OdDgSurface createObject() {// OdSmartPtr<OdDgSurface>
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
102
103 OdDgSurface ret = null;
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdDgSurface)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgSurface),ptr, true));
107 ret = (OdDgSurface)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgSurface),ptr, false);
108 }
109 else
110 {
111 ret = (OdDgSurface)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgSurface),ptr, true);
112 }
113
115 return ret;
116}
117
123
128
129 public override UInt32 subSetAttributes(OdGiDrawableTraits pDrwTraits) {
130// test csout
131 /*SIMPLETYPE*/
132 UInt32 ret = TG_DbPINVOKE.OdDgSurface_subSetAttributes(swigCPtr, OdGiDrawableTraits.getCPtr(pDrwTraits));
134 return ret;
135 }
136
137 public override bool subWorldDraw(OdGiWorldDraw pWd) {
140 return ret;
141 }
142
143 public override OdRxObject clone() {// OdRxObjectPtr
144 MemoryManager mMan = MemoryManager.GetMemoryManager();
145 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
146 IntPtr ptr = TG_DbPINVOKE.OdDgSurface_clone(swigCPtr);
147
148 OdRxObject ret = null;
149 if (null != mTrans)
150 {
151 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
152 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
153 }
154 else
155 {
156 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
157 }
158
160 return ret;
161}
162
168
169 protected static string getRealClassName(IntPtr ptr) {
170 string ret = TG_DbPINVOKE.OdDgSurface_getRealClassName(ptr /*SIMPLETYPE*/);
172 return ret;
173 }
174
179 public virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status) { this.gripStatus(status); }
180
186
199
200}
201
202}
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdGiDrawableTraits obj)
static HandleRef getCPtr(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdRxObjectPtrArray obj)
virtual void gripStatus(OdDgElement.GripStat status)
OdDgSurface.Type getType()
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
override OdRxObject queryX(OdRxClass protocolClass)
override void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)
override OdRxObject clone()
virtual OdResult subExplode(OdRxObjectPtrArray entitySet)
override byte getElementSubType()
static HandleRef getCPtr(OdDgSurface obj)
OdDgSurface(IntPtr cPtr, bool cMemoryOwn)
override UInt32 subSetAttributes(OdGiDrawableTraits pDrwTraits)
virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status)
override OdDgElement.ElementTypes getElementType()
override OdRxClass isA()
override bool subWorldDraw(OdGiWorldDraw pWd)
static new OdDgSurface createObject()
static new OdRxClass desc()
void setType(OdDgSurface.Type type)
static OdDgSurface cast(OdRxObject pObj)
static global::System.Exception Retrieve()
static IntPtr OdDgSurface_clone(HandleRef jarg1)
static IntPtr OdDgSurface_queryX(HandleRef jarg1, HandleRef jarg2)
static byte OdDgSurface_getElementSubType(HandleRef jarg1)
static string OdDgSurface_getRealClassName(IntPtr jarg1)
static void delete_OdDgSurface(HandleRef jarg1)
static int OdDgSurface_subExplode(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgSurface_isA(HandleRef jarg1)
static IntPtr OdDgSurface_desc()
static int OdDgSurface_getElementType(HandleRef jarg1)
static UInt32 OdDgSurface_subSetAttributes(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgSurface_createObject()
static bool OdDgSurface_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static int OdDgSurface_getType(HandleRef jarg1)
static IntPtr OdDgSurface_cast(HandleRef jarg1)
static void OdDgSurface_setType(HandleRef jarg1, int jarg2)