Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbSectionSymbol.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 OdDbSectionSymbol(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbSectionSymbol_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbSectionSymbol 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 static OdDbSectionSymbol cast(OdRxObject pObj) {// OdSmartPtr<OdDbSectionSymbol>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbSectionSymbol ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbSectionSymbol)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSectionSymbol),ptr, true));
52 ret = (OdDbSectionSymbol)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSectionSymbol),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbSectionSymbol)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSectionSymbol),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbSectionSymbol_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbSectionSymbol_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdDbSectionSymbol_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static OdDbSectionSymbol createObject() {// OdSmartPtr<OdDbSectionSymbol>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbSectionSymbol ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbSectionSymbol)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSectionSymbol),ptr, true));
93 ret = (OdDbSectionSymbol)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSectionSymbol),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbSectionSymbol)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSectionSymbol),ptr, true);
98 }
99
101 return ret;
102}
103
109
115
116 public OdResult getBulgeAt(int idx, out double bulge) {
117 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSectionSymbol_getBulgeAt(swigCPtr, idx, out bulge);
119 return ret;
120 }
121
122 public OdResult getIdentifierAt(int idx, ref string sName) {
123IntPtr tmp_sName = Marshal.StringToCoTaskMemUni(sName);
124 IntPtr saved_sName = tmp_sName;
125 try {
126 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSectionSymbol_getIdentifierAt(swigCPtr, idx, ref tmp_sName);
128 return ret;
129 } finally {
130if (tmp_sName != saved_sName) sName = Marshal.PtrToStringUni(tmp_sName);
131 }
132 }
133
139
145
150
156
161
167
173
179
185
191
197
203
209
215
220
226
232
233 public void resetLabelOffsets(bool bAllOffsets, int iVertex) {
234 TD_DbPINVOKE.OdDbSectionSymbol_resetLabelOffsets__SWIG_0(swigCPtr, bAllOffsets, iVertex);
236 }
237
242
247
253
254 protected static string getRealClassName(IntPtr ptr) {
255 string ret = TD_DbPINVOKE.OdDbSectionSymbol_getRealClassName(ptr /*SIMPLETYPE*/);
257 return ret;
258 }
259
264 public void vb_gripStatus(Teigha.Core.GripStat status) { this.gripStatus(status); }
265
271
276 public string vb_material() { return this.material(); }
277
282 public virtual Teigha.TD.CollisionType vb_collisionType() { return this.collisionType(); }
283
288 public string vb_linetype() { return this.linetype(); }
289
295
301
302}
303
304}
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeVector3dArray obj)
static HandleRef getCPtr(OdGeVector3d obj)
virtual OdGiDrawable.DrawableType drawableType()
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(OdStringArray obj)
LineWeight lineWeight()
virtual CollisionType collisionType()
virtual void gripStatus(GripStat status)
Visibility visibility()
Teigha.Core.LineWeight vb_lineWeight()
OdResult addSectionPoint(OdGePoint3d pt, double bulge)
override OdRxObject queryX(OdRxClass protocolClass)
Teigha.TD.Visibility vb_visibility()
OdResult setIdentifierNameAt(int idx, String name)
static OdDbSectionSymbol cast(OdRxObject pObj)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
OdResult getSectionPointAt(int idx, OdGePoint3d pt)
virtual Teigha.TD.CollisionType vb_collisionType()
OdResult setLabelNames(OdStringArray names)
OdResult getIdentifierAt(int idx, ref string sName)
void setViewDirectionLeft(bool bLeft)
void resetLabelOffsets(bool bAllOffsets, int iVertex)
static new OdRxClass desc()
OdResult setSectionPointAt(int idx, OdGePoint3d pt)
void vb_gripStatus(Teigha.Core.GripStat status)
static HandleRef getCPtr(OdDbSectionSymbol obj)
OdResult setSectionPoints(OdGePoint3dArray pts, OdGeDoubleArray bulges)
OdResult addSectionPoint(OdGePoint3d pt)
void resetLabelOffsets(bool bAllOffsets)
OdResult getIdentifierOffsetAt(int idx, OdGeVector3d offset)
OdResult setSectionPointAt(int idx, OdGePoint3d pt, double bulge)
OdResult setLabelOffsets(OdGeVector3dArray offsets)
OdResult setIdentifierOffsetAt(int idx, OdGeVector3d offset)
OdResult removeSectionPointAt(int idx)
static new OdDbSectionSymbol createObject()
override void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)
OdResult getBulgeAt(int idx, out double bulge)
OdDbSectionSymbol(IntPtr cPtr, bool cMemoryOwn)
OdResult setSectionPoints(OdGePoint3dArray pts)
static global::System.Exception Retrieve()
static string OdDbSectionSymbol_getRealClassName(IntPtr jarg1)
static int OdDbSectionSymbol_setSectionPoints__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSectionSymbol_getIdentifierAt(HandleRef jarg1, int jarg2, ref IntPtr jarg3)
static IntPtr OdDbSectionSymbol_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdDbSectionSymbol_resetLabelOffsets__SWIG_0(HandleRef jarg1, bool jarg2, int jarg3)
static int OdDbSectionSymbol_addSectionPoint__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static IntPtr OdDbSectionSymbol_createObject()
static IntPtr OdDbSectionSymbol_cast(HandleRef jarg1)
static void OdDbSectionSymbol_resetLabelOffsets__SWIG_1(HandleRef jarg1, bool jarg2)
static int OdDbSectionSymbol_setLabelNames(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSectionSymbol_setIdentifierOffsetAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdDbSectionSymbol(HandleRef jarg1)
static int OdDbSectionSymbol_sectionPointsCount(HandleRef jarg1)
static void OdDbSectionSymbol_setViewDirectionLeft(HandleRef jarg1, bool jarg2)
static bool OdDbSectionSymbol_isHalfSection(HandleRef jarg1)
static bool OdDbSectionSymbol_isViewDirectionLeft(HandleRef jarg1)
static int OdDbSectionSymbol_getSectionPointAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSectionSymbol_removeSectionPointAt(HandleRef jarg1, int jarg2)
static int OdDbSectionSymbol_setSectionPointAt__SWIG_0(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static int OdDbSectionSymbol_setSectionPoints__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSectionSymbol_getBulgeAt(HandleRef jarg1, int jarg2, out double jarg3)
static int OdDbSectionSymbol_getIdentifierOffsetAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDbSectionSymbol_resetLabelOffsets__SWIG_2(HandleRef jarg1)
static int OdDbSectionSymbol_addSectionPoint__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSectionSymbol_setLabelOffsets(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbSectionSymbol_isA(HandleRef jarg1)
static void OdDbSectionSymbol_setIsHalfSection(HandleRef jarg1, bool jarg2)
static IntPtr OdDbSectionSymbol_desc()
static void OdDbSectionSymbol_clearSectionPoints(HandleRef jarg1)
static int OdDbSectionSymbol_setSectionPointAt__SWIG_1(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDbSectionSymbol_flipDirection(HandleRef jarg1)
static int OdDbSectionSymbol_setIdentifierNameAt(HandleRef jarg1, int jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)