Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdBrEntity.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 OdBrEntity : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdBrEntity(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdBrEntity obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdBrEntity() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public bool isNull() {
52 bool ret = GlobalsPINVOKE.OdBrEntity_isNull(swigCPtr);
54 return ret;
55 }
56
57 public bool isEqualTo(OdBrEntity pOtherEntity) {
58 bool ret = GlobalsPINVOKE.OdBrEntity_isEqualTo(swigCPtr, OdBrEntity.getCPtr(pOtherEntity));
60 return ret;
61 }
62
63 public bool getBrep(OdBrBrep brep) {
64 bool ret = GlobalsPINVOKE.OdBrEntity_getBrep(swigCPtr, OdBrBrep.getCPtr(brep));
66 return ret;
67 }
68
69 public bool checkEntity() {
70 bool ret = GlobalsPINVOKE.OdBrEntity_checkEntity(swigCPtr);
72 return ret;
73 }
74
78 return ret;
79 }
80
84 return ret;
85 }
86
88 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getPointContainment(swigCPtr, OdGePoint3d.getCPtr(point), containment, brEntContainer);
90 return ret;
91 }
92
93 public OdBrErrorStatus getLineContainment(OdGeLinearEnt3d line, UInt32 /*SIMPLETYPE cstype*/ iNumHitsWanted, out UInt32 /*SIMPLETYPE*/ iNumHitsFound, OdBrHit brHit) {
94 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getLineContainment(swigCPtr, OdGeLinearEnt3d.getCPtr(line), iNumHitsWanted /*SIMPLETYPE csin*/, out iNumHitsFound, brHit);
96 return ret;
97 }
98
102 return ret;
103 }
104
108 return ret;
109 }
110
114 return ret;
115 }
116
117 public UInt32 getFlags() {
118// test csout
119 /*SIMPLETYPE*/
120 UInt32 ret = GlobalsPINVOKE.OdBrEntity_getFlags(swigCPtr);
122 return ret;
123 }
124
125 public OdBrErrorStatus getGsMarker(ref IntPtr marker) {
128 return ret;
129 }
130
131 public OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired, out double dTolAchieved) {
132 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getMassProps__SWIG_0(swigCPtr, OdBrMassProps.getCPtr(massProps), dDensity, dTolRequired, out dTolAchieved);
134 return ret;
135 }
136
137 public OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired) {
138 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getMassProps__SWIG_1(swigCPtr, OdBrMassProps.getCPtr(massProps), dDensity, dTolRequired);
140 return ret;
141 }
142
143 public OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity) {
146 return ret;
147 }
148
152 return ret;
153 }
154
155 public OdBrErrorStatus getVolume(out double dVolume, double dTolRequired, out double dTolAchieved) {
156 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getVolume__SWIG_0(swigCPtr, out dVolume, dTolRequired, out dTolAchieved);
158 return ret;
159 }
160
161 public OdBrErrorStatus getVolume(out double dVolume, double dTolRequired) {
162 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getVolume__SWIG_1(swigCPtr, out dVolume, dTolRequired);
164 return ret;
165 }
166
167 public OdBrErrorStatus getVolume(out double dVolume) {
170 return ret;
171 }
172
173 public OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired, out double dTolAchieved) {
174 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getSurfaceArea__SWIG_0(swigCPtr, out dArea, dTolRequired, out dTolAchieved);
176 return ret;
177 }
178
179 public OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired) {
182 return ret;
183 }
184
185 public OdBrErrorStatus getSurfaceArea(out double dArea) {
188 return ret;
189 }
190
191 public OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired, out double dTolAchieved) {
192 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdBrEntity_getPerimeterLength__SWIG_0(swigCPtr, out dLength, dTolRequired, out dTolAchieved);
194 return ret;
195 }
196
197 public OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired) {
200 return ret;
201 }
202
203 public OdBrErrorStatus getPerimeterLength(out double dLength) {
206 return ret;
207 }
208
209 public UInt64 getUniqueId() {
210// test csout
211 /*SIMPLETYPE*/
212 UInt64 ret = GlobalsPINVOKE.OdBrEntity_getUniqueId(swigCPtr);
214 return ret;
215 }
216
217 public static double dUnspecified {
218 set {
221 }
222 get {
225 return ret;
226 }
227 }
228
232 return ret;
233 }
234
235}
236
237}
static global::System.Exception Retrieve()
static bool OdBrEntity_checkEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrEntity_getVolume__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3)
static int OdBrEntity_getPerimeterLength__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3)
static int OdBrEntity_getMassProps__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static void delete_OdBrEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrEntity_getPointContainment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, OdGe.PointContainment jarg3, OdBrEntity jarg4)
static int OdBrEntity_getVolume__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2)
static int OdBrEntity_setValidationLevel(global::System.Runtime.InteropServices.HandleRef jarg1, ref BrValidationLevel jarg2)
static int OdBrEntity_getValidationLevel(global::System.Runtime.InteropServices.HandleRef jarg1, ref BrValidationLevel jarg2)
static void OdBrEntity_dUnspecified_set(double jarg1)
static int OdBrEntity_getPerimeterLength__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2)
static double OdBrEntity_dUnspecified_get()
static int OdBrEntity_getBoundBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrEntity_getBrep(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrEntity_isNull(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdBrEntity_getGsMarker(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2)
static UInt64 OdBrEntity_getUniqueId(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrEntity_isEqualTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrEntity_getSurfaceArea__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2)
static global::System.IntPtr OdBrEntity_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrEntity_getSurfaceArea__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3)
static int OdBrEntity_getVolume__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, out double jarg4)
static int OdBrEntity_getMassProps__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrEntity_getMassProps__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, double jarg4)
static int OdBrEntity_setSubentPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdBrEntity_getPerimeterLength__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, out double jarg4)
static int OdBrEntity_getSubentPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrEntity_getMassProps__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, double jarg4, out double jarg5)
static int OdBrEntity_getLineContainment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3, out UInt32 jarg4, OdBrHit jarg5)
static int OdBrEntity_getSurfaceArea__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, out double jarg4)
static UInt32 OdBrEntity_getFlags(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdBrBrep obj)
Definition: OdBrBrep.cs:25
OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity)
Definition: OdBrEntity.cs:143
OdBrEntity Assign(OdBrEntity arg0)
Definition: OdBrEntity.cs:229
OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired)
Definition: OdBrEntity.cs:137
OdBrErrorStatus getSubentPath(OdDbBaseFullSubentPath subPath)
Definition: OdBrEntity.cs:75
OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired, out double dTolAchieved)
Definition: OdBrEntity.cs:131
static double dUnspecified
Definition: OdBrEntity.cs:217
OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired, out double dTolAchieved)
Definition: OdBrEntity.cs:191
OdBrErrorStatus getPerimeterLength(out double dLength)
Definition: OdBrEntity.cs:203
OdBrErrorStatus getMassProps(OdBrMassProps massProps)
Definition: OdBrEntity.cs:149
OdBrErrorStatus getBoundBlock(OdGeBoundBlock3d block)
Definition: OdBrEntity.cs:99
bool isEqualTo(OdBrEntity pOtherEntity)
Definition: OdBrEntity.cs:57
OdBrErrorStatus getSurfaceArea(out double dArea)
Definition: OdBrEntity.cs:185
OdBrErrorStatus getPointContainment(OdGePoint3d point, OdGe.PointContainment containment, OdBrEntity brEntContainer)
Definition: OdBrEntity.cs:87
OdBrErrorStatus getValidationLevel(ref BrValidationLevel level)
Definition: OdBrEntity.cs:111
OdBrErrorStatus getGsMarker(ref IntPtr marker)
Definition: OdBrEntity.cs:125
OdBrErrorStatus getVolume(out double dVolume, double dTolRequired, out double dTolAchieved)
Definition: OdBrEntity.cs:155
OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired, out double dTolAchieved)
Definition: OdBrEntity.cs:173
OdBrErrorStatus setSubentPath(OdBrBrep brep, OdDbBaseFullSubentPath subpath)
Definition: OdBrEntity.cs:81
OdBrEntity(IntPtr cPtr, bool cMemoryOwn)
Definition: OdBrEntity.cs:21
OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired)
Definition: OdBrEntity.cs:179
bool getBrep(OdBrBrep brep)
Definition: OdBrEntity.cs:63
OdBrErrorStatus getVolume(out double dVolume, double dTolRequired)
Definition: OdBrEntity.cs:161
OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired)
Definition: OdBrEntity.cs:197
OdBrErrorStatus getLineContainment(OdGeLinearEnt3d line, UInt32 iNumHitsWanted, out UInt32 iNumHitsFound, OdBrHit brHit)
Definition: OdBrEntity.cs:93
OdBrErrorStatus setValidationLevel(ref BrValidationLevel level)
Definition: OdBrEntity.cs:105
OdBrErrorStatus getVolume(out double dVolume)
Definition: OdBrEntity.cs:167
static HandleRef getCPtr(OdBrEntity obj)
Definition: OdBrEntity.cs:26
virtual void Dispose(bool disposing)
Definition: OdBrEntity.cs:39
static HandleRef getCPtr(OdBrMassProps obj)
static HandleRef getCPtr(OdDbBaseFullSubentPath obj)
static HandleRef getCPtr(OdGeBoundBlock3d obj)
static HandleRef getCPtr(OdGeLinearEnt3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26