Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdIBrEntity.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 OdIBrEntity : 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 OdIBrEntity(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(OdIBrEntity obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdIBrEntity() {
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 virtual bool isEqualTo(OdIBrEntity pIBrEntity) {
52 bool ret = GlobalsPINVOKE.OdIBrEntity_isEqualTo(swigCPtr, OdIBrEntity.getCPtr(pIBrEntity));
54 return ret;
55 }
56
57 public virtual bool isNull() {
58 bool ret = GlobalsPINVOKE.OdIBrEntity_isNull(swigCPtr);
60 return ret;
61 }
62
63 public virtual bool isValid() {
64 bool ret = GlobalsPINVOKE.OdIBrEntity_isValid(swigCPtr);
66 return ret;
67 }
68
69 public virtual OdIBrFile getBrep() {
70 global::System.IntPtr cPtr = GlobalsPINVOKE.OdIBrEntity_getBrep(swigCPtr);
71 OdIBrFile ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIBrFile(cPtr, false);
73 return ret;
74 }
75
76 public virtual bool checkEntity() {
77 bool ret = GlobalsPINVOKE.OdIBrEntity_checkEntity(swigCPtr);
79 return ret;
80 }
81
82 public virtual OdBrErrorStatus getSubentPath(out Int32 arg0, out Int32 arg1) {
85 return ret;
86 }
87
88 public virtual OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired, out double dTolAchieved) {
89 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdIBrEntity_getMassProps(swigCPtr, OdBrMassProps.getCPtr(massProps), dDensity, dTolRequired, out dTolAchieved);
91 return ret;
92 }
93
94 public virtual OdBrErrorStatus getVolume(out double dVolume, double dTolRequired, out double dTolAchieved) {
95 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdIBrEntity_getVolume(swigCPtr, out dVolume, dTolRequired, out dTolAchieved);
97 return ret;
98 }
99
100 public virtual OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired, out double dTolAchieved) {
101 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdIBrEntity_getSurfaceArea(swigCPtr, out dArea, dTolRequired, out dTolAchieved);
103 return ret;
104 }
105
106 public virtual OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired, out double dTolAchieved) {
107 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdIBrEntity_getPerimeterLength(swigCPtr, out dLength, dTolRequired, out dTolAchieved);
109 return ret;
110 }
111
117
123
124 public virtual OdBrErrorStatus getLineContainment(OdGeLinearEnt3d arg0, UInt32 /*SIMPLETYPE cstype*/ arg1, out UInt32 arg2, OdIBrHit arg3) {
125 OdBrErrorStatus ret = (OdBrErrorStatus)GlobalsPINVOKE.OdIBrEntity_getLineContainment(swigCPtr, OdGeLinearEnt3d.getCPtr(arg0), arg1 /*SIMPLETYPE csin*/, out arg2, OdIBrHit.getCPtr(arg3).Handle);
127 return ret;
128 }
129
130 public virtual UInt32 getFlags() {
131// test csout
132 /*SIMPLETYPE*/
133 UInt32 ret = GlobalsPINVOKE.OdIBrEntity_getFlags(swigCPtr);
135 return ret;
136 }
137
138 public virtual OdBrErrorStatus getGsMarker(ref IntPtr marker) {
141 return ret;
142 }
143
144}
145
146}
static global::System.Exception Retrieve()
static int OdIBrEntity_getBoundBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdIBrEntity_isNull(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdIBrEntity_getSurfaceArea(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, out double jarg4)
static int OdIBrEntity_getMassProps(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, double jarg4, out double jarg5)
static void delete_OdIBrEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdIBrEntity_getBrep(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdIBrEntity_getPerimeterLength(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, out double jarg4)
static bool OdIBrEntity_checkEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrEntity_isEqualTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdIBrEntity_getVolume(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, double jarg3, out double jarg4)
static int OdIBrEntity_getGsMarker(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2)
static UInt32 OdIBrEntity_getFlags(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdIBrEntity_getLineContainment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3, out UInt32 jarg4, IntPtr jarg5)
static bool OdIBrEntity_isValid(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdIBrEntity_getPointContainment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, OdGe.PointContainment jarg3, IntPtr jarg4, out UInt32 jarg5)
static int OdIBrEntity_getSubentPath(global::System.Runtime.InteropServices.HandleRef jarg1, out Int32 jarg2, out Int32 jarg3)
static HandleRef getCPtr(OdBrMassProps obj)
static HandleRef getCPtr(OdGeBoundBlock3d obj)
static HandleRef getCPtr(OdGeLinearEnt3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
virtual OdBrErrorStatus getMassProps(OdBrMassProps massProps, double dDensity, double dTolRequired, out double dTolAchieved)
virtual bool isNull()
virtual bool isEqualTo(OdIBrEntity pIBrEntity)
virtual OdIBrFile getBrep()
virtual void Dispose(bool disposing)
virtual OdBrErrorStatus getPointContainment(OdGePoint3d arg0, OdGe.PointContainment arg1, OdIBrEntity arg2, out UInt32 arg3)
virtual UInt32 getFlags()
virtual bool isValid()
virtual OdBrErrorStatus getSubentPath(out Int32 arg0, out Int32 arg1)
static HandleRef getCPtr(OdIBrEntity obj)
virtual OdBrErrorStatus getBoundBlock(OdGeBoundBlock3d block)
virtual bool checkEntity()
virtual OdBrErrorStatus getLineContainment(OdGeLinearEnt3d arg0, UInt32 arg1, out UInt32 arg2, OdIBrHit arg3)
virtual OdBrErrorStatus getPerimeterLength(out double dLength, double dTolRequired, out double dTolAchieved)
virtual OdBrErrorStatus getGsMarker(ref IntPtr marker)
OdIBrEntity(IntPtr cPtr, bool cMemoryOwn)
virtual OdBrErrorStatus getVolume(out double dVolume, double dTolRequired, out double dTolAchieved)
virtual OdBrErrorStatus getSurfaceArea(out double dArea, double dTolRequired, out double dTolAchieved)
static HandleRef getCPtr(OdIBrHit obj)
Definition OdIBrHit.cs:26