Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdBrFace.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 OdBrFace : OdBrEntity {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdBrFace(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdBrFace_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdBrFace 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
45 return ret;
46 }
47
49 OdGeSurface ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeSurface>(typeof(OdGeSurface), GlobalsPINVOKE.OdBrFace_getSurface(swigCPtr), false);
50
52 return ret;
53}
54
55 public OdBrErrorStatus getSurfaceType(out OdGe.EntityId surfaceType) {
58 return ret;
59 }
60
61 public OdBrErrorStatus getArea(out double area, double /*SIMPLETYPE*/ tolRequired, double /*SIMPLETYPE*/ tolAchieved) {
62 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrFace_getArea__SWIG_0(swigCPtr, out area, tolRequired /*SIMPLETYPE*/, tolAchieved /*SIMPLETYPE*/);
64 return ret;
65 }
66
67 public OdBrErrorStatus getArea(out double area, double /*SIMPLETYPE*/ tolRequired) {
68 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrFace_getArea__SWIG_1(swigCPtr, out area, tolRequired /*SIMPLETYPE*/);
70 return ret;
71 }
72
73 public OdBrErrorStatus getArea(out double area) {
76 return ret;
77 }
78
79 public bool getOrientToSurface() {
82 return ret;
83 }
84
85 public bool getColor(OdCmEntityColor color) {
86 bool ret = GlobalsPINVOKE.OdBrFace_getColor(swigCPtr, OdCmEntityColor.getCPtr(color));
88 return ret;
89 }
90
91 public bool getMaterialID(out UInt64 /*SIMPLETYPE*/ id) {
92 bool ret = GlobalsPINVOKE.OdBrFace_getMaterialID(swigCPtr, out id);
94 return ret;
95 }
96
97 public bool getMaterialString(ref string strMatName) {
98IntPtr tmp_strMatName = Marshal.StringToCoTaskMemUni(strMatName);
99 IntPtr saved_strMatName = tmp_strMatName;
100 try {
101 bool ret = GlobalsPINVOKE.OdBrFace_getMaterialString(swigCPtr, ref tmp_strMatName);
103 return ret;
104 } finally {
105if (tmp_strMatName != saved_strMatName) strMatName = Marshal.PtrToStringUni(tmp_strMatName);
106 }
107 }
108
109 public bool getMaterialMapper(OdGeMatrix3d mx, OdBrFace.Projection projection, OdBrFace.Tiling tiling, OdBrFace.AutoTransform autoTransform) {
110 bool ret = GlobalsPINVOKE.OdBrFace_getMaterialMapper(swigCPtr, OdGeMatrix3d.getCPtr(mx), projection, tiling, autoTransform);
112 return ret;
113 }
114
115 public bool getFillPatternId(out UInt64 /*SIMPLETYPE*/ id) {
116 bool ret = GlobalsPINVOKE.OdBrFace_getFillPatternId(swigCPtr, out id);
118 return ret;
119 }
120
122 bool ret = GlobalsPINVOKE.OdBrFace_getFillingAttributes(swigCPtr, OdGePoint2d.getCPtr(origin), OdGeVector2d.getCPtr(dir).Handle);
124 return ret;
125 }
126
130 return ret;
131 }
132
133 public OdGiFill getFill() {
134 OdGiFill ret = (OdGiFill)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiFill),GlobalsPINVOKE.OdBrFace_getFill(swigCPtr),false); /*createInt 3_2*/
135
137 return ret;
138}
139
140 public bool getFirstFaceRegion(OdBrFace face) {
143 return ret;
144 }
145
146 public bool getNextFaceRegion(OdBrFace face) {
147 bool ret = GlobalsPINVOKE.OdBrFace_getNextFaceRegion(swigCPtr, OdBrFace.getCPtr(face));
149 return ret;
150 }
151
152 public OdBrFace() : this(GlobalsPINVOKE.new_OdBrFace__SWIG_0(), true) {
154 }
155
156 public OdBrFace(OdBrFace arg0) : this(GlobalsPINVOKE.new_OdBrFace__SWIG_1(OdBrFace.getCPtr(arg0)), true) {
158 }
159
160 public OdBrFace Assign(OdBrFace arg0) {
161 OdBrFace ret = new OdBrFace(GlobalsPINVOKE.OdBrFace_Assign__SWIG_0(swigCPtr, OdBrFace.getCPtr(arg0)), false);
163 return ret;
164 }
165
166 public enum Projection {
168 kPlanar = 1,
169 kBox = 2,
170 kCylinder = 3,
171 kSphere = 4
172 }
173
174 public enum Tiling {
175 kInheritTiling = 0,
176 kTile = 1,
177 kCrop = 2,
178 kClamp = 3,
179 kMirror = 4
180 }
181
182 public enum AutoTransform {
184 kNone = 0x1,
185 kObject = 0x2,
186 kModel = 0x4
187 }
188
189}
190
191}
static global::System.Exception Retrieve()
static int OdBrFace_getArea__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3)
static bool OdBrFace_getMaterialID(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt64 jarg2)
static bool OdBrFace_getExtraFillingAttributes(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdBrFace_getMaterialString(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2)
static IntPtr OdBrFace_getFill(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrFace_getSurfaceType(global::System.Runtime.InteropServices.HandleRef jarg1, out OdGe.EntityId jarg2)
static global::System.IntPtr OdBrFace_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdBrFace_getSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdBrFace(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrFace_getArea__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2)
static int OdBrFace_getArea__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, double jarg4)
static bool OdBrFace_getColor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrFace_getFillPatternId(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt64 jarg2)
static bool OdBrFace_getOrientToSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrFace_getFillingAttributes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static bool OdBrFace_getFirstFaceRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrFace_getMaterialMapper(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, OdBrFace.Projection jarg3, OdBrFace.Tiling jarg4, OdBrFace.AutoTransform jarg5)
static bool OdBrFace_getNextFaceRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrFace_getSurfaceAsNurb(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool getFirstFaceRegion(OdBrFace face)
Definition: OdBrFace.cs:140
bool getMaterialString(ref string strMatName)
Definition: OdBrFace.cs:97
bool getFillPatternId(out UInt64 id)
Definition: OdBrFace.cs:115
bool getMaterialMapper(OdGeMatrix3d mx, OdBrFace.Projection projection, OdBrFace.Tiling tiling, OdBrFace.AutoTransform autoTransform)
Definition: OdBrFace.cs:109
bool getMaterialID(out UInt64 id)
Definition: OdBrFace.cs:91
OdBrFace(IntPtr cPtr, bool cMemoryOwn)
Definition: OdBrFace.cs:20
OdGeSurface getSurface()
Definition: OdBrFace.cs:48
OdBrErrorStatus getArea(out double area, double tolRequired)
Definition: OdBrFace.cs:67
OdBrErrorStatus getSurfaceAsNurb(OdGeNurbSurface nurb)
Definition: OdBrFace.cs:42
OdBrErrorStatus getArea(out double area, double tolRequired, double tolAchieved)
Definition: OdBrFace.cs:61
OdGiFill getFill()
Definition: OdBrFace.cs:133
bool getFillingAttributes(OdGePoint2d origin, OdGeVector2d dir)
Definition: OdBrFace.cs:121
override void Dispose(bool disposing)
Definition: OdBrFace.cs:29
OdBrErrorStatus getSurfaceType(out OdGe.EntityId surfaceType)
Definition: OdBrFace.cs:55
bool getExtraFillingAttributes(OdGiFill pFill)
Definition: OdBrFace.cs:127
static HandleRef getCPtr(OdBrFace obj)
Definition: OdBrFace.cs:25
bool getNextFaceRegion(OdBrFace face)
Definition: OdBrFace.cs:146
OdBrFace(OdBrFace arg0)
Definition: OdBrFace.cs:156
bool getOrientToSurface()
Definition: OdBrFace.cs:79
bool getColor(OdCmEntityColor color)
Definition: OdBrFace.cs:85
OdBrErrorStatus getArea(out double area)
Definition: OdBrFace.cs:73
OdBrFace Assign(OdBrFace arg0)
Definition: OdBrFace.cs:160
static HandleRef getCPtr(OdCmEntityColor obj)
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