Extended .NET SDK Documentation 2025 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
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
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
193
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
229
237
245
251
257
263
268
270 //MemoryManager mMan = MemoryManager.GetMemoryManager();
271 //MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #15
272 IntPtr ptr = GlobalsPINVOKE.OdGiFillHatch_getShellData(swigCPtr);
273
274 OdGeShellData ret = null;
275 //if (null != mTrans)
276 //{
277 //mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeShellData>(typeof(OdGeShellData), ptr, true));
278 ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeShellData>(typeof(OdGeShellData), ptr, false);
279 //}
280 //else
281 //{
282 // ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeShellData>(typeof(OdGeShellData), ptr, true);
283 //}
284
286 return ret;
287}
288
290// csout array
292
294 return res;
295}
296
297 public void set(double dDeviation, double dViewRotation, double dElevation, UInt32 maxHatchDensity, UInt32 pointLimit, UInt32 maxPointsToDraw, Int16 nSmoothHatch, bool bHatchTooDense, bool bSolidFill, bool bGradientFill, bool bMPolygon, bool bDBRO, OdUInt32Array loopsFlags, OdUInt32Array loopsMarker, OdGeIslandStyle style, OdHatchPattern pattern) {
298 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));
300 }
301
302 public void setHatchTooDense(bool bHatchTooDense) {
303 GlobalsPINVOKE.OdGiFillHatch_setHatchTooDense(swigCPtr, bHatchTooDense);
305 }
306
311
316
321
326
331
336
341
346
352
353 public void SetCanUseSolidOptimization(bool bCanUseSolidOptimization) {
354 GlobalsPINVOKE.OdGiFillHatch_SetCanUseSolidOptimization(swigCPtr, bCanUseSolidOptimization);
356 }
357
358 protected static string getRealClassName(IntPtr ptr) {
359 string ret = GlobalsPINVOKE.OdGiFillHatch_getRealClassName(ptr /*SIMPLETYPE*/);
361 return ret;
362 }
363
364 public enum EvaluateEnum {
365 kNotEvaluated = 0,
366 kEvaluated = 1,
368 }
369
370}
371
372}
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 bool OdGiFillHatch_CanUseSolidOptimization(HandleRef jarg1)
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 IntPtr OdGiFillHatch_getShellData(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 void OdGiFillHatch_SetCanUseSolidOptimization(HandleRef jarg1, bool 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 void OdGiFillHatch_setShellData(HandleRef jarg1, HandleRef 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(OdGeShellData 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()
void SetCanUseSolidOptimization(bool bCanUseSolidOptimization)
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)
OdGiFillHatch.EvaluateEnum m_eData
void setDrawCache(bool bDrawCache)
static OdGiFillHatch cast(OdRxObject pObj)
static string getRealClassName(IntPtr ptr)
OdGeShellData getShellData()
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)
void setShellData(OdGeShellData arg0)
static HandleRef getCPtr(OdGiFill obj)
Definition OdGiFill.cs:25
static HandleRef getCPtr(OdHatchPattern obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdUInt32Array obj)