Extended .NET SDK Documentation 2025 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
74
80
86
92
93 public OdBrErrorStatus getLineContainment(OdGeLinearEnt3d line, UInt32 /*SIMPLETYPE cstype*/ iNumHitsWanted, out UInt32 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
104
110
116
117 public UInt32 getFlags() {
118// test csout
119 /*SIMPLETYPE*/
120 UInt32 ret = GlobalsPINVOKE.OdBrEntity_getFlags(swigCPtr);
122 return ret;
123 }
124
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
148
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
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
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
208
209 public UInt64 getUniqueId() {
210// test csout
211 /*SIMPLETYPE*/
212 UInt64 ret = GlobalsPINVOKE.OdBrEntity_getUniqueId(swigCPtr);
214 return ret;
215 }
216
228
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)
OdBrEntity Assign(OdBrEntity arg0)
OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired)
OdBrErrorStatus getSubentPath(OdDbBaseFullSubentPath subPath)
Definition OdBrEntity.cs:75
OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired, out double dTolAchieved)
static double dUnspecified
OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired, out double dTolAchieved)
OdBrErrorStatus getPerimeterLength(out double dLength)
OdBrErrorStatus getMassProps(OdBrMassProps massProps)
OdBrErrorStatus getBoundBlock(OdGeBoundBlock3d block)
Definition OdBrEntity.cs:99
bool isEqualTo(OdBrEntity pOtherEntity)
Definition OdBrEntity.cs:57
OdBrErrorStatus getSurfaceArea(out double dArea)
OdBrErrorStatus getPointContainment(OdGePoint3d point, OdGe.PointContainment containment, OdBrEntity brEntContainer)
Definition OdBrEntity.cs:87
OdBrErrorStatus getValidationLevel(ref BrValidationLevel level)
OdBrErrorStatus getGsMarker(ref IntPtr marker)
OdBrErrorStatus getVolume(out double dVolume, double dTolRequired, out double dTolAchieved)
OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired, out double dTolAchieved)
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)
bool getBrep(OdBrBrep brep)
Definition OdBrEntity.cs:63
OdBrErrorStatus getVolume(out double dVolume, double dTolRequired)
OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired)
OdBrErrorStatus getLineContainment(OdGeLinearEnt3d line, UInt32 iNumHitsWanted, out UInt32 iNumHitsFound, OdBrHit brHit)
Definition OdBrEntity.cs:93
OdBrErrorStatus setValidationLevel(ref BrValidationLevel level)
OdBrErrorStatus getVolume(out double dVolume)
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)