Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgPsPlotStyle.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 OdDgPsPlotStyle(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgPsPlotStyle_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgPsPlotStyle 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 OdDgPsPlotStyle cast(OdRxObject pObj) {// OdSmartPtr<OdDgPsPlotStyle>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDgPsPlotStyle ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDgPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgPsPlotStyle),ptr, true));
52 ret = (OdDgPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgPsPlotStyle),ptr, false);
53 }
54 else
55 {
56 ret = (OdDgPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgPsPlotStyle),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.OdDgPsPlotStyle_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.OdDgPsPlotStyle_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.OdDgPsPlotStyle_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDgPsPlotStyle createObject() {// OdSmartPtr<OdDgPsPlotStyle>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDgPsPlotStyle ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDgPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgPsPlotStyle),ptr, true));
93 ret = (OdDgPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgPsPlotStyle),ptr, false);
94 }
95 else
96 {
97 ret = (OdDgPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgPsPlotStyle),ptr, true);
98 }
99
101 return ret;
102}
103
104 public virtual String fileName() {
105 string ret = TG_DbPINVOKE.OdDgPsPlotStyle_fileName(swigCPtr);
107 return ret;
108}
109
110 public virtual void setFileName(String fileName) {
113 }
114
115 public virtual void getGeneralData(OdDgPsPlotStyleGeneralData data) {
118 }
119
120 public virtual void setGeneralData(OdDgPsPlotStyleGeneralData data) {
123 }
124
125 public virtual UInt32 getWeightDataCount() {
126// test csout
127 /*SIMPLETYPE*/
128 UInt32 ret = TG_DbPINVOKE.OdDgPsPlotStyle_getWeightDataCount(swigCPtr);
130 return ret;
131 }
132
133 public virtual bool getWeightData(UInt32 /*SIMPLETYPE*/ uIndex, OdDgPsPlotStyleWeightData linwWeightData, out UInt32 /*SIMPLETYPE*/ lineWeightIndex) {
134 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_getWeightData(swigCPtr, uIndex /*SIMPLETYPE*/, OdDgPsPlotStyleWeightData.getCPtr(linwWeightData), out lineWeightIndex);
136 return ret;
137 }
138
139 public virtual void addWeightData(OdDgPsPlotStyleWeightData data, UInt32 /*SIMPLETYPE*/ lineWeightIndex) {
140 TG_DbPINVOKE.OdDgPsPlotStyle_addWeightData(swigCPtr, OdDgPsPlotStyleWeightData.getCPtr(data), lineWeightIndex /*SIMPLETYPE*/);
142 }
143
144 public virtual void deleteWeightData(UInt32 /*SIMPLETYPE*/ lineWeightIndex) {
145 TG_DbPINVOKE.OdDgPsPlotStyle_deleteWeightData(swigCPtr, lineWeightIndex /*SIMPLETYPE*/);
147 }
148
149 public virtual bool isLineWeightDataPresent(UInt32 /*SIMPLETYPE*/ lineWeightIndex) {
150 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_isLineWeightDataPresent(swigCPtr, lineWeightIndex /*SIMPLETYPE*/);
152 return ret;
153 }
154
155 public virtual bool getWeightDataByIndex(UInt32 /*SIMPLETYPE*/ lineWeightIndex, OdDgPsPlotStyleWeightData data, bool bUseDefaultData) {
156 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_getWeightDataByIndex__SWIG_0(swigCPtr, lineWeightIndex /*SIMPLETYPE*/, OdDgPsPlotStyleWeightData.getCPtr(data), bUseDefaultData);
158 return ret;
159 }
160
161 public virtual bool getWeightDataByIndex(UInt32 /*SIMPLETYPE*/ lineWeightIndex, OdDgPsPlotStyleWeightData data) {
162 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_getWeightDataByIndex__SWIG_1(swigCPtr, lineWeightIndex /*SIMPLETYPE*/, OdDgPsPlotStyleWeightData.getCPtr(data));
164 return ret;
165 }
166
167 public virtual UInt32 getColorDataCount() {
168// test csout
169 /*SIMPLETYPE*/
170 UInt32 ret = TG_DbPINVOKE.OdDgPsPlotStyle_getColorDataCount(swigCPtr);
172 return ret;
173 }
174
175 public virtual bool getColorData(UInt32 /*SIMPLETYPE*/ uIndex, OdDgPsPlotStyleColorData data, out UInt32 /*SIMPLETYPE*/ uColorIndex) {
176 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_getColorData(swigCPtr, uIndex /*SIMPLETYPE*/, OdDgPsPlotStyleColorData.getCPtr(data), out uColorIndex);
178 return ret;
179 }
180
181 public virtual void addColorData(OdDgPsPlotStyleColorData data, UInt32 /*SIMPLETYPE*/ uColorIndex) {
182 TG_DbPINVOKE.OdDgPsPlotStyle_addColorData(swigCPtr, OdDgPsPlotStyleColorData.getCPtr(data), uColorIndex /*SIMPLETYPE*/);
184 }
185
186 public virtual void deleteColorData(UInt32 /*SIMPLETYPE*/ uColorIndex) {
187 TG_DbPINVOKE.OdDgPsPlotStyle_deleteColorData(swigCPtr, uColorIndex /*SIMPLETYPE*/);
189 }
190
191 public virtual bool isColorDataPresent(UInt32 /*SIMPLETYPE*/ uColorIndex) {
192 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_isColorDataPresent(swigCPtr, uColorIndex /*SIMPLETYPE*/);
194 return ret;
195 }
196
197 public virtual bool getColorDataByIndex(UInt32 /*SIMPLETYPE*/ uColorIndex, OdDgPsPlotStyleColorData data) {
198 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_getColorDataByIndex(swigCPtr, uColorIndex /*SIMPLETYPE*/, OdDgPsPlotStyleColorData.getCPtr(data));
200 return ret;
201 }
202
203 public virtual bool getUseColorDataFlag() {
206 return ret;
207 }
208
209 public virtual void addStringPair(String strActual, String strReplacement) {
210 TG_DbPINVOKE.OdDgPsPlotStyle_addStringPair(swigCPtr, strActual, strReplacement);
212 }
213
214 public virtual void deleteStringPair(String strActual) {
217 }
218
219 public virtual String getReplacementString(String strActual) {
220 string ret = TG_DbPINVOKE.OdDgPsPlotStyle_getReplacementString(swigCPtr, strActual);
222 return ret;
223}
224
225 public virtual bool isReplacementStringPresent(String strActual) {
226 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_isReplacementStringPresent(swigCPtr, strActual);
228 return ret;
229 }
230
231 public virtual UInt32 getStringPairCoint() {
232// test csout
233 /*SIMPLETYPE*/
234 UInt32 ret = TG_DbPINVOKE.OdDgPsPlotStyle_getStringPairCoint(swigCPtr);
236 return ret;
237 }
238
239 public virtual bool getStringPair(UInt32 /*SIMPLETYPE*/ uIndex, ref string strActual, ref string strReplacement) {
240IntPtr tmp_strActual = Marshal.StringToCoTaskMemUni(strActual);
241 IntPtr saved_strActual = tmp_strActual;
242IntPtr tmp_strReplacement = Marshal.StringToCoTaskMemUni(strReplacement);
243 IntPtr saved_strReplacement = tmp_strReplacement;
244 try {
245 bool ret = TG_DbPINVOKE.OdDgPsPlotStyle_getStringPair(swigCPtr, uIndex /*SIMPLETYPE*/, ref tmp_strActual, ref tmp_strReplacement);
247 return ret;
248 } finally {
249if (tmp_strActual != saved_strActual) strActual = Marshal.PtrToStringUni(tmp_strActual);
250if (tmp_strReplacement != saved_strReplacement) strReplacement = Marshal.PtrToStringUni(tmp_strReplacement);
251 }
252 }
253
254 public virtual UInt32 getSectionDataCount() {
255// test csout
256 /*SIMPLETYPE*/
259 return ret;
260 }
261
262 public virtual OdDgPsPlotStyleSectionData getSectionData(UInt32 /*SIMPLETYPE*/ uIndex) {
265 return ret;
266 }
267
268 public virtual void setSectionData(UInt32 /*SIMPLETYPE*/ uIndex, OdDgPsPlotStyleSectionData data) {
271 }
272
273 public virtual void addSectionData(OdDgPsPlotStyleSectionData data) {
276 }
277
278 public virtual void deleteSectionData(UInt32 /*SIMPLETYPE*/ uIndex) {
279 TG_DbPINVOKE.OdDgPsPlotStyle_deleteSectionData(swigCPtr, uIndex /*SIMPLETYPE*/);
281 }
282
283 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
284 string ret = TG_DbPINVOKE.OdDgPsPlotStyle_getRealClassName(ptr /*SIMPLETYPE*/);
286 return ret;
287 }
288
289}
290
291}
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDgPsPlotStyleColorData obj)
static HandleRef getCPtr(OdDgPsPlotStyleGeneralData obj)
virtual void addWeightData(OdDgPsPlotStyleWeightData data, UInt32 lineWeightIndex)
virtual void deleteColorData(UInt32 uColorIndex)
virtual bool isColorDataPresent(UInt32 uColorIndex)
override OdRxObject queryX(OdRxClass protocolClass)
virtual void setFileName(String fileName)
virtual String getReplacementString(String strActual)
virtual UInt32 getStringPairCoint()
virtual bool getStringPair(UInt32 uIndex, ref string strActual, ref string strReplacement)
static string getRealClassName(IntPtr ptr)
virtual void addStringPair(String strActual, String strReplacement)
OdDgPsPlotStyle(IntPtr cPtr, bool cMemoryOwn)
static new OdRxClass desc()
virtual bool getWeightData(UInt32 uIndex, OdDgPsPlotStyleWeightData linwWeightData, out UInt32 lineWeightIndex)
virtual bool isReplacementStringPresent(String strActual)
override OdRxClass isA()
virtual void addColorData(OdDgPsPlotStyleColorData data, UInt32 uColorIndex)
virtual UInt32 getSectionDataCount()
virtual void setGeneralData(OdDgPsPlotStyleGeneralData data)
static OdDgPsPlotStyle cast(OdRxObject pObj)
virtual void setSectionData(UInt32 uIndex, OdDgPsPlotStyleSectionData data)
virtual bool getWeightDataByIndex(UInt32 lineWeightIndex, OdDgPsPlotStyleWeightData data, bool bUseDefaultData)
virtual OdDgPsPlotStyleSectionData getSectionData(UInt32 uIndex)
virtual bool getWeightDataByIndex(UInt32 lineWeightIndex, OdDgPsPlotStyleWeightData data)
virtual bool getColorDataByIndex(UInt32 uColorIndex, OdDgPsPlotStyleColorData data)
static OdDgPsPlotStyle createObject()
virtual void deleteSectionData(UInt32 uIndex)
virtual void addSectionData(OdDgPsPlotStyleSectionData data)
override void Dispose(bool disposing)
virtual void getGeneralData(OdDgPsPlotStyleGeneralData data)
virtual bool isLineWeightDataPresent(UInt32 lineWeightIndex)
virtual void deleteStringPair(String strActual)
virtual UInt32 getWeightDataCount()
static HandleRef getCPtr(OdDgPsPlotStyle obj)
virtual bool getUseColorDataFlag()
virtual void deleteWeightData(UInt32 lineWeightIndex)
virtual bool getColorData(UInt32 uIndex, OdDgPsPlotStyleColorData data, out UInt32 uColorIndex)
virtual UInt32 getColorDataCount()
static HandleRef getCPtr(OdDgPsPlotStyleSectionData obj)
static HandleRef getCPtr(OdDgPsPlotStyleWeightData obj)
static global::System.Exception Retrieve()
static String OdDgPsPlotStyle_getReplacementString(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt32 OdDgPsPlotStyle_getWeightDataCount(HandleRef jarg1)
static IntPtr OdDgPsPlotStyle_cast(HandleRef jarg1)
static void delete_OdDgPsPlotStyle(HandleRef jarg1)
static IntPtr OdDgPsPlotStyle_createObject()
static bool OdDgPsPlotStyle_isReplacementStringPresent(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgPsPlotStyle_getGeneralData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgPsPlotStyle_getStringPair(HandleRef jarg1, UInt32 jarg2, ref IntPtr jarg3, ref IntPtr jarg4)
static void OdDgPsPlotStyle_addColorData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static UInt32 OdDgPsPlotStyle_getStringPairCoint(HandleRef jarg1)
static IntPtr OdDgPsPlotStyle_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdDgPsPlotStyle_addWeightData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static global::System.IntPtr OdDgPsPlotStyle_getSectionData(HandleRef jarg1, UInt32 jarg2)
static bool OdDgPsPlotStyle_getWeightDataByIndex__SWIG_0(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static bool OdDgPsPlotStyle_getUseColorDataFlag(HandleRef jarg1)
static void OdDgPsPlotStyle_addStringPair(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static bool OdDgPsPlotStyle_getColorData(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out UInt32 jarg4)
static IntPtr OdDgPsPlotStyle_isA(HandleRef jarg1)
static bool OdDgPsPlotStyle_getWeightDataByIndex__SWIG_1(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDgPsPlotStyle_getColorDataByIndex(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgPsPlotStyle_setFileName(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgPsPlotStyle_deleteSectionData(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdDgPsPlotStyle_desc()
static bool OdDgPsPlotStyle_isLineWeightDataPresent(HandleRef jarg1, UInt32 jarg2)
static void OdDgPsPlotStyle_setGeneralData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgPsPlotStyle_addSectionData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdDgPsPlotStyle_getColorDataCount(HandleRef jarg1)
static void OdDgPsPlotStyle_setSectionData(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgPsPlotStyle_deleteColorData(HandleRef jarg1, UInt32 jarg2)
static void OdDgPsPlotStyle_deleteStringPair(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt32 OdDgPsPlotStyle_getSectionDataCount(HandleRef jarg1)
static string OdDgPsPlotStyle_getRealClassName(IntPtr jarg1)
static bool OdDgPsPlotStyle_isColorDataPresent(HandleRef jarg1, UInt32 jarg2)
static bool OdDgPsPlotStyle_getWeightData(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out UInt32 jarg4)
static String OdDgPsPlotStyle_fileName(HandleRef jarg1)
static void OdDgPsPlotStyle_deleteWeightData(HandleRef jarg1, UInt32 jarg2)