Extended .NET SDK Documentation 2025 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 UInt32 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
136
142
148
154
155 public virtual bool isEmpty() {
156 bool ret = TG_DbPINVOKE.OdDgModelerGeometry_isEmpty(swigCPtr);
158 return ret;
159 }
160
165
166 protected static string getRealClassName(IntPtr ptr) {
167 string ret = TG_DbPINVOKE.OdDgModelerGeometry_getRealClassName(ptr /*SIMPLETYPE*/);
169 return ret;
170 }
171
172 public const int kUndefined = 0x00000000;
173 public const int kParasolidMask = 0x0f000000;
174 public const int kSat = 0x10000000;
175 public const int kSab = 0x20000000;
176 public const int kSatIndexed = 0x30000000;
177 public const int kSabIndexed = 0x40000000;
178 public const int kXT = 0x01000000;
179 public const int kXB_Bare = 0x02000000;
180 public const int kXB_Typed0 = 0x03000000;
181 public const int kXB_Typed1 = 0x04000000;
182 public const int kXB_Neutral = 0x05000000;
183 public const int kOptionsMask = 0x00f00000;
184 public const int kXB_HardConvert = 0x00800000;
185 public const int kVersionMask = 0x0000ffff;
186 public const int kPS_9_8 = 0x00000004;
187 public const int kPS_12_6 = 0x0000000A;
188 public const int kPS_13_6 = 0x0000000C;
189 public const int kPS_14_0 = 0x0000000E;
190 public const int kAS_1_5 = 0x00000100;
191 public const int kAS_1_6 = 0x00000200;
192 public const int kAS_1_7 = 0x00000300;
193 public const int kAS_2_1 = 0x00000400;
194 public const int kAS_3_0 = 0x00000500;
195 public const int kAS_4_0 = 0x00000600;
196 public const int kAS_5_0 = 0x00000700;
197 public const int kAS_6_0 = 0x00000900;
198 public const int kAS_7_0 = 0x00000A00;
199 public const int kAS_8_0 = 0x00000B00;
200
201}
202
203}
static HandleRef getCPtr(OdBrBrep obj)
Definition OdBrBrep.cs:25
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGiCommonDraw 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(OdStreamBuf obj)
virtual OdResult getGeomExtents(OdGeExtents3d ext)
virtual OdResult comeFromVersion(out UInt32 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 int OdDgModelerGeometry_comeFromVersion(HandleRef jarg1, out UInt32 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_getGeomExtents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDgModelerGeometry_brep(HandleRef jarg1, IntPtr 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)