Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbGraph.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
17public class OdDbGraph : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDbGraph(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDbGraph obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 ~OdDbGraph() {
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdDbGraph() : this(TD_DbPINVOKE.new_OdDbGraph(), true) {
54 }
55
56 public OdDbGraphNode node(int nodeIndex) {
57 OdDbGraphNode ret = (OdDbGraphNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbGraphNode),TD_DbPINVOKE.OdDbGraph_node(swigCPtr, nodeIndex),false); /*createInt 3_2*/
58
60 return ret;
61}
62
64 OdDbGraphNode ret = (OdDbGraphNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbGraphNode),TD_DbPINVOKE.OdDbGraph_rootNode(swigCPtr),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public int numNodes() {
71 int ret = TD_DbPINVOKE.OdDbGraph_numNodes(swigCPtr);
73 return ret;
74 }
75
76 public bool isEmpty() {
77 bool ret = TD_DbPINVOKE.OdDbGraph_isEmpty(swigCPtr);
79 return ret;
80 }
81
82 public void addNode(OdDbGraphNode pNode) {
85 }
86
87 public void addEdge(OdDbGraphNode pFrom, OdDbGraphNode pTo) {
90 }
91
92 public void delNode(OdDbGraphNode pNode) {
95 }
96
97 public void reset() {
100 }
101
102 public void clearAll(byte /*SIMPLETYPE*/ flags) {
103 TD_DbPINVOKE.OdDbGraph_clearAll(swigCPtr, flags /*SIMPLETYPE*/);
105 }
106
107 public void getOutgoing(OdDbGraphNodeArray outgoing) {
110 }
111
112 public virtual bool findCycles(OdDbGraphNode pStart) {
115 return ret;
116 }
117
118 public virtual bool findCycles() {
119 bool ret = TD_DbPINVOKE.OdDbGraph_findCycles__SWIG_1(swigCPtr);
121 return ret;
122 }
123
127 }
128
129}
130
131}
virtual void Dispose(bool disposing)
Definition: OdDbGraph.cs:40
void clearAll(byte flags)
Definition: OdDbGraph.cs:102
void getOutgoing(OdDbGraphNodeArray outgoing)
Definition: OdDbGraph.cs:107
void addEdge(OdDbGraphNode pFrom, OdDbGraphNode pTo)
Definition: OdDbGraph.cs:87
OdDbGraph(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDbGraph.cs:22
static HandleRef getCPtr(OdDbGraph obj)
Definition: OdDbGraph.cs:27
void breakCycleEdge(OdDbGraphNode pFrom, OdDbGraphNode pTo)
Definition: OdDbGraph.cs:124
OdDbGraphNode node(int nodeIndex)
Definition: OdDbGraph.cs:56
virtual bool findCycles(OdDbGraphNode pStart)
Definition: OdDbGraph.cs:112
virtual bool findCycles()
Definition: OdDbGraph.cs:118
OdDbGraphNode rootNode()
Definition: OdDbGraph.cs:63
void delNode(OdDbGraphNode pNode)
Definition: OdDbGraph.cs:92
void addNode(OdDbGraphNode pNode)
Definition: OdDbGraph.cs:82
static HandleRef getCPtr(OdDbGraphNodeArray obj)
static HandleRef getCPtr(OdDbGraphNode obj)
static global::System.Exception Retrieve()
static void OdDbGraph_addEdge(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static IntPtr OdDbGraph_rootNode(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdDbGraph(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbGraph_addNode(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdDbGraph_clearAll(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static void OdDbGraph_delNode(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdDbGraph_findCycles__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdDbGraph_reset(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDbGraph_node(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int OdDbGraph_numNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbGraph_findCycles__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbGraph_breakCycleEdge(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static void OdDbGraph_getOutgoing(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbGraph_isEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)