Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
VertexPair.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 VertexPair : 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 VertexPair(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(VertexPair obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~VertexPair() {
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 VertexPair() : this(GlobalsPINVOKE.new_VertexPair__SWIG_0(), true) {
53 }
54
55 public VertexPair(int a, int b) : this(GlobalsPINVOKE.new_VertexPair__SWIG_1(a, b), true) {
57 }
58
59 public bool isPresent(int a) {
60 bool ret = GlobalsPINVOKE.VertexPair_isPresent(swigCPtr, a);
62 return ret;
63 }
64
65 public bool equal(VertexPair pair) {
66 bool ret = GlobalsPINVOKE.VertexPair_equal(swigCPtr, VertexPair.getCPtr(pair));
68 return ret;
69 }
70
71 public double m_cost {
72 set {
75 }
76 get {
77 double ret = GlobalsPINVOKE.VertexPair_m_cost_get(swigCPtr);
79 return ret;
80 }
81 }
82
83 public intPair m_edge {
84 set {
87 }
88 get {
89 global::System.IntPtr cPtr = GlobalsPINVOKE.VertexPair_m_edge_get(swigCPtr);
90 intPair ret = (cPtr == global::System.IntPtr.Zero) ? null : new intPair(cPtr, false);
92 return ret;
93 }
94 }
95
97 set {
100 }
101 get {
102 global::System.IntPtr cPtr = GlobalsPINVOKE.VertexPair_m_newVx_get(swigCPtr);
103 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
105 return ret;
106 }
107 }
108
109}
110
111}
static global::System.Exception Retrieve()
static global::System.IntPtr VertexPair_m_edge_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void VertexPair_m_cost_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void delete_VertexPair(global::System.Runtime.InteropServices.HandleRef jarg1)
static void VertexPair_m_edge_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool VertexPair_equal(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr VertexPair_m_newVx_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double VertexPair_m_cost_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool VertexPair_isPresent(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void VertexPair_m_newVx_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
bool equal(VertexPair pair)
Definition: VertexPair.cs:65
VertexPair(IntPtr cPtr, bool cMemoryOwn)
Definition: VertexPair.cs:21
OdGePoint3d m_newVx
Definition: VertexPair.cs:96
static HandleRef getCPtr(VertexPair obj)
Definition: VertexPair.cs:26
VertexPair(int a, int b)
Definition: VertexPair.cs:55
virtual void Dispose(bool disposing)
Definition: VertexPair.cs:39
bool isPresent(int a)
Definition: VertexPair.cs:59
static HandleRef getCPtr(intPair obj)
Definition: intPair.cs:26