Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdPsPlotStyleTable.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdPsPlotStyleTable(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdPsPlotStyleTable_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdPsPlotStyleTable obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdPsPlotStyleTable cast(OdRxObject pObj) {// OdSmartPtr<OdPsPlotStyleTable>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdPsPlotStyleTable ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdPsPlotStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyleTable),ptr, true));
51 ret = (OdPsPlotStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyleTable),ptr, false);
52 }
53 else
54 {
55 ret = (OdPsPlotStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyleTable),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdPsPlotStyleTable_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdPsPlotStyleTable_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdPsPlotStyleTable_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdPsPlotStyleTable createObject() {// OdSmartPtr<OdPsPlotStyleTable>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdPsPlotStyleTable ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdPsPlotStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyleTable),ptr, true));
92 ret = (OdPsPlotStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyleTable),ptr, false);
93 }
94 else
95 {
96 ret = (OdPsPlotStyleTable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyleTable),ptr, true);
97 }
98
100 return ret;
101}
102
103 public override OdRxObject clone() {// OdRxObjectPtr
104 MemoryManager mMan = MemoryManager.GetMemoryManager();
105 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
106 IntPtr ptr = GlobalsPINVOKE.OdPsPlotStyleTable_clone(swigCPtr);
107
108 OdRxObject ret = null;
109 if (null != mTrans)
110 {
111 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
112 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
113 }
114 else
115 {
116 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
117 }
118
120 return ret;
121}
122
123 public override void copyFrom(OdRxObject pSource) {
126 }
127
128 public virtual bool isApplyScaleFactor() {
131 return ret;
132 }
133
134 public virtual String description() {
135 string ret = GlobalsPINVOKE.OdPsPlotStyleTable_description(swigCPtr);
137 return ret;
138}
139
140 public virtual double scaleFactor() {
141 double ret = GlobalsPINVOKE.OdPsPlotStyleTable_scaleFactor(swigCPtr);
143 return ret;
144 }
145
146 public virtual bool isDisplayCustomLineweightUnits() {
149 return ret;
150 }
151
152 public virtual double getLineweightAt(UInt32 /*SIMPLETYPE*/ index) {
153 double ret = GlobalsPINVOKE.OdPsPlotStyleTable_getLineweightAt(swigCPtr, index /*SIMPLETYPE*/);
155 return ret;
156 }
157
158 public virtual OdPsPlotStyle plotStyleAt(String name) {// OdPsPlotStylePtr
159 MemoryManager mMan = MemoryManager.GetMemoryManager();
160 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
161 IntPtr ptr = GlobalsPINVOKE.OdPsPlotStyleTable_plotStyleAt__SWIG_0(swigCPtr, name);
162
163 OdPsPlotStyle ret = null;
164 if (null != mTrans)
165 {
166 mTrans.AddObject((OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true));
167 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, false);
168 }
169 else
170 {
171 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true);
172 }
173
175 return ret;
176}
177
178 public virtual OdPsPlotStyle plotStyleAt(int index) {// OdPsPlotStylePtr
179 MemoryManager mMan = MemoryManager.GetMemoryManager();
180 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
181 IntPtr ptr = GlobalsPINVOKE.OdPsPlotStyleTable_plotStyleAt__SWIG_1(swigCPtr, index);
182
183 OdPsPlotStyle ret = null;
184 if (null != mTrans)
185 {
186 mTrans.AddObject((OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true));
187 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, false);
188 }
189 else
190 {
191 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true);
192 }
193
195 return ret;
196}
197
198 public virtual uint plotStyleSize() {
201 return ret;
202 }
203
204 public virtual uint lineweightSize() {
207 return ret;
208 }
209
210 public virtual bool isAciTableAvailable() {
213 return ret;
214 }
215
216 public virtual OdPsPlotStyle addNewPlotStyle(String styleName) {// OdPsPlotStylePtr
217 MemoryManager mMan = MemoryManager.GetMemoryManager();
218 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
219 IntPtr ptr = GlobalsPINVOKE.OdPsPlotStyleTable_addNewPlotStyle(swigCPtr, styleName);
220
221 OdPsPlotStyle ret = null;
222 if (null != mTrans)
223 {
224 mTrans.AddObject((OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true));
225 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, false);
226 }
227 else
228 {
229 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true);
230 }
231
233 return ret;
234}
235
236 public virtual OdPsPlotStyle delPlotStyle(OdPsPlotStyle pPsPtr) {// OdPsPlotStylePtr
237 MemoryManager mMan = MemoryManager.GetMemoryManager();
238 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
240
241 OdPsPlotStyle ret = null;
242 if (null != mTrans)
243 {
244 mTrans.AddObject((OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true));
245 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, false);
246 }
247 else
248 {
249 ret = (OdPsPlotStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr, true);
250 }
251
253 return ret;
254}
255
256 public virtual void setDescription(String desc) {
259 }
260
261 public virtual void setScaleFactor(double scFac) {
264 }
265
266 public virtual void setApplyScaleFactor(bool flag) {
269 }
270
271 public virtual void setDisplayCustomLineweightUnits(bool flag) {
274 }
275
276 public virtual void setLineweightAt(double value, UInt32 /*SIMPLETYPE*/ index) {
277 GlobalsPINVOKE.OdPsPlotStyleTable_setLineweightAt(swigCPtr, value, index /*SIMPLETYPE*/);
279 }
280
281 public virtual void setLineweights(OdGeDoubleArray lineweights) {
284 }
285
286 public virtual void setAciTableAvailable(bool flag) {
289 }
290
294 }
295
299 }
300
301 public virtual void addPlotStyle(OdPsPlotStyle pPs) {
304 }
305
306 public virtual void setOrdering(OdStringArray order) {
309 }
310
311 public virtual OdPsPlotStylesMap plotStyles() {
314 return ret;
315 }
316
318// csout array
320
322 return res;
323}
324
325 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
326 string ret = GlobalsPINVOKE.OdPsPlotStyleTable_getRealClassName(ptr /*SIMPLETYPE*/);
328 return ret;
329 }
330
331}
332
333}
static global::System.Exception Retrieve()
static void OdPsPlotStyleTable_setDisplayCustomLineweightUnits(HandleRef jarg1, bool jarg2)
static void OdPsPlotStyleTable_copyFrom(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdPsPlotStyleTable_desc()
static void OdPsPlotStyleTable_setScaleFactor(HandleRef jarg1, double jarg2)
static IntPtr OdPsPlotStyleTable_clone(HandleRef jarg1)
static void OdPsPlotStyleTable_setOrdering(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdPsPlotStyleTable_isApplyScaleFactor(HandleRef jarg1)
static IntPtr OdPsPlotStyleTable_delPlotStyle(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdPsPlotStyleTable_plotStyleAt__SWIG_1(HandleRef jarg1, int jarg2)
static bool OdPsPlotStyleTable_isDisplayCustomLineweightUnits(HandleRef jarg1)
static global::System.IntPtr OdPsPlotStyleTable_plotStyles(HandleRef jarg1)
static void delete_OdPsPlotStyleTable(HandleRef jarg1)
static IntPtr OdPsPlotStyleTable_createObject()
static IntPtr OdPsPlotStyleTable_isA(HandleRef jarg1)
static void OdPsPlotStyleTable_setLineweightAt(HandleRef jarg1, double jarg2, UInt32 jarg3)
static IntPtr OdPsPlotStyleTable_cast(HandleRef jarg1)
static void OdPsPlotStyleTable_setApplyScaleFactor(HandleRef jarg1, bool jarg2)
static double OdPsPlotStyleTable_scaleFactor(HandleRef jarg1)
static void OdPsPlotStyleTable_setPlotStylesIndexed(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string OdPsPlotStyleTable_getRealClassName(IntPtr jarg1)
static void OdPsPlotStyleTable_setAciTableAvailable(HandleRef jarg1, bool jarg2)
static String OdPsPlotStyleTable_description(HandleRef jarg1)
static global::System.IntPtr OdPsPlotStyleTable_plotStylesIndexed(HandleRef jarg1)
static double OdPsPlotStyleTable_getLineweightAt(HandleRef jarg1, UInt32 jarg2)
static void OdPsPlotStyleTable_setDescription(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdPsPlotStyleTable_setPlotStyles(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdPsPlotStyleTable_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdPsPlotStyleTable_addNewPlotStyle(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static uint OdPsPlotStyleTable_plotStyleSize(HandleRef jarg1)
static IntPtr OdPsPlotStyleTable_plotStyleAt__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static uint OdPsPlotStyleTable_lineweightSize(HandleRef jarg1)
static void OdPsPlotStyleTable_addPlotStyle(HandleRef jarg1, HandleRef jarg2)
static void OdPsPlotStyleTable_setLineweights(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdPsPlotStyleTable_isAciTableAvailable(HandleRef jarg1)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdPsPlotStyle obj)
virtual void setPlotStyles(OdPsPlotStylesMap plotStyles)
virtual void setApplyScaleFactor(bool flag)
override OdRxObject queryX(OdRxClass protocolClass)
virtual void setScaleFactor(double scFac)
static OdPsPlotStyleTable createObject()
virtual OdPsPlotStyle delPlotStyle(OdPsPlotStyle pPsPtr)
virtual void setLineweights(OdGeDoubleArray lineweights)
virtual void setLineweightAt(double value, UInt32 index)
static HandleRef getCPtr(OdPsPlotStyleTable obj)
virtual OdPsPlotStyle plotStyleAt(String name)
static string getRealClassName(IntPtr ptr)
virtual void setOrdering(OdStringArray order)
override void copyFrom(OdRxObject pSource)
virtual OdPsPlotStylesMap plotStyles()
virtual double getLineweightAt(UInt32 index)
virtual OdPsPlotStyle plotStyleAt(int index)
OdPsPlotStyleTable(IntPtr cPtr, bool cMemoryOwn)
virtual void setAciTableAvailable(bool flag)
static OdPsPlotStyleTable cast(OdRxObject pObj)
virtual void setPlotStylesIndexed(OdPsPlotStylesArray plotStylesIndexed)
virtual OdPsPlotStyle addNewPlotStyle(String styleName)
override void Dispose(bool disposing)
virtual void addPlotStyle(OdPsPlotStyle pPs)
virtual void setDisplayCustomLineweightUnits(bool flag)
virtual OdPsPlotStylesArray plotStylesIndexed()
virtual void setDescription(String desc)
static HandleRef getCPtr(OdPsPlotStylesArray obj)
static HandleRef getCPtr(OdPsPlotStylesMap obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdStringArray obj)