Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgLinePointResource.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 OdDgLinePointResource(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgLinePointResource_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgLinePointResource 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 OdDgLinePointResource cast(OdRxObject pObj) {// OdSmartPtr<OdDgLinePointResource>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDgLinePointResource ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDgLinePointResource)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinePointResource),ptr, true));
52 ret = (OdDgLinePointResource)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinePointResource),ptr, false);
53 }
54 else
55 {
56 ret = (OdDgLinePointResource)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinePointResource),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),TG_DbPINVOKE.OdDgLinePointResource_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),TG_DbPINVOKE.OdDgLinePointResource_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),TG_DbPINVOKE.OdDgLinePointResource_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static OdDgLinePointResource createObject() {// OdSmartPtr<OdDgLinePointResource>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDgLinePointResource ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDgLinePointResource)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinePointResource),ptr, true));
93 ret = (OdDgLinePointResource)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinePointResource),ptr, false);
94 }
95 else
96 {
97 ret = (OdDgLinePointResource)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinePointResource),ptr, true);
98 }
99
101 return ret;
102}
103
104 public override void dgnInFields(OdDgFiler pFiler, UInt32 /*SIMPLETYPE*/ dataSize) {
105 TG_DbPINVOKE.OdDgLinePointResource_dgnInFields(swigCPtr, OdDgFiler.getCPtr(pFiler), dataSize /*SIMPLETYPE*/);
107 }
108
109 public override void dgnOutFields(OdDgFiler pFiler) {
112 }
113
114 public override UInt16 getType() {
115// test csout
116 /*SIMPLETYPE*/
117 UInt16 ret = TG_DbPINVOKE.OdDgLinePointResource_getType(swigCPtr);
119 return ret;
120 }
121
122 public override UInt16 getRawDataSize() {
123// test csout
124 /*SIMPLETYPE*/
127 return ret;
128 }
129
133 return ret;
134}
135
136 public void setDescription(String strDescription) {
137 TG_DbPINVOKE.OdDgLinePointResource_setDescription(swigCPtr, strDescription);
139 }
140
144 return ret;
145 }
146
150 }
151
152 public UInt64 getBasePatternHandleId() {
153// test csout
154 /*SIMPLETYPE*/
157 return ret;
158 }
159
160 public void setBasePatternHandleId(UInt64 /*SIMPLETYPE*/ idBasePattern) {
161 TG_DbPINVOKE.OdDgLinePointResource_setBasePatternHandleId(swigCPtr, idBasePattern /*SIMPLETYPE*/);
163 }
164
165 public UInt32 getBasePatternEntryId() {
166// test csout
167 /*SIMPLETYPE*/
170 return ret;
171 }
172
173 public void setBasePatternEntryId(UInt32 /*SIMPLETYPE*/ idEntry) {
174 TG_DbPINVOKE.OdDgLinePointResource_setBasePatternEntryId(swigCPtr, idEntry /*SIMPLETYPE*/);
176 }
177
178 public UInt32 getSymbolCount() {
179// test csout
180 /*SIMPLETYPE*/
183 return ret;
184 }
185
186 public bool getSymbol(UInt32 /*SIMPLETYPE*/ uIndex, OdDgLinePointResourceSymInfo symbolInfo) {
187 bool ret = TG_DbPINVOKE.OdDgLinePointResource_getSymbol(swigCPtr, uIndex /*SIMPLETYPE*/, OdDgLinePointResourceSymInfo.getCPtr(symbolInfo));
189 return ret;
190 }
191
192 public bool setSymbol(UInt32 /*SIMPLETYPE*/ uIndex, OdDgLinePointResourceSymInfo symbolInfo) {
193 bool ret = TG_DbPINVOKE.OdDgLinePointResource_setSymbol(swigCPtr, uIndex /*SIMPLETYPE*/, OdDgLinePointResourceSymInfo.getCPtr(symbolInfo));
195 return ret;
196 }
197
198 public void addSymbol(OdDgLinePointResourceSymInfo symbolInfo) {
201 }
202
203 public bool deleteSymbol(UInt32 /*SIMPLETYPE*/ uIndex) {
204 bool ret = TG_DbPINVOKE.OdDgLinePointResource_deleteSymbol(swigCPtr, uIndex /*SIMPLETYPE*/);
206 return ret;
207 }
208
209 public override void scaleResource(double dScale) {
212 }
213
214 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
215 string ret = TG_DbPINVOKE.OdDgLinePointResource_getRealClassName(ptr /*SIMPLETYPE*/);
217 return ret;
218 }
219
220}
221
222}
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDgFiler obj)
Definition: OdDgFiler.cs:26
void addSymbol(OdDgLinePointResourceSymInfo symbolInfo)
override void dgnInFields(OdDgFiler pFiler, UInt32 dataSize)
static string getRealClassName(IntPtr ptr)
OdDgLinePointResource(IntPtr cPtr, bool cMemoryOwn)
static new OdDgLinePointResource createObject()
void setBasePatternType(OdDgLineStyleResource.OdLsResourceType iType)
static HandleRef getCPtr(OdDgLinePointResource obj)
bool setSymbol(UInt32 uIndex, OdDgLinePointResourceSymInfo symbolInfo)
void setBasePatternEntryId(UInt32 idEntry)
static OdDgLinePointResource cast(OdRxObject pObj)
bool getSymbol(UInt32 uIndex, OdDgLinePointResourceSymInfo symbolInfo)
void setBasePatternHandleId(UInt64 idBasePattern)
override void Dispose(bool disposing)
override void dgnOutFields(OdDgFiler pFiler)
void setDescription(String strDescription)
override void scaleResource(double dScale)
OdDgLineStyleResource.OdLsResourceType getBasePatternType()
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdDgLinePointResourceSymInfo obj)
static global::System.Exception Retrieve()
static bool OdDgLinePointResource_getSymbol(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgLinePointResource_setDescription(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgLinePointResource_dgnOutFields(HandleRef jarg1, HandleRef jarg2)
static UInt32 OdDgLinePointResource_getBasePatternEntryId(HandleRef jarg1)
static void OdDgLinePointResource_scaleResource(HandleRef jarg1, double jarg2)
static int OdDgLinePointResource_getBasePatternType(HandleRef jarg1)
static void OdDgLinePointResource_addSymbol(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgLinePointResource_isA(HandleRef jarg1)
static IntPtr OdDgLinePointResource_desc()
static UInt32 OdDgLinePointResource_getSymbolCount(HandleRef jarg1)
static bool OdDgLinePointResource_deleteSymbol(HandleRef jarg1, UInt32 jarg2)
static bool OdDgLinePointResource_setSymbol(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static UInt64 OdDgLinePointResource_getBasePatternHandleId(HandleRef jarg1)
static string OdDgLinePointResource_getRealClassName(IntPtr jarg1)
static IntPtr OdDgLinePointResource_createObject()
static String OdDgLinePointResource_getDescription(HandleRef jarg1)
static IntPtr OdDgLinePointResource_queryX(HandleRef jarg1, HandleRef jarg2)
static UInt16 OdDgLinePointResource_getType(HandleRef jarg1)
static void OdDgLinePointResource_setBasePatternHandleId(HandleRef jarg1, UInt64 jarg2)
static void delete_OdDgLinePointResource(HandleRef jarg1)
static void OdDgLinePointResource_setBasePatternEntryId(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdDgLinePointResource_cast(HandleRef jarg1)
static void OdDgLinePointResource_dgnInFields(HandleRef jarg1, HandleRef jarg2, UInt32 jarg3)
static UInt16 OdDgLinePointResource_getRawDataSize(HandleRef jarg1)
static void OdDgLinePointResource_setBasePatternType(HandleRef jarg1, int jarg2)