Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdIBrEdge.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 OdIBrEdge : OdIBrEntity {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdIBrEdge(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdIBrEdge_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdIBrEdge 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 virtual OdIBrVertex getVertex1() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdIBrEdge_getVertex1(swigCPtr);
44 OdIBrVertex ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIBrVertex(cPtr, false);
46 return ret;
47 }
48
49 public virtual OdIBrVertex getVertex2() {
50 global::System.IntPtr cPtr = GlobalsPINVOKE.OdIBrEdge_getVertex2(swigCPtr);
51 OdIBrVertex ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIBrVertex(cPtr, false);
53 return ret;
54 }
55
56 public virtual OdGe.EntityId getCurveType() {
59 return ret;
60 }
61
62 public virtual OdGeCurve3d getGeCurve() {
63 OdGeCurve3d ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), GlobalsPINVOKE.OdIBrEdge_getGeCurve__SWIG_0(swigCPtr), false);
64
66 return ret;
67}
68
69 public virtual OdBrErrorStatus getGeCurve(out OdGeCurve3d pCurve) {
70IntPtr p_pCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
71 try {
74 return ret;
75 } finally {
76MemoryTransaction mTrans_pCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
77 if(mTrans_pCurve != null)
78 mTrans_pCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pCurve, true));
79 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pCurve, mTrans_pCurve == null);
80 /*OUT_PARAM_OBJ POST*/
81 }
82 }
83
84 public virtual bool getCurveAsNurb(OdGeNurbCurve3d nurb) {
87 return ret;
88 }
89
90 public virtual bool getOrientToCurve() {
91 bool ret = GlobalsPINVOKE.OdIBrEdge_getOrientToCurve(swigCPtr);
93 return ret;
94 }
95
96 public virtual void next(OdIBrCoedge pFirstChild, OdIBrCoedge pCurChild) {
97 GlobalsPINVOKE.OdIBrEdge_next(swigCPtr, OdIBrCoedge.getCPtr(pFirstChild), OdIBrCoedge.getCPtr(pCurChild).Handle);
99 }
100
101 public virtual bool hasColor(byte /*SIMPLETYPE*/ typeFlag) {
102 bool ret = GlobalsPINVOKE.OdIBrEdge_hasColor(swigCPtr, typeFlag /*SIMPLETYPE*/);
104 return ret;
105 }
106
107 public virtual bool getTrueColor(out UInt32 /*SIMPLETYPE*/ rgb) {
108 bool ret = GlobalsPINVOKE.OdIBrEdge_getTrueColor(swigCPtr, out rgb);
110 return ret;
111 }
112
113 public virtual bool getColorIndex(out UInt16 /*SIMPLETYPE*/ indx) {
114 bool ret = GlobalsPINVOKE.OdIBrEdge_getColorIndex(swigCPtr, out indx);
116 return ret;
117 }
118
119}
120
121}
static global::System.Exception Retrieve()
static bool OdIBrEdge_getCurveAsNurb(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdIBrEdge_next(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static IntPtr OdIBrEdge_getGeCurve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdIBrEdge_getVertex1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrEdge_getOrientToCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdIBrEdge_getVertex2(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdIBrEdge(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdIBrEdge_getCurveType(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdIBrEdge_getTrueColor(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static bool OdIBrEdge_hasColor(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static bool OdIBrEdge_getColorIndex(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt16 jarg2)
static int OdIBrEdge_getGeCurve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out IntPtr jarg2)
static HandleRef getCPtr(OdGeNurbCurve3d obj)
static HandleRef getCPtr(OdIBrCoedge obj)
Definition: OdIBrCoedge.cs:25
virtual OdGe.EntityId getCurveType()
Definition: OdIBrEdge.cs:56
OdIBrEdge(IntPtr cPtr, bool cMemoryOwn)
Definition: OdIBrEdge.cs:20
static HandleRef getCPtr(OdIBrEdge obj)
Definition: OdIBrEdge.cs:25
virtual OdIBrVertex getVertex2()
Definition: OdIBrEdge.cs:49
virtual bool getColorIndex(out UInt16 indx)
Definition: OdIBrEdge.cs:113
virtual OdGeCurve3d getGeCurve()
Definition: OdIBrEdge.cs:62
virtual void next(OdIBrCoedge pFirstChild, OdIBrCoedge pCurChild)
Definition: OdIBrEdge.cs:96
virtual OdBrErrorStatus getGeCurve(out OdGeCurve3d pCurve)
Definition: OdIBrEdge.cs:69
virtual bool getTrueColor(out UInt32 rgb)
Definition: OdIBrEdge.cs:107
virtual bool getOrientToCurve()
Definition: OdIBrEdge.cs:90
virtual OdIBrVertex getVertex1()
Definition: OdIBrEdge.cs:42
virtual bool getCurveAsNurb(OdGeNurbCurve3d nurb)
Definition: OdIBrEdge.cs:84
override void Dispose(bool disposing)
Definition: OdIBrEdge.cs:29
virtual bool hasColor(byte typeFlag)
Definition: OdIBrEdge.cs:101