Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiSectionGeometryManager.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGiSectionGeometryManager(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiSectionGeometryManager_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiSectionGeometryManager obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdGiSectionGeometryManager cast(OdRxObject pObj) {// OdSmartPtr<OdGiSectionGeometryManager>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiSectionGeometryManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryManager),ptr, true));
51 ret = (OdGiSectionGeometryManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryManager),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiSectionGeometryManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryManager),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiSectionGeometryManager_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiSectionGeometryManager_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiSectionGeometryManager_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiSectionGeometryManager createObject() {// OdSmartPtr<OdGiSectionGeometryManager>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiSectionGeometryManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryManager),ptr, true));
92 ret = (OdGiSectionGeometryManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryManager),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiSectionGeometryManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryManager),ptr, true);
97 }
98
100 return ret;
101}
102
103 public virtual OdDbStub getLiveSection(OdDbStub layoutId, OdDbStub sectionSettingsId) {
104 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiSectionGeometryManager_getLiveSection(swigCPtr, OdDbStub.getCPtr(layoutId), OdDbStub.getCPtr(sectionSettingsId).Handle);
105 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
107 return ret;
108 }
109
110 public virtual OdGiDrawable createLiveSection(OdRxObject pDb, OdDbStub visualStyleId, OdGePoint3dArray points, OdGeVector3d verticalDir, double dTop, double dBottom) {// OdGiDrawablePtr
111 MemoryManager mMan = MemoryManager.GetMemoryManager();
112 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
113 IntPtr ptr = GlobalsPINVOKE.OdGiSectionGeometryManager_createLiveSection__SWIG_0(swigCPtr, OdRxObject.getCPtr(pDb), OdDbStub.getCPtr(visualStyleId), OdGePoint3dArray.getCPtr(points), OdGeVector3d.getCPtr(verticalDir), dTop, dBottom);
114
115 OdGiDrawable ret = null;
116 if (null != mTrans)
117 {
118 mTrans.AddObject((OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true));
119 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, false);
120 }
121 else
122 {
123 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true);
124 }
125
127 return ret;
128}
129
130 public virtual OdGiDrawable createLiveSection(OdRxObject pDb, OdDbStub visualStyleId, OdGePoint3dArray points, OdGeVector3d verticalDir, double dTop) {// OdGiDrawablePtr
131 MemoryManager mMan = MemoryManager.GetMemoryManager();
132 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
134
135 OdGiDrawable ret = null;
136 if (null != mTrans)
137 {
138 mTrans.AddObject((OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true));
139 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, false);
140 }
141 else
142 {
143 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true);
144 }
145
147 return ret;
148}
149
150 public virtual OdGiDrawable createLiveSection(OdRxObject pDb, OdDbStub visualStyleId, OdGePoint3dArray points, OdGeVector3d verticalDir) {// OdGiDrawablePtr
151 MemoryManager mMan = MemoryManager.GetMemoryManager();
152 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
154
155 OdGiDrawable ret = null;
156 if (null != mTrans)
157 {
158 mTrans.AddObject((OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true));
159 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, false);
160 }
161 else
162 {
163 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true);
164 }
165
167 return ret;
168}
169
170 public virtual bool isLiveSection(OdGiDrawable pDrawable) {
173 return ret;
174 }
175
176 public virtual bool generateSectionGeometry(OdGiDrawable section, OdGiDrawable drawable, OdGeMatrix3d xform, OdGiSectionGeometry geom, bool /*SIMPLETYPE*/ bHasForeground) {
177 bool ret = GlobalsPINVOKE.OdGiSectionGeometryManager_generateSectionGeometry(swigCPtr, OdGiDrawable.getCPtr(section), OdGiDrawable.getCPtr(drawable), OdGeMatrix3d.getCPtr(xform), OdGiSectionGeometry.getCPtr(geom), bHasForeground /*SIMPLETYPE*/);
179 return ret;
180 }
181
182 public virtual OdGiSectionGeometryMap createSectionGeometryMap() {// OdGiSectionGeometryMapPtr
183 MemoryManager mMan = MemoryManager.GetMemoryManager();
184 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
186
187 OdGiSectionGeometryMap ret = null;
188 if (null != mTrans)
189 {
190 mTrans.AddObject((OdGiSectionGeometryMap)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryMap),ptr, true));
191 ret = (OdGiSectionGeometryMap)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryMap),ptr, false);
192 }
193 else
194 {
195 ret = (OdGiSectionGeometryMap)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiSectionGeometryMap),ptr, true);
196 }
197
199 return ret;
200}
201
205 return ret;
206 }
207
208 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
209 string ret = GlobalsPINVOKE.OdGiSectionGeometryManager_getRealClassName(ptr /*SIMPLETYPE*/);
211 return ret;
212 }
213
214 public enum Options {
218 }
219
220}
221
222}
static global::System.Exception Retrieve()
static bool OdGiSectionGeometryManager_generateSectionGeometry(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, bool jarg6)
static IntPtr OdGiSectionGeometryManager_createSectionGeometryMap(HandleRef jarg1)
static IntPtr OdGiSectionGeometryManager_queryX(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdGiSectionGeometryManager_getLiveSection(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static void delete_OdGiSectionGeometryManager(HandleRef jarg1)
static IntPtr OdGiSectionGeometryManager_createLiveSection__SWIG_2(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static IntPtr OdGiSectionGeometryManager_isA(HandleRef jarg1)
static int OdGiSectionGeometryManager_classifyExtentsRelativelySection(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGiSectionGeometryManager_createLiveSection__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, double jarg6)
static IntPtr OdGiSectionGeometryManager_cast(HandleRef jarg1)
static bool OdGiSectionGeometryManager_isLiveSection(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiSectionGeometryManager_createLiveSection__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, double jarg6, double jarg7)
static IntPtr OdGiSectionGeometryManager_desc()
static string OdGiSectionGeometryManager_getRealClassName(IntPtr jarg1)
static IntPtr OdGiSectionGeometryManager_createObject()
static HandleRef getCPtr(OdDbStub obj)
Definition: OdDbStub.cs:26
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static HandleRef getCPtr(OdGiDrawable obj)
Definition: OdGiDrawable.cs:25
static HandleRef getCPtr(OdGiSectionGeometry obj)
OdGiSectionGeometryManager(IntPtr cPtr, bool cMemoryOwn)
virtual bool generateSectionGeometry(OdGiDrawable section, OdGiDrawable drawable, OdGeMatrix3d xform, OdGiSectionGeometry geom, bool bHasForeground)
virtual int classifyExtentsRelativelySection(OdGiDrawable pDrawable, OdGeExtents3d ext)
virtual OdGiDrawable createLiveSection(OdRxObject pDb, OdDbStub visualStyleId, OdGePoint3dArray points, OdGeVector3d verticalDir, double dTop, double dBottom)
override OdRxObject queryX(OdRxClass protocolClass)
static OdGiSectionGeometryManager createObject()
virtual OdGiDrawable createLiveSection(OdRxObject pDb, OdDbStub visualStyleId, OdGePoint3dArray points, OdGeVector3d verticalDir)
virtual OdGiDrawable createLiveSection(OdRxObject pDb, OdDbStub visualStyleId, OdGePoint3dArray points, OdGeVector3d verticalDir, double dTop)
virtual bool isLiveSection(OdGiDrawable pDrawable)
virtual OdDbStub getLiveSection(OdDbStub layoutId, OdDbStub sectionSettingsId)
virtual OdGiSectionGeometryMap createSectionGeometryMap()
static OdGiSectionGeometryManager cast(OdRxObject pObj)
static HandleRef getCPtr(OdGiSectionGeometryManager obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26