Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbObjectIdGraph.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbObjectIdGraph(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbObjectIdGraph_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbObjectIdGraph obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public OdDbObjectIdGraph() : this(TD_DbPINVOKE.new_OdDbObjectIdGraph(), true) {
45 }
46
48 OdDbObjectIdGraphNode ret = (OdDbObjectIdGraphNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObjectIdGraphNode),TD_DbPINVOKE.OdDbObjectIdGraph_findNode(swigCPtr, OdDbObjectId.getCPtr(arg0)),false); /*createInt 3_2*/
49
51 return ret;
52}
53
54 public OdDbObjectIdGraphNode idNode(int idx) {
55 OdDbObjectIdGraphNode ret = (OdDbObjectIdGraphNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObjectIdGraphNode),TD_DbPINVOKE.OdDbObjectIdGraph_idNode(swigCPtr, idx),false); /*createInt 3_2*/
56
58 return ret;
59}
60
61}
62
63}
OdDbObjectIdGraphNode findNode(OdDbObjectId arg0)
override void Dispose(bool disposing)
OdDbObjectIdGraphNode idNode(int idx)
OdDbObjectIdGraph(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdDbObjectIdGraph obj)
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static global::System.Exception Retrieve()
static IntPtr OdDbObjectIdGraph_idNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_OdDbObjectIdGraph(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDbObjectIdGraph_findNode(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)