Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgModelerGeometry.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 OdDgModelerGeometry(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgModelerGeometry_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgModelerGeometry 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
43 public const uint kTypeMask = 0xff000000;
44 public const uint kAcisMask = 0xf0000000;
45
46 public static OdDgModelerGeometry cast(OdRxObject pObj) {// OdSmartPtr<OdDgModelerGeometry>
47 MemoryManager mMan = MemoryManager.GetMemoryManager();
48 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
50
51 OdDgModelerGeometry ret = null;
52 if (null != mTrans)
53 {
54 mTrans.AddObject((OdDgModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgModelerGeometry),ptr, true));
55 ret = (OdDgModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgModelerGeometry),ptr, false);
56 }
57 else
58 {
59 ret = (OdDgModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgModelerGeometry),ptr, true);
60 }
61
63 return ret;
64}
65
66 public new static OdRxClass desc() {
67 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgModelerGeometry_desc(),false); /*createInt 3_2*/
68
70 return ret;
71}
72
73 public override OdRxClass isA() {
74 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgModelerGeometry_isA(swigCPtr),false); /*createInt 3_2*/
75
77 return ret;
78}
79
80 public override OdRxObject queryX(OdRxClass protocolClass) {
81 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TG_DbPINVOKE.OdDgModelerGeometry_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
82
84 return ret;
85}
86
87 public static OdDgModelerGeometry createObject() {// OdSmartPtr<OdDgModelerGeometry>
88 MemoryManager mMan = MemoryManager.GetMemoryManager();
89 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
91
92 OdDgModelerGeometry ret = null;
93 if (null != mTrans)
94 {
95 mTrans.AddObject((OdDgModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgModelerGeometry),ptr, true));
96 ret = (OdDgModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgModelerGeometry),ptr, false);
97 }
98 else
99 {
100 ret = (OdDgModelerGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgModelerGeometry),ptr, true);
101 }
102
104 return ret;
105}
106
107 public virtual OdResult in_(OdStreamBuf pStreamBuf) {
110 return ret;
111 }
112
113 public virtual OdResult comeFromVersion(out uint ver) {
116 return ret;
117 }
118
119 public virtual OdResult out_(OdStreamBuf pStreamBuf, uint typeVer) {
120 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgModelerGeometry_out_(swigCPtr, OdStreamBuf.getCPtr(pStreamBuf), typeVer);
122 return ret;
123 }
124
125 public virtual OdResult brep(OdBrBrep brBrep) {
128 return ret;
129 }
130
131 public virtual OdResult render(OdGiCommonDraw pWd) {
134 return ret;
135 }
136
140 return ret;
141 }
142
143 public virtual OdResult transformBy(OdGeMatrix3d xfm) {
146 return ret;
147 }
148
149 public virtual bool isEmpty() {
150 bool ret = TG_DbPINVOKE.OdDgModelerGeometry_isEmpty(swigCPtr);
152 return ret;
153 }
154
155 public virtual void setMaterialCallback(OdMaterialCallback pCallback) {
158 }
159
160 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
161 string ret = TG_DbPINVOKE.OdDgModelerGeometry_getRealClassName(ptr /*SIMPLETYPE*/);
163 return ret;
164 }
165
166 public const int kUndefined = 0x00000000;
167 public const int kParasolidMask = 0x0f000000;
168 public const int kSat = 0x10000000;
169 public const int kSab = 0x20000000;
170 public const int kSatIndexed = 0x30000000;
171 public const int kSabIndexed = 0x40000000;
172 public const int kXT = 0x01000000;
173 public const int kXB_Bare = 0x02000000;
174 public const int kXB_Typed0 = 0x03000000;
175 public const int kXB_Typed1 = 0x04000000;
176 public const int kXB_Neutral = 0x05000000;
177 public const int kVersionMask = 0x0000ffff;
178 public const int kPS_9_0 = 0x00000004;
179 public const int kPS_12_0 = 0x0000000A;
180 public const int kAS_1_5 = 0x00000100;
181 public const int kAS_1_6 = 0x00000200;
182 public const int kAS_1_7 = 0x00000300;
183 public const int kAS_2_1 = 0x00000400;
184 public const int kAS_3_0 = 0x00000500;
185 public const int kAS_4_0 = 0x00000600;
186 public const int kAS_5_0 = 0x00000700;
187 public const int kAS_6_0 = 0x00000900;
188 public const int kAS_7_0 = 0x00000A00;
189 public const int kAS_8_0 = 0x00000B00;
190
191}
192
193}
static HandleRef getCPtr(OdBrBrep obj)
Definition: OdBrBrep.cs:25
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGiCommonDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdStreamBuf obj)
Definition: OdStreamBuf.cs:25
virtual OdResult comeFromVersion(out uint ver)
virtual OdResult transformBy(OdGeMatrix3d xfm)
static string getRealClassName(IntPtr ptr)
virtual OdResult in_(OdStreamBuf pStreamBuf)
static HandleRef getCPtr(OdDgModelerGeometry obj)
override OdRxObject queryX(OdRxClass protocolClass)
virtual void setMaterialCallback(OdMaterialCallback pCallback)
virtual OdResult getTransformation(OdGeMatrix3d xfm)
static OdDgModelerGeometry cast(OdRxObject pObj)
static OdDgModelerGeometry createObject()
OdDgModelerGeometry(IntPtr cPtr, bool cMemoryOwn)
virtual OdResult brep(OdBrBrep brBrep)
virtual OdResult render(OdGiCommonDraw pWd)
override void Dispose(bool disposing)
virtual OdResult out_(OdStreamBuf pStreamBuf, uint typeVer)
static HandleRef getCPtr(OdMaterialCallback obj)
static global::System.Exception Retrieve()
static void OdDgModelerGeometry_setMaterialCallback(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgModelerGeometry_isEmpty(HandleRef jarg1)
static int OdDgModelerGeometry_getTransformation(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDgModelerGeometry_render(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgModelerGeometry_desc()
static int OdDgModelerGeometry_transformBy(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgModelerGeometry_cast(HandleRef jarg1)
static string OdDgModelerGeometry_getRealClassName(IntPtr jarg1)
static int OdDgModelerGeometry_brep(HandleRef jarg1, IntPtr jarg2)
static int OdDgModelerGeometry_comeFromVersion(HandleRef jarg1, out uint jarg2)
static IntPtr OdDgModelerGeometry_isA(HandleRef jarg1)
static int OdDgModelerGeometry_in_(HandleRef jarg1, HandleRef jarg2)
static int OdDgModelerGeometry_out_(HandleRef jarg1, HandleRef jarg2, uint jarg3)
static void delete_OdDgModelerGeometry(HandleRef jarg1)
static IntPtr OdDgModelerGeometry_createObject()
static IntPtr OdDgModelerGeometry_queryX(HandleRef jarg1, HandleRef jarg2)