Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdBrEdge.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 OdBrEdge : OdBrEntity {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdBrEdge(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdBrEdge_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdBrEdge 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 bool getVertex2(OdBrVertex vertex2) {
43 bool ret = GlobalsPINVOKE.OdBrEdge_getVertex2(swigCPtr, OdBrVertex.getCPtr(vertex2));
45 return ret;
46 }
47
48 public bool getVertex1(OdBrVertex vertex1) {
49 bool ret = GlobalsPINVOKE.OdBrEdge_getVertex1(swigCPtr, OdBrVertex.getCPtr(vertex1));
51 return ret;
52 }
53
57 return ret;
58 }
59
61 OdGeCurve3d ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), GlobalsPINVOKE.OdBrEdge_getCurve__SWIG_0(swigCPtr), false);
62
64 return ret;
65}
66
68IntPtr p_pCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
69 try {
72 return ret;
73 } finally {
74MemoryTransaction mTrans_pCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
75 if(mTrans_pCurve != null)
76 mTrans_pCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pCurve, true));
77 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pCurve, mTrans_pCurve == null);
78 /*OUT_PARAM_OBJ POST*/
79 }
80 }
81
82 public bool getCurveAsNurb(OdGeNurbCurve3d nurb) {
85 return ret;
86 }
87
88 public bool getOrientToCurve() {
89 bool ret = GlobalsPINVOKE.OdBrEdge_getOrientToCurve(swigCPtr);
91 return ret;
92 }
93
94 public bool getColor(OdCmEntityColor color) {
95 bool ret = GlobalsPINVOKE.OdBrEdge_getColor(swigCPtr, OdCmEntityColor.getCPtr(color));
97 return ret;
98 }
99
100 public OdBrEdge() : this(GlobalsPINVOKE.new_OdBrEdge__SWIG_0(), true) {
102 }
103
104 public OdBrEdge(OdBrEdge arg0) : this(GlobalsPINVOKE.new_OdBrEdge__SWIG_1(OdBrEdge.getCPtr(arg0)), true) {
106 }
107
108 public OdBrEdge Assign(OdBrEdge arg0) {
109 OdBrEdge ret = new OdBrEdge(GlobalsPINVOKE.OdBrEdge_Assign__SWIG_0(swigCPtr, OdBrEdge.getCPtr(arg0)), false);
111 return ret;
112 }
113
114}
115
116}
static global::System.Exception Retrieve()
static void delete_OdBrEdge(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdBrEdge_getCurve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrEdge_getVertex1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrEdge_getCurveType(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdBrEdge_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrEdge_getCurveAsNurb(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrEdge_getOrientToCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrEdge_getColor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdBrEdge_getCurve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out IntPtr jarg2)
static bool OdBrEdge_getVertex2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool getVertex1(OdBrVertex vertex1)
Definition: OdBrEdge.cs:48
OdBrErrorStatus getCurve(out OdGeCurve3d pCurve)
Definition: OdBrEdge.cs:67
OdBrEdge(OdBrEdge arg0)
Definition: OdBrEdge.cs:104
static HandleRef getCPtr(OdBrEdge obj)
Definition: OdBrEdge.cs:25
bool getVertex2(OdBrVertex vertex2)
Definition: OdBrEdge.cs:42
OdBrEdge Assign(OdBrEdge arg0)
Definition: OdBrEdge.cs:108
bool getCurveAsNurb(OdGeNurbCurve3d nurb)
Definition: OdBrEdge.cs:82
OdBrEdge(IntPtr cPtr, bool cMemoryOwn)
Definition: OdBrEdge.cs:20
bool getOrientToCurve()
Definition: OdBrEdge.cs:88
OdGeCurve3d getCurve()
Definition: OdBrEdge.cs:60
OdGe.EntityId getCurveType()
Definition: OdBrEdge.cs:54
bool getColor(OdCmEntityColor color)
Definition: OdBrEdge.cs:94
override void Dispose(bool disposing)
Definition: OdBrEdge.cs:29
static HandleRef getCPtr(OdBrVertex obj)
Definition: OdBrVertex.cs:25
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdGeNurbCurve3d obj)