Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDgLineStyleTable.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 OdDgLineStyleTable(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgLineStyleTable_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgLineStyleTable 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
48
49 public override byte getElementSubType() {
50// test csout
51 /*SIMPLETYPE*/
54 return ret;
55 }
56
57 public static OdDgLineStyleTable cast(OdRxObject pObj) {// OdSmartPtr<OdDgLineStyleTable>
58 MemoryManager mMan = MemoryManager.GetMemoryManager();
59 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61
62 OdDgLineStyleTable ret = null;
63 if (null != mTrans)
64 {
65 mTrans.AddObject((OdDgLineStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleTable),ptr, true));
66 ret = (OdDgLineStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleTable),ptr, false);
67 }
68 else
69 {
70 ret = (OdDgLineStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleTable),ptr, true);
71 }
72
74 return ret;
75}
76
77 public new static OdRxClass desc() {
78 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgLineStyleTable_desc(),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public override OdRxClass isA() {
85 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgLineStyleTable_isA(swigCPtr),false); /*createInt 3_2*/
86
88 return ret;
89}
90
91 public override OdRxObject queryX(OdRxClass protocolClass) {
92 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TG_DbPINVOKE.OdDgLineStyleTable_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
93
95 return ret;
96}
97
98 public new static OdDgLineStyleTable createObject() {// OdSmartPtr<OdDgLineStyleTable>
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
102
103 OdDgLineStyleTable ret = null;
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdDgLineStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleTable),ptr, true));
107 ret = (OdDgLineStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleTable),ptr, false);
108 }
109 else
110 {
111 ret = (OdDgLineStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleTable),ptr, true);
112 }
113
115 return ret;
116}
117
118 public override void add(OdDgTableRecord pRecord, bool bCheckData) {
121 }
122
127
128 public virtual UInt32 getRscLineStyleCount() {
129// test csout
130 /*SIMPLETYPE*/
133 return ret;
134 }
135
136 public virtual OdDgTableRecord getRscLineStyle(UInt32 uIndex) {// OdDgTableRecordPtr
137 MemoryManager mMan = MemoryManager.GetMemoryManager();
138 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
139 IntPtr ptr = TG_DbPINVOKE.OdDgLineStyleTable_getRscLineStyle__SWIG_0(swigCPtr, uIndex /*SIMPLETYPE*/);
140
141 OdDgTableRecord ret = null;
142 if (null != mTrans)
143 {
144 mTrans.AddObject((OdDgTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgTableRecord),ptr, true));
145 ret = (OdDgTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgTableRecord),ptr, false);
146 }
147 else
148 {
149 ret = (OdDgTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgTableRecord),ptr, true);
150 }
151
153 return ret;
154}
155
156 public virtual OdDgTableRecord getRscLineStyle(String strName) {// OdDgTableRecordPtr
157 MemoryManager mMan = MemoryManager.GetMemoryManager();
158 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
159 IntPtr ptr = TG_DbPINVOKE.OdDgLineStyleTable_getRscLineStyle__SWIG_1(swigCPtr, strName);
160
161 OdDgTableRecord ret = null;
162 if (null != mTrans)
163 {
164 mTrans.AddObject((OdDgTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgTableRecord),ptr, true));
165 ret = (OdDgTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgTableRecord),ptr, false);
166 }
167 else
168 {
169 ret = (OdDgTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgTableRecord),ptr, true);
170 }
171
173 return ret;
174}
175
181
182 protected static string getRealClassName(IntPtr ptr) {
183 string ret = TG_DbPINVOKE.OdDgLineStyleTable_getRealClassName(ptr /*SIMPLETYPE*/);
185 return ret;
186 }
187
192 public virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status) { this.gripStatus(status); }
193
199
200}
201
202}
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(OdDgDatabase obj)
virtual void gripStatus(OdDgElement.GripStat status)
static string getRealClassName(IntPtr ptr)
static new OdDgLineStyleTable createObject()
static bool loadLineStylesFromRscFile(OdDgDatabase pDb, String strFilename)
override OdDgElement.ElementTypes getElementType()
override void Dispose(bool disposing)
override void add(OdDgTableRecord pRecord)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
virtual OdDgTableRecord getRscLineStyle(String strName)
override void add(OdDgTableRecord pRecord, bool bCheckData)
virtual OdDgTableRecord getRscLineStyle(UInt32 uIndex)
static HandleRef getCPtr(OdDgLineStyleTable obj)
virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status)
override OdRxObject queryX(OdRxClass protocolClass)
static new OdRxClass desc()
OdDgLineStyleTable(IntPtr cPtr, bool cMemoryOwn)
static OdDgLineStyleTable cast(OdRxObject pObj)
static HandleRef getCPtr(OdDgTableRecord obj)
static global::System.Exception Retrieve()
static IntPtr OdDgLineStyleTable_isA(HandleRef jarg1)
static byte OdDgLineStyleTable_getElementSubType(HandleRef jarg1)
static IntPtr OdDgLineStyleTable_getRscLineStyle__SWIG_0(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdDgLineStyleTable_createObject()
static string OdDgLineStyleTable_getRealClassName(IntPtr jarg1)
static void OdDgLineStyleTable_add__SWIG_0(HandleRef jarg1, HandleRef jarg2, bool jarg3)
static IntPtr OdDgLineStyleTable_cast(HandleRef jarg1)
static IntPtr OdDgLineStyleTable_getRscLineStyle__SWIG_1(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgLineStyleTable_add__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static void delete_OdDgLineStyleTable(HandleRef jarg1)
static IntPtr OdDgLineStyleTable_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDgLineStyleTable_getElementType(HandleRef jarg1)
static bool OdDgLineStyleTable_loadLineStylesFromRscFile(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr OdDgLineStyleTable_desc()
static UInt32 OdDgLineStyleTable_getRscLineStyleCount(HandleRef jarg1)