Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdIBrFace.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
16public class OdIBrFace : OdIBrEntity {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdIBrFace(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdIBrFace_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdIBrFace 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 virtual bool getSurfaceAsNurb(OdGeNurbSurface nurb) {
45 return ret;
46 }
47
48 public virtual OdGeSurface getSurface() {
49 OdGeSurface ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeSurface>(typeof(OdGeSurface), GlobalsPINVOKE.OdIBrFace_getSurface(swigCPtr), false);
50
52 return ret;
53}
54
55 public virtual bool getSurfaceType(out OdGe.EntityId type) {
56 bool ret = GlobalsPINVOKE.OdIBrFace_getSurfaceType(swigCPtr, out type);
58 return ret;
59 }
60
61 public virtual bool getOrientToSurface() {
64 return ret;
65 }
66
67 public virtual OdIBrShell getShell() {
68 global::System.IntPtr cPtr = GlobalsPINVOKE.OdIBrFace_getShell(swigCPtr);
69 OdIBrShell ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIBrShell(cPtr, false);
71 return ret;
72 }
73
74 public virtual void next(OdIBrLoop pFirstChild, OdIBrLoop pCurChild) {
75 GlobalsPINVOKE.OdIBrFace_next(swigCPtr, OdIBrLoop.getCPtr(pFirstChild), OdIBrLoop.getCPtr(pCurChild).Handle);
77 }
78
79 public virtual bool getTrueColor(out UInt32 /*SIMPLETYPE*/ rgb) {
80 bool ret = GlobalsPINVOKE.OdIBrFace_getTrueColor(swigCPtr, out rgb);
82 return ret;
83 }
84
85 public virtual bool getColorIndex(out UInt16 /*SIMPLETYPE*/ indx) {
86 bool ret = GlobalsPINVOKE.OdIBrFace_getColorIndex(swigCPtr, out indx);
88 return ret;
89 }
90
91 public virtual bool getMaterial(out UInt64 /*SIMPLETYPE*/ id) {
92 bool ret = GlobalsPINVOKE.OdIBrFace_getMaterial__SWIG_0(swigCPtr, out id);
94 return ret;
95 }
96
97 public virtual bool getMaterial(ref string strMatName) {
98IntPtr tmp_strMatName = Marshal.StringToCoTaskMemUni(strMatName);
99 IntPtr saved_strMatName = tmp_strMatName;
100 try {
101 bool ret = GlobalsPINVOKE.OdIBrFace_getMaterial__SWIG_1(swigCPtr, ref tmp_strMatName);
103 return ret;
104 } finally {
105if (tmp_strMatName != saved_strMatName) strMatName = Marshal.PtrToStringUni(tmp_strMatName);
106 }
107 }
108
109 public virtual bool getFillPattern(out UInt64 /*SIMPLETYPE*/ id) {
110 bool ret = GlobalsPINVOKE.OdIBrFace_getFillPattern(swigCPtr, out id);
112 return ret;
113 }
114
115 public virtual bool getFillingAttributes(OdGePoint2d origin, OdGeVector2d dir) {
116 bool ret = GlobalsPINVOKE.OdIBrFace_getFillingAttributes(swigCPtr, OdGePoint2d.getCPtr(origin), OdGeVector2d.getCPtr(dir).Handle);
118 return ret;
119 }
120
121 public virtual bool getMaterialMapper(OdGeMatrix3d arg0, out byte /*SIMPLETYPE*/ arg1, out byte /*SIMPLETYPE*/ arg2, out byte /*SIMPLETYPE*/ arg3) {
122 bool ret = GlobalsPINVOKE.OdIBrFace_getMaterialMapper(swigCPtr, OdGeMatrix3d.getCPtr(arg0), out arg1, out arg2, out arg3);
124 return ret;
125 }
126
127 public virtual bool getExtraFillingAttributes(OdGiFill pFill) {
130 return ret;
131 }
132
133 public virtual OdGiFill getFill() {
134 OdGiFill ret = (OdGiFill)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFill),GlobalsPINVOKE.OdIBrFace_getFill(swigCPtr),false); /*createInt 3_2*/
135
137 return ret;
138}
139
140 public virtual OdIBrFace getFirstFaceRegion() {
141 global::System.IntPtr cPtr = GlobalsPINVOKE.OdIBrFace_getFirstFaceRegion(swigCPtr);
142 OdIBrFace ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIBrFace(cPtr, false);
144 return ret;
145 }
146
147 public virtual OdIBrFace getNextFaceRegion(OdIBrFace pFace) {
148 global::System.IntPtr cPtr = GlobalsPINVOKE.OdIBrFace_getNextFaceRegion(swigCPtr, OdIBrFace.getCPtr(pFace));
149 OdIBrFace ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIBrFace(cPtr, false);
151 return ret;
152 }
153
154}
155
156}
static global::System.Exception Retrieve()
static bool OdIBrFace_getColorIndex(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt16 jarg2)
static bool OdIBrFace_getSurfaceAsNurb(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdIBrFace_getFirstFaceRegion(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdIBrFace_getNextFaceRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdIBrFace_getSurfaceType(global::System.Runtime.InteropServices.HandleRef jarg1, out OdGe.EntityId jarg2)
static IntPtr OdIBrFace_getFill(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrFace_getTrueColor(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static bool OdIBrFace_getFillPattern(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt64 jarg2)
static bool OdIBrFace_getOrientToSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrFace_getMaterial__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2)
static void delete_OdIBrFace(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdIBrFace_getShell(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdIBrFace_next(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static bool OdIBrFace_getMaterial__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt64 jarg2)
static bool OdIBrFace_getMaterialMapper(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out byte jarg3, out byte jarg4, out byte jarg5)
static IntPtr OdIBrFace_getSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrFace_getExtraFillingAttributes(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdIBrFace_getFillingAttributes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGeNurbSurface obj)
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGeVector2d obj)
Definition: OdGeVector2d.cs:26
static HandleRef getCPtr(OdGiFill obj)
Definition: OdGiFill.cs:25
virtual OdGeSurface getSurface()
Definition: OdIBrFace.cs:48
virtual bool getTrueColor(out UInt32 rgb)
Definition: OdIBrFace.cs:79
virtual bool getSurfaceType(out OdGe.EntityId type)
Definition: OdIBrFace.cs:55
virtual OdIBrFace getFirstFaceRegion()
Definition: OdIBrFace.cs:140
override void Dispose(bool disposing)
Definition: OdIBrFace.cs:29
static HandleRef getCPtr(OdIBrFace obj)
Definition: OdIBrFace.cs:25
virtual bool getFillPattern(out UInt64 id)
Definition: OdIBrFace.cs:109
virtual void next(OdIBrLoop pFirstChild, OdIBrLoop pCurChild)
Definition: OdIBrFace.cs:74
OdIBrFace(IntPtr cPtr, bool cMemoryOwn)
Definition: OdIBrFace.cs:20
virtual bool getSurfaceAsNurb(OdGeNurbSurface nurb)
Definition: OdIBrFace.cs:42
virtual OdIBrFace getNextFaceRegion(OdIBrFace pFace)
Definition: OdIBrFace.cs:147
virtual OdGiFill getFill()
Definition: OdIBrFace.cs:133
virtual bool getMaterial(out UInt64 id)
Definition: OdIBrFace.cs:91
virtual bool getOrientToSurface()
Definition: OdIBrFace.cs:61
virtual OdIBrShell getShell()
Definition: OdIBrFace.cs:67
virtual bool getExtraFillingAttributes(OdGiFill pFill)
Definition: OdIBrFace.cs:127
virtual bool getFillingAttributes(OdGePoint2d origin, OdGeVector2d dir)
Definition: OdIBrFace.cs:115
virtual bool getMaterial(ref string strMatName)
Definition: OdIBrFace.cs:97
virtual bool getColorIndex(out UInt16 indx)
Definition: OdIBrFace.cs:85
virtual bool getMaterialMapper(OdGeMatrix3d arg0, out byte arg1, out byte arg2, out byte arg3)
Definition: OdIBrFace.cs:121
static HandleRef getCPtr(OdIBrLoop obj)
Definition: OdIBrLoop.cs:25