Extended .NET SDK Documentation 2024 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
104 public int sectionPointsCount() {
107 return ret;
108 }
109
113 }
114
115 public void getLabelOffsets(OdGeVector3dArray offsets) {
118 }
119
123 return ret;
124 }
125
126 public OdResult getBulgeAt(int idx, out double bulge) {
127 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSectionSymbol_getBulgeAt(swigCPtr, idx, out bulge);
129 return ret;
130 }
131
132 public OdResult getLabelNameAt(int idx, ref string sName) {
133IntPtr tmp_sName = Marshal.StringToCoTaskMemUni(sName);
134 IntPtr saved_sName = tmp_sName;
135 try {
136 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSectionSymbol_getLabelNameAt(swigCPtr, idx, ref tmp_sName);
138 return ret;
139 } finally {
140if (tmp_sName != saved_sName) sName = Marshal.PtrToStringUni(tmp_sName);
141 }
142 }
143
144 public OdResult getLabelOffsetAt(int idx, OdGeVector3d offset) {
147 return ret;
148 }
149
150 public bool isViewDirectionLeft() {
153 return ret;
154 }
155
156 public void setViewDirectionLeft(bool bLeft) {
159 }
160
161 public bool isHalfSection() {
164 return ret;
165 }
166
167 public void setIsHalfSection(bool bHalf) {
170 }
171
172 public OdResult addSectionPoint(OdGePoint3d pt, double bulge) {
175 return ret;
176 }
177
181 return ret;
182 }
183
184 public OdResult setSectionPointAt(int idx, OdGePoint3d pt, double bulge) {
187 return ret;
188 }
189
193 return ret;
194 }
195
196 public OdResult setLabelNameAt(int idx, String name) {
199 return ret;
200 }
201
202 public OdResult setLabelOffsetAt(int idx, OdGeVector3d offset) {
205 return ret;
206 }
207
208 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
209 string ret = TD_DbPINVOKE.OdDbSectionSymbol_getRealClassName(ptr /*SIMPLETYPE*/);
211 return ret;
212 }
213
218 public void vb_gripStatus(Teigha.Core.GripStat status) { this.gripStatus(status); }
219
225
230 public string vb_material() { return this.material(); }
231
236 public virtual Teigha.TD.CollisionType vb_collisionType() { return this.collisionType(); }
237
242 public string vb_linetype() { return this.linetype(); }
243
249
255
256}
257
258}
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3dArray obj)
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
LineWeight lineWeight()
Definition: OdDbEntity.cs:556
virtual CollisionType collisionType()
Definition: OdDbEntity.cs:596
virtual void gripStatus(GripStat status)
Definition: OdDbEntity.cs:935
Visibility visibility()
Definition: OdDbEntity.cs:527
Teigha.Core.LineWeight vb_lineWeight()
void getLabelOffsets(OdGeVector3dArray offsets)
OdResult addSectionPoint(OdGePoint3d pt, double bulge)
override OdRxObject queryX(OdRxClass protocolClass)
Teigha.TD.Visibility vb_visibility()
static OdDbSectionSymbol cast(OdRxObject pObj)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
OdResult getLabelNameAt(int idx, ref string sName)
OdResult setLabelNameAt(int idx, String name)
OdResult getSectionPointAt(int idx, OdGePoint3d pt)
virtual Teigha.TD.CollisionType vb_collisionType()
void setViewDirectionLeft(bool bLeft)
static new OdRxClass desc()
OdResult setSectionPointAt(int idx, OdGePoint3d pt)
void vb_gripStatus(Teigha.Core.GripStat status)
static HandleRef getCPtr(OdDbSectionSymbol obj)
OdResult getLabelOffsetAt(int idx, OdGeVector3d offset)
OdResult addSectionPoint(OdGePoint3d pt)
OdResult setLabelOffsetAt(int idx, OdGeVector3d offset)
OdResult setSectionPointAt(int idx, OdGePoint3d pt, double bulge)
override OdRxClass isA()
static new OdDbSectionSymbol createObject()
override void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)
OdResult getBulgeAt(int idx, out double bulge)
void getSectionPoints(OdGePoint3dArray pts)
OdDbSectionSymbol(IntPtr cPtr, bool cMemoryOwn)
static global::System.Exception Retrieve()
static string OdDbSectionSymbol_getRealClassName(IntPtr jarg1)
static int OdDbSectionSymbol_setLabelNameAt(HandleRef jarg1, int jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static IntPtr OdDbSectionSymbol_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDbSectionSymbol_getLabelOffsetAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSectionSymbol_addSectionPoint__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static void OdDbSectionSymbol_getSectionPoints(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbSectionSymbol_createObject()
static IntPtr OdDbSectionSymbol_cast(HandleRef jarg1)
static void delete_OdDbSectionSymbol(HandleRef jarg1)
static int OdDbSectionSymbol_sectionPointsCount(HandleRef jarg1)
static void OdDbSectionSymbol_setViewDirectionLeft(HandleRef jarg1, bool jarg2)
static int OdDbSectionSymbol_getLabelNameAt(HandleRef jarg1, int jarg2, ref IntPtr jarg3)
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_setSectionPointAt__SWIG_0(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static int OdDbSectionSymbol_getBulgeAt(HandleRef jarg1, int jarg2, out double jarg3)
static void OdDbSectionSymbol_getLabelOffsets(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSectionSymbol_addSectionPoint__SWIG_1(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 int OdDbSectionSymbol_setLabelOffsetAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSectionSymbol_setSectionPointAt__SWIG_1(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)