Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgLineStyleDefTable.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 OdDgLineStyleDefTable(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgLineStyleDefTable_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgLineStyleDefTable 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
46 return ret;
47 }
48
49 public override byte getElementSubType() {
50// test csout
51 /*SIMPLETYPE*/
54 return ret;
55 }
56
57 public static OdDgLineStyleDefTable cast(OdRxObject pObj) {// OdSmartPtr<OdDgLineStyleDefTable>
58 MemoryManager mMan = MemoryManager.GetMemoryManager();
59 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61
62 OdDgLineStyleDefTable ret = null;
63 if (null != mTrans)
64 {
65 mTrans.AddObject((OdDgLineStyleDefTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTable),ptr, true));
66 ret = (OdDgLineStyleDefTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTable),ptr, false);
67 }
68 else
69 {
70 ret = (OdDgLineStyleDefTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTable),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.OdDgLineStyleDefTable_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.OdDgLineStyleDefTable_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.OdDgLineStyleDefTable_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
93
95 return ret;
96}
97
98 public new static OdDgLineStyleDefTable createObject() {// OdSmartPtr<OdDgLineStyleDefTable>
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
102
103 OdDgLineStyleDefTable ret = null;
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdDgLineStyleDefTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTable),ptr, true));
107 ret = (OdDgLineStyleDefTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTable),ptr, false);
108 }
109 else
110 {
111 ret = (OdDgLineStyleDefTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTable),ptr, true);
112 }
113
115 return ret;
116}
117
118 public override void add(OdDgTableRecord pRecord, bool bCheckData) {
121 }
122
123 public override void add(OdDgTableRecord pRecord) {
126 }
127
128 public virtual void addSymbol(OdDgCellHeader2d pCell2d) {
131 }
132
133 public virtual void addSymbol(OdDgCellHeader3d pCell3d) {
136 }
137
138 public override OdDgElementId getAt(String recordName, bool getErasedRecord) {
139 OdDgElementId ret = new OdDgElementId(TG_DbPINVOKE.OdDgLineStyleDefTable_getAt__SWIG_0(swigCPtr, recordName, getErasedRecord), true);
141 return ret;
142 }
143
144 public override OdDgElementId getAt(String recordName) {
147 return ret;
148 }
149
150 public OdDgLineStyleDefTableRecord getRscLineStyleDef(String strLineStyleName) {// OdDgLineStyleDefTableRecordPtr
151 MemoryManager mMan = MemoryManager.GetMemoryManager();
152 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
153 IntPtr ptr = TG_DbPINVOKE.OdDgLineStyleDefTable_getRscLineStyleDef__SWIG_0(swigCPtr, strLineStyleName);
154
156 if (null != mTrans)
157 {
158 mTrans.AddObject((OdDgLineStyleDefTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTableRecord),ptr, true));
159 ret = (OdDgLineStyleDefTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTableRecord),ptr, false);
160 }
161 else
162 {
163 ret = (OdDgLineStyleDefTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTableRecord),ptr, true);
164 }
165
167 return ret;
168}
169
170 public OdDgLineStyleDefTableRecord getRscLineStyleDef(UInt32 /*SIMPLETYPE*/ entryId, OdDgLineStyleResource.OdLsResourceType rscType) {// OdDgLineStyleDefTableRecordPtr
171 MemoryManager mMan = MemoryManager.GetMemoryManager();
172 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
173 IntPtr ptr = TG_DbPINVOKE.OdDgLineStyleDefTable_getRscLineStyleDef__SWIG_1(swigCPtr, entryId /*SIMPLETYPE*/, (int)rscType);
174
176 if (null != mTrans)
177 {
178 mTrans.AddObject((OdDgLineStyleDefTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTableRecord),ptr, true));
179 ret = (OdDgLineStyleDefTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTableRecord),ptr, false);
180 }
181 else
182 {
183 ret = (OdDgLineStyleDefTableRecord)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLineStyleDefTableRecord),ptr, true);
184 }
185
187 return ret;
188}
189
190 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
191 string ret = TG_DbPINVOKE.OdDgLineStyleDefTable_getRealClassName(ptr /*SIMPLETYPE*/);
193 return ret;
194 }
195
200 public virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status) { this.gripStatus(status); }
201
207
208}
209
210}
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDgCellHeader2d obj)
static HandleRef getCPtr(OdDgCellHeader3d obj)
virtual void gripStatus(OdDgElement.GripStat status)
Definition: OdDgElement.cs:877
virtual void addSymbol(OdDgCellHeader3d pCell3d)
OdDgLineStyleDefTableRecord getRscLineStyleDef(String strLineStyleName)
static new OdDgLineStyleDefTable createObject()
override void add(OdDgTableRecord pRecord, bool bCheckData)
override OdRxObject queryX(OdRxClass protocolClass)
override OdDgElementId getAt(String recordName)
override OdDgElementId getAt(String recordName, bool getErasedRecord)
OdDgLineStyleDefTable(IntPtr cPtr, bool cMemoryOwn)
OdDgLineStyleDefTableRecord getRscLineStyleDef(UInt32 entryId, OdDgLineStyleResource.OdLsResourceType rscType)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
override void Dispose(bool disposing)
virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status)
override OdDgElement.ElementTypes getElementType()
static HandleRef getCPtr(OdDgLineStyleDefTable obj)
override void add(OdDgTableRecord pRecord)
static OdDgLineStyleDefTable cast(OdRxObject pObj)
static string getRealClassName(IntPtr ptr)
virtual void addSymbol(OdDgCellHeader2d pCell2d)
static HandleRef getCPtr(OdDgTableRecord obj)
static global::System.Exception Retrieve()
static global::System.IntPtr OdDgLineStyleDefTable_getAt__SWIG_1(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgLineStyleDefTable_addSymbol__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static string OdDgLineStyleDefTable_getRealClassName(IntPtr jarg1)
static IntPtr OdDgLineStyleDefTable_isA(HandleRef jarg1)
static void OdDgLineStyleDefTable_add__SWIG_0(HandleRef jarg1, HandleRef jarg2, bool jarg3)
static byte OdDgLineStyleDefTable_getElementSubType(HandleRef jarg1)
static void OdDgLineStyleDefTable_add__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgLineStyleDefTable_createObject()
static IntPtr OdDgLineStyleDefTable_desc()
static void delete_OdDgLineStyleDefTable(HandleRef jarg1)
static IntPtr OdDgLineStyleDefTable_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgLineStyleDefTable_getRscLineStyleDef__SWIG_1(HandleRef jarg1, UInt32 jarg2, int jarg3)
static global::System.IntPtr OdDgLineStyleDefTable_getAt__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, bool jarg3)
static void OdDgLineStyleDefTable_addSymbol__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgLineStyleDefTable_cast(HandleRef jarg1)
static IntPtr OdDgLineStyleDefTable_getRscLineStyleDef__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdDgLineStyleDefTable_getElementType(HandleRef jarg1)