Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiPlotGenerator.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 OdGiPlotGenerator(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiPlotGenerator_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiPlotGenerator 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 OdGiPlotGenerator cast(OdRxObject pObj) {// OdSmartPtr<OdGiPlotGenerator>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiPlotGenerator ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiPlotGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPlotGenerator),ptr, true));
51 ret = (OdGiPlotGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPlotGenerator),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiPlotGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPlotGenerator),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.OdGiPlotGenerator_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.OdGiPlotGenerator_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.OdGiPlotGenerator_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiPlotGenerator createObject() {// OdSmartPtr<OdGiPlotGenerator>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiPlotGenerator ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiPlotGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPlotGenerator),ptr, true));
92 ret = (OdGiPlotGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPlotGenerator),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiPlotGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPlotGenerator),ptr, true);
97 }
98
100 return ret;
101}
102
103 public virtual void setDeviation(OdGeDoubleArray deviations) {
106 }
107
108 public virtual void setDeviation(OdGiDeviation pDeviation) {
111 }
112
113 public virtual void setDrawContext(OdGiConveyorContext pDrawContext) {
116 }
117
118 public virtual void enable(bool bEnable) {
119 GlobalsPINVOKE.OdGiPlotGenerator_enable(swigCPtr, bEnable);
121 }
122
123 public virtual bool enabled() {
124 bool ret = GlobalsPINVOKE.OdGiPlotGenerator_enabled(swigCPtr);
126 return ret;
127 }
128
129 public virtual void dot_per_inch(double dpi) {
132 }
133
134 public virtual double dot_per_inch() {
137 return ret;
138 }
139
140 public void dot_per_mm(double dpmm) {
143 }
144
145 public double dot_per_mm() {
148 return ret;
149 }
150
151 public virtual void setPlotStyle(OdPsPlotStyleData psd) {
154 }
155
156 public class PolylineOut : global::System.IDisposable {
157 private Object locker = new Object();
158 private HandleRef swigCPtr;
159 protected bool swigCMemOwn;
160 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
161 public PolylineOut(IntPtr cPtr, bool cMemoryOwn) {
162 swigCMemOwn = cMemoryOwn;
163 swigCPtr = new HandleRef(this, cPtr);
164 }
165 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
166 public static HandleRef getCPtr(PolylineOut obj) {
167 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
168 }
169
170 ~PolylineOut() {
171 Dispose(false);
172 }
173
174 public void Dispose() {
175 Dispose(true);
176 global::System.GC.SuppressFinalize(this);
177 }
178
179 protected virtual void Dispose(bool disposing) {
180 lock(this) {
181 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
182 if (swigCMemOwn) {
183 swigCMemOwn = false;
184 GlobalsPINVOKE.delete_OdGiPlotGenerator_PolylineOut(swigCPtr); // NESTED_DTOR_CSHARP
185 }
186 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
187 }
188 }
189 }
190
191 public virtual bool plotGeneratorPolylineOut(OdGePoint3d[] /*POINTARRAY_TYPEMAP_REV*/ pPoints, LineEndStyle capStyle, LineJoinStyle joinStyle, double fLwd) {
192 IntPtr p_pPoints=Teigha.Core.Helpers.MarshalPoint3dArray(pPoints);
193 try {
194 bool ret = GlobalsPINVOKE.OdGiPlotGenerator_PolylineOut_plotGeneratorPolylineOut(swigCPtr, p_pPoints, (int)capStyle, (int)joinStyle, fLwd);
196 return ret;
197 } finally {
198 Marshal.FreeCoTaskMem(p_pPoints);
199 }
200 }
201
202 }
203
204 public virtual void setExternalPolylineOut(OdGiPlotGenerator.PolylineOut pPolylineOut) {
207 }
208
210 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiPlotGenerator_externalPolylineOut(swigCPtr);
211 OdGiPlotGenerator.PolylineOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiPlotGenerator.PolylineOut(cPtr, false);
213 return ret;
214 }
215
216 public class EllipseOut : global::System.IDisposable {
217 private Object locker = new Object();
218 private HandleRef swigCPtr;
219 protected bool swigCMemOwn;
220 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
221 public EllipseOut(IntPtr cPtr, bool cMemoryOwn) {
222 swigCMemOwn = cMemoryOwn;
223 swigCPtr = new HandleRef(this, cPtr);
224 }
225 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
226 public static HandleRef getCPtr(EllipseOut obj) {
227 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
228 }
229
230 ~EllipseOut() {
231 Dispose(false);
232 }
233
234 public void Dispose() {
235 Dispose(true);
236 global::System.GC.SuppressFinalize(this);
237 }
238
239 protected virtual void Dispose(bool disposing) {
240 lock(this) {
241 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
242 if (swigCMemOwn) {
243 swigCMemOwn = false;
244 GlobalsPINVOKE.delete_OdGiPlotGenerator_EllipseOut(swigCPtr); // NESTED_DTOR_CSHARP
245 }
246 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
247 }
248 }
249 }
250
251 public virtual bool plotGeneratorEllipseOut(OdGeEllipArc3d arc, double width) {
254 return ret;
255 }
256
257 }
258
259 public virtual void setExternalEllipseOut(OdGiPlotGenerator.EllipseOut pEllipseOut) {
262 }
263
265 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiPlotGenerator_externalEllipseOut(swigCPtr);
266 OdGiPlotGenerator.EllipseOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiPlotGenerator.EllipseOut(cPtr, false);
268 return ret;
269 }
270
271 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
272 string ret = GlobalsPINVOKE.OdGiPlotGenerator_getRealClassName(ptr /*SIMPLETYPE*/);
274 return ret;
275 }
276
277}
278
279}
static global::System.Exception Retrieve()
static void OdGiPlotGenerator_setExternalEllipseOut(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiPlotGenerator_setDeviation__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiPlotGenerator_desc()
static bool OdGiPlotGenerator_enabled(HandleRef jarg1)
static void delete_OdGiPlotGenerator_PolylineOut(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiPlotGenerator_PolylineOut_plotGeneratorPolylineOut(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg4, int jarg5, double jarg6)
static IntPtr OdGiPlotGenerator_isA(HandleRef jarg1)
static IntPtr OdGiPlotGenerator_createObject()
static double OdGiPlotGenerator_dot_per_mm__SWIG_1(HandleRef jarg1)
static IntPtr OdGiPlotGenerator_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdGiPlotGenerator_setExternalPolylineOut(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiPlotGenerator_cast(HandleRef jarg1)
static void OdGiPlotGenerator_enable(HandleRef jarg1, bool jarg2)
static double OdGiPlotGenerator_dot_per_inch__SWIG_1(HandleRef jarg1)
static void OdGiPlotGenerator_setPlotStyle(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGiPlotGenerator_EllipseOut(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiPlotGenerator_setDrawContext(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGiPlotGenerator(HandleRef jarg1)
static global::System.IntPtr OdGiPlotGenerator_externalPolylineOut(HandleRef jarg1)
static void OdGiPlotGenerator_dot_per_mm__SWIG_0(HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGiPlotGenerator_externalEllipseOut(HandleRef jarg1)
static bool OdGiPlotGenerator_EllipseOut_plotGeneratorEllipseOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static void OdGiPlotGenerator_setDeviation__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string OdGiPlotGenerator_getRealClassName(IntPtr jarg1)
static void OdGiPlotGenerator_dot_per_inch__SWIG_0(HandleRef jarg1, double jarg2)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGeEllipArc3d obj)
static HandleRef getCPtr(EllipseOut obj)
virtual bool plotGeneratorEllipseOut(OdGeEllipArc3d arc, double width)
EllipseOut(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
PolylineOut(IntPtr cPtr, bool cMemoryOwn)
virtual bool plotGeneratorPolylineOut(OdGePoint3d[] pPoints, LineEndStyle capStyle, LineJoinStyle joinStyle, double fLwd)
static HandleRef getCPtr(PolylineOut obj)
OdGiPlotGenerator(IntPtr cPtr, bool cMemoryOwn)
virtual OdGiPlotGenerator.EllipseOut externalEllipseOut()
virtual void setExternalEllipseOut(OdGiPlotGenerator.EllipseOut pEllipseOut)
virtual OdGiPlotGenerator.PolylineOut externalPolylineOut()
static string getRealClassName(IntPtr ptr)
virtual void enable(bool bEnable)
virtual void setDrawContext(OdGiConveyorContext pDrawContext)
static OdGiPlotGenerator cast(OdRxObject pObj)
virtual void setPlotStyle(OdPsPlotStyleData psd)
static new OdRxClass desc()
override void Dispose(bool disposing)
virtual void setExternalPolylineOut(OdGiPlotGenerator.PolylineOut pPolylineOut)
virtual void dot_per_inch(double dpi)
virtual void setDeviation(OdGiDeviation pDeviation)
static HandleRef getCPtr(OdGiPlotGenerator obj)
static OdGiPlotGenerator createObject()
virtual void setDeviation(OdGeDoubleArray deviations)
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdPsPlotStyleData obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()