Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BrepBuilderInitialEdge.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 BrepBuilderInitialEdge : 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 BrepBuilderInitialEdge(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(BrepBuilderInitialEdge obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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
52 set {
55 }
56 get {
57 global::System.IntPtr cPtr = GlobalsPINVOKE.BrepBuilderInitialEdge_vertexIndex_get(swigCPtr);
58 SWIGTYPE_p_unsigned_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long(cPtr, false);
60 return ret;
61 }
62 }
63
65 set {
68 }
69 get {
70 global::System.IntPtr cPtr = GlobalsPINVOKE.BrepBuilderInitialEdge_marker_get(swigCPtr);
71 BoolToOdGsMarkerStdPair ret = (cPtr == global::System.IntPtr.Zero) ? null : new BoolToOdGsMarkerStdPair(cPtr, false);
73 return ret;
74 }
75 }
76
77 public bool hasColor {
78 set {
81 }
82 get {
85 return ret;
86 }
87 }
88
90 set {
93 }
94 get {
95 global::System.IntPtr cPtr = GlobalsPINVOKE.BrepBuilderInitialEdge_color_get(swigCPtr);
96 OdCmEntityColor ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdCmEntityColor(cPtr, false);
98 return ret;
99 }
100 }
101
102 public BrepBuilderInitialEdge(OdGeCurve3d edgeCurve, uint vertex1Index, uint vertex2Index) : this(GlobalsPINVOKE.new_BrepBuilderInitialEdge__SWIG_0(OdGeCurve3d.getCPtr(edgeCurve), vertex1Index, vertex2Index), true) {
104 }
105
106 public BrepBuilderInitialEdge(OdGeCurve3d edgeCurve, uint vertex1Index) : this(GlobalsPINVOKE.new_BrepBuilderInitialEdge__SWIG_1(OdGeCurve3d.getCPtr(edgeCurve), vertex1Index), true) {
108 }
109
110 public BrepBuilderInitialEdge(OdGeCurve3d edgeCurve) : this(GlobalsPINVOKE.new_BrepBuilderInitialEdge__SWIG_2(OdGeCurve3d.getCPtr(edgeCurve)), true) {
112 }
113
114 public BrepBuilderInitialEdge() : this(GlobalsPINVOKE.new_BrepBuilderInitialEdge__SWIG_3(), true) {
116 }
117
118 public uint Get_kInvalidIndex() {
121 return ret;
122 }
123
125 //MemoryManager mMan = MemoryManager.GetMemoryManager();
126 //MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #15
127 IntPtr ptr = GlobalsPINVOKE.BrepBuilderInitialEdge_GetCurve(swigCPtr);
128
129 OdGeCurve3d ret = null;
130 //if (null != mTrans)
131 //{
132 //mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), ptr, true));
133 ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), ptr, false);
134 //}
135 //else
136 //{
137 // ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), ptr, true);
138 //}
139
141 return ret;
142}
143
144 public void SetCurve(OdGeCurve3d curve) {
147 }
148
149}
150
151}
static HandleRef getCPtr(BoolToOdGsMarkerStdPair obj)
BrepBuilderInitialEdge(OdGeCurve3d edgeCurve, uint vertex1Index, uint vertex2Index)
BrepBuilderInitialEdge(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
static HandleRef getCPtr(BrepBuilderInitialEdge obj)
BrepBuilderInitialEdge(OdGeCurve3d edgeCurve, uint vertex1Index)
static global::System.Exception Retrieve()
static global::System.IntPtr BrepBuilderInitialEdge_marker_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BrepBuilderInitialEdge_vertexIndex_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void BrepBuilderInitialEdge_hasColor_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool BrepBuilderInitialEdge_hasColor_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BrepBuilderInitialEdge_marker_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr BrepBuilderInitialEdge_GetCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint BrepBuilderInitialEdge_Get_kInvalidIndex(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_BrepBuilderInitialEdge(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr BrepBuilderInitialEdge_color_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr BrepBuilderInitialEdge_vertexIndex_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void BrepBuilderInitialEdge_SetCurve(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void BrepBuilderInitialEdge_color_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdGeCurve3d obj)
Definition: OdGeCurve3d.cs:25