Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiFillHatch.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 OdGiFillHatch(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiFillHatch_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiFillHatch 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 OdGiFillHatch cast(OdRxObject pObj) {// OdSmartPtr<OdGiFillHatch>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiFillHatch ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiFillHatch)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFillHatch),ptr, true));
51 ret = (OdGiFillHatch)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFillHatch),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiFillHatch)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFillHatch),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.OdGiFillHatch_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.OdGiFillHatch_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.OdGiFillHatch_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiFillHatch createObject() {// OdSmartPtr<OdGiFillHatch>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiFillHatch ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiFillHatch)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFillHatch),ptr, true));
92 ret = (OdGiFillHatch)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFillHatch),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiFillHatch)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFillHatch),ptr, true);
97 }
98
100 return ret;
101}
102
103 public override void copyFrom(OdRxObject pSource) {
106 }
107
108 public override bool IsEqual(OdGiFill fill) {
109 bool ret = GlobalsPINVOKE.OdGiFillHatch_IsEqual(swigCPtr, OdGiFill.getCPtr(fill));
111 return ret;
112 }
113
114 public override bool IsNotEqual(OdGiFill fill) {
115 bool ret = GlobalsPINVOKE.OdGiFillHatch_IsNotEqual(swigCPtr, OdGiFill.getCPtr(fill));
117 return ret;
118 }
119
121 set {
124 }
125 get {
128 return ret;
129 }
130 }
131
132 public new double deviation() {
133 double ret = GlobalsPINVOKE.OdGiFillHatch_deviation(swigCPtr);
135 return ret;
136 }
137
138 public double viewRotation() {
139 double ret = GlobalsPINVOKE.OdGiFillHatch_viewRotation(swigCPtr);
141 return ret;
142 }
143
144 public double elevation() {
145 double ret = GlobalsPINVOKE.OdGiFillHatch_elevation(swigCPtr);
147 return ret;
148 }
149
150 public UInt32 hatchDensity() {
151// test csout
152 /*SIMPLETYPE*/
153 UInt32 ret = GlobalsPINVOKE.OdGiFillHatch_hatchDensity(swigCPtr);
155 return ret;
156 }
157
158 public UInt32 pointLimit() {
159// test csout
160 /*SIMPLETYPE*/
161 UInt32 ret = GlobalsPINVOKE.OdGiFillHatch_pointLimit(swigCPtr);
163 return ret;
164 }
165
166 public UInt32 maxDrawPoints() {
167// test csout
168 /*SIMPLETYPE*/
169 UInt32 ret = GlobalsPINVOKE.OdGiFillHatch_maxDrawPoints(swigCPtr);
171 return ret;
172 }
173
174 public Int16 smoothHatch() {
175// test csout
176 /*SIMPLETYPE*/
177 Int16 ret = GlobalsPINVOKE.OdGiFillHatch_smoothHatch(swigCPtr);
179 return ret;
180 }
181
182 public bool isSolidFill() {
183 bool ret = GlobalsPINVOKE.OdGiFillHatch_isSolidFill(swigCPtr);
185 return ret;
186 }
187
188 public bool isHatchTooDense() {
191 return ret;
192 }
193
194 public bool isGradientFill() {
195 bool ret = GlobalsPINVOKE.OdGiFillHatch_isGradientFill(swigCPtr);
197 return ret;
198 }
199
200 public bool isDrawCache() {
201 bool ret = GlobalsPINVOKE.OdGiFillHatch_isDrawCache(swigCPtr);
203 return ret;
204 }
205
206 public bool isMPolygon() {
207 bool ret = GlobalsPINVOKE.OdGiFillHatch_isMPolygon(swigCPtr);
209 return ret;
210 }
211
212 public bool isDBRO() {
213 bool ret = GlobalsPINVOKE.OdGiFillHatch_isDBRO(swigCPtr);
215 return ret;
216 }
217
218 public bool hasCache() {
219 bool ret = GlobalsPINVOKE.OdGiFillHatch_hasCache(swigCPtr);
221 return ret;
222 }
223
227 return ret;
228 }
229
231// csout array
233
235 return res;
236}
237
239// csout array
241
243 return res;
244}
245
249 return ret;
250 }
251
255 return ret;
256 }
257
259 OdGeTol ret = new OdGeTol(GlobalsPINVOKE.OdGiFillHatch_getTolerance(swigCPtr), true);
261 return ret;
262 }
263
264 public void getPoints(OdGePoint2dArray startPoints, OdGePoint2dArray endPoints) {
265 GlobalsPINVOKE.OdGiFillHatch_getPoints(swigCPtr, OdGePoint2dArray.getCPtr(startPoints).Handle, OdGePoint2dArray.getCPtr(endPoints).Handle);
267 }
268
270// csout array
272
274 return res;
275}
276
277 public void set(double dDeviation, double dViewRotation, double dElevation, UInt32 /*SIMPLETYPE*/ maxHatchDensity, UInt32 /*SIMPLETYPE*/ pointLimit, UInt32 /*SIMPLETYPE*/ maxPointsToDraw, Int16 /*SIMPLETYPE*/ nSmoothHatch, bool bHatchTooDense, bool bSolidFill, bool bGradientFill, bool bMPolygon, bool bDBRO, OdUInt32Array loopsFlags, OdUInt32Array loopsMarker, OdGeIslandStyle style, OdHatchPattern pattern) {
278 GlobalsPINVOKE.OdGiFillHatch_set(swigCPtr, dDeviation, dViewRotation, dElevation, maxHatchDensity /*SIMPLETYPE*/, pointLimit /*SIMPLETYPE*/, maxPointsToDraw /*SIMPLETYPE*/, nSmoothHatch /*SIMPLETYPE*/, bHatchTooDense, bSolidFill, bGradientFill, bMPolygon, bDBRO, OdUInt32Array.getCPtr(loopsFlags).Handle, OdUInt32Array.getCPtr(loopsMarker).Handle, (int)style, OdHatchPattern.getCPtr(pattern));
280 }
281
282 public void setHatchTooDense(bool bHatchTooDense) {
283 GlobalsPINVOKE.OdGiFillHatch_setHatchTooDense(swigCPtr, bHatchTooDense);
285 }
286
287 public void setResult(OdResult res) {
288 GlobalsPINVOKE.OdGiFillHatch_setResult(swigCPtr, (int)res);
290 }
291
292 public void setLoopsFlags(OdUInt32Array loopsFlags) {
295 }
296
297 public void setLoopsMarker(OdUInt32Array loopsMarker) {
300 }
301
302 public void setExtents(OdGeExtents3d ext3d) {
305 }
306
307 public void setDrawCache(bool bDrawCache) {
308 GlobalsPINVOKE.OdGiFillHatch_setDrawCache(swigCPtr, bDrawCache);
310 }
311
312 public void setTolerance(OdGeTol tol) {
315 }
316
317 public void setPoints(OdGePoint2dArray startPoints, OdGePoint2dArray endPoints) {
318 GlobalsPINVOKE.OdGiFillHatch_setPoints(swigCPtr, OdGePoint2dArray.getCPtr(startPoints).Handle, OdGePoint2dArray.getCPtr(endPoints).Handle);
320 }
321
322 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
323 string ret = GlobalsPINVOKE.OdGiFillHatch_getRealClassName(ptr /*SIMPLETYPE*/);
325 return ret;
326 }
327
328 public enum EvaluateEnum {
329 kNotEvaluated = 0,
330 kEvaluated = 1,
332 }
333
334}
335
336}
static global::System.Exception Retrieve()
static double OdGiFillHatch_viewRotation(HandleRef jarg1)
static global::System.IntPtr OdGiFillHatch_getLoopsFlags(HandleRef jarg1)
static bool OdGiFillHatch_IsEqual(HandleRef jarg1, HandleRef jarg2)
static bool OdGiFillHatch_isDBRO(HandleRef jarg1)
static UInt32 OdGiFillHatch_pointLimit(HandleRef jarg1)
static void OdGiFillHatch_setPoints(HandleRef jarg1, IntPtr jarg2, IntPtr jarg3)
static double OdGiFillHatch_deviation(HandleRef jarg1)
static double OdGiFillHatch_elevation(HandleRef jarg1)
static bool OdGiFillHatch_isDrawCache(HandleRef jarg1)
static void delete_OdGiFillHatch(HandleRef jarg1)
static void OdGiFillHatch_m_eData_set(HandleRef jarg1, int jarg2)
static void OdGiFillHatch_set(HandleRef jarg1, double jarg2, double jarg3, double jarg4, UInt32 jarg5, UInt32 jarg6, UInt32 jarg7, Int16 jarg8, bool jarg9, bool jarg10, bool jarg11, bool jarg12, bool jarg13, IntPtr jarg14, IntPtr jarg15, int jarg16, global::System.Runtime.InteropServices.HandleRef jarg17)
static void OdGiFillHatch_setHatchTooDense(HandleRef jarg1, bool jarg2)
static bool OdGiFillHatch_IsNotEqual(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiFillHatch_cast(HandleRef jarg1)
static bool OdGiFillHatch_isGradientFill(HandleRef jarg1)
static void OdGiFillHatch_setTolerance(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiFillHatch_isA(HandleRef jarg1)
static void OdGiFillHatch_setDrawCache(HandleRef jarg1, bool jarg2)
static UInt32 OdGiFillHatch_hatchDensity(HandleRef jarg1)
static Int16 OdGiFillHatch_smoothHatch(HandleRef jarg1)
static void OdGiFillHatch_copyFrom(HandleRef jarg1, HandleRef jarg2)
static int OdGiFillHatch_m_eData_get(HandleRef jarg1)
static global::System.IntPtr OdGiFillHatch_getLoopsMarker(HandleRef jarg1)
static global::System.IntPtr OdGiFillHatch_patternLines(HandleRef jarg1)
static void OdGiFillHatch_getPoints(HandleRef jarg1, IntPtr jarg2, IntPtr jarg3)
static void OdGiFillHatch_setLoopsFlags(HandleRef jarg1, IntPtr jarg2)
static void OdGiFillHatch_setExtents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdGiFillHatch_maxDrawPoints(HandleRef jarg1)
static IntPtr OdGiFillHatch_createObject()
static global::System.IntPtr OdGiFillHatch_getExtents(HandleRef jarg1)
static bool OdGiFillHatch_isSolidFill(HandleRef jarg1)
static int OdGiFillHatch_getResult(HandleRef jarg1)
static bool OdGiFillHatch_isMPolygon(HandleRef jarg1)
static bool OdGiFillHatch_hasCache(HandleRef jarg1)
static void OdGiFillHatch_setLoopsMarker(HandleRef jarg1, IntPtr jarg2)
static IntPtr OdGiFillHatch_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiFillHatch_desc()
static void OdGiFillHatch_setResult(HandleRef jarg1, int jarg2)
static bool OdGiFillHatch_isHatchTooDense(HandleRef jarg1)
static global::System.IntPtr OdGiFillHatch_getTolerance(HandleRef jarg1)
static string OdGiFillHatch_getRealClassName(IntPtr jarg1)
static int OdGiFillHatch_getStyle(HandleRef jarg1)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGePoint2dArray obj)
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
void setHatchTooDense(bool bHatchTooDense)
void setLoopsMarker(OdUInt32Array loopsMarker)
new OdHatchPattern patternLines()
OdGeIslandStyle getStyle()
override OdRxClass isA()
override void copyFrom(OdRxObject pSource)
void setExtents(OdGeExtents3d ext3d)
override bool IsNotEqual(OdGiFill fill)
static OdGiFillHatch createObject()
override bool IsEqual(OdGiFill fill)
void setResult(OdResult res)
static new OdRxClass desc()
void getPoints(OdGePoint2dArray startPoints, OdGePoint2dArray endPoints)
OdUInt32Array getLoopsMarker()
override OdRxObject queryX(OdRxClass protocolClass)
void setTolerance(OdGeTol tol)
OdGeExtents3d getExtents()
OdGiFillHatch.EvaluateEnum m_eData
void setDrawCache(bool bDrawCache)
static OdGiFillHatch cast(OdRxObject pObj)
static string getRealClassName(IntPtr ptr)
OdGiFillHatch(IntPtr cPtr, bool cMemoryOwn)
override void Dispose(bool disposing)
OdUInt32Array getLoopsFlags()
void setPoints(OdGePoint2dArray startPoints, OdGePoint2dArray endPoints)
static HandleRef getCPtr(OdGiFillHatch obj)
void setLoopsFlags(OdUInt32Array loopsFlags)
static HandleRef getCPtr(OdGiFill obj)
Definition: OdGiFill.cs:25
static HandleRef getCPtr(OdHatchPattern obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdUInt32Array obj)