Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiPathNode.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 OdGiPathNode : 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 OdGiPathNode(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(OdGiPathNode 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
51 public virtual OdGiPathNode parent() {
52 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiPathNode_parent(swigCPtr);
53 OdGiPathNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiPathNode(cPtr, false);
55 return ret;
56 }
57
58 public virtual OdDbStub persistentDrawableId() {
59 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiPathNode_persistentDrawableId(swigCPtr);
60 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
62 return ret;
63 }
64
65 public virtual OdGiDrawable transientDrawable() {
66 OdGiDrawable ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),GlobalsPINVOKE.OdGiPathNode_transientDrawable(swigCPtr),false); /*createInt 3_2*/
67
69 return ret;
70}
71
72 public virtual OdGeMatrix3d modelToWorld() {
73 global::System.IntPtr cPtr = (SwigDerivedClassHasMethod("modelToWorld", swigMethodTypes3) ? GlobalsPINVOKE.OdGiPathNode_modelToWorldSwigExplicitOdGiPathNode(swigCPtr) : GlobalsPINVOKE.OdGiPathNode_modelToWorld(swigCPtr));
74 OdGeMatrix3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeMatrix3d(cPtr, false);
76 return ret;
77 }
78
79 public virtual IntPtr selectionMarker() {
80// test csout
81 /*SIMPLETYPE*/
82 IntPtr ret = GlobalsPINVOKE.OdGiPathNode_selectionMarker(swigCPtr);
84 return ret;
85 }
86
87 public OdGiPathNode() : this(GlobalsPINVOKE.new_OdGiPathNode(), true) {
89 SwigDirectorConnect();
90 DelegateHolder.OnHoldSwigDirectorDelegates(this);
91 if(this is OdRxObject)
92 {
93 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
94 if (null != mTr)
95 {
96 mTr.AddObject(new OdGiPathNode(swigCPtr.Handle, true));
97 this.swigCMemOwn = false;
98 }
99}
100 }
101
102 private void SwigDirectorConnect() {
103 if (SwigDerivedClassHasMethod("parent", swigMethodTypes0))
104 swigDelegate0 = new SwigDelegateOdGiPathNode_0(SwigDirectorMethodparent);
105 if (SwigDerivedClassHasMethod("persistentDrawableId", swigMethodTypes1))
106 swigDelegate1 = new SwigDelegateOdGiPathNode_1(SwigDirectorMethodpersistentDrawableId);
107 if (SwigDerivedClassHasMethod("transientDrawable", swigMethodTypes2))
108 swigDelegate2 = new SwigDelegateOdGiPathNode_2(SwigDirectorMethodtransientDrawable);
109 if (SwigDerivedClassHasMethod("modelToWorld", swigMethodTypes3))
110 swigDelegate3 = new SwigDelegateOdGiPathNode_3(SwigDirectorMethodmodelToWorld);
111 if (SwigDerivedClassHasMethod("selectionMarker", swigMethodTypes4))
112 swigDelegate4 = new SwigDelegateOdGiPathNode_4(SwigDirectorMethodselectionMarker);
113 GlobalsPINVOKE.OdGiPathNode_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
114 }
115
116 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
117 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
118 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdGiPathNode));
119 return hasDerivedMethod;
120 }
121
122 private global::System.IntPtr SwigDirectorMethodparent() {
123 return OdGiPathNode.getCPtr(parent()).Handle;
124 }
125
126 private global::System.IntPtr SwigDirectorMethodpersistentDrawableId() {
127 return OdDbStub.getCPtr(persistentDrawableId()).Handle;
128 }
129
130 private IntPtr SwigDirectorMethodtransientDrawable() {
131 return
132 // csdirectorout for OdGiDrawable*, OdGiDrawable&
133 OdGiDrawable.getCPtr(transientDrawable()).Handle
134;
135 }
136
137 private global::System.IntPtr SwigDirectorMethodmodelToWorld() {
138 return OdGeMatrix3d.getCPtr(modelToWorld()).Handle;
139 }
140
141 private IntPtr /*SIMPLETYPE*/ SwigDirectorMethodselectionMarker() {
142 return selectionMarker() /*SIMPLETYPE*/;
143 }
144
145 public delegate global::System.IntPtr SwigDelegateOdGiPathNode_0();
146 public delegate global::System.IntPtr SwigDelegateOdGiPathNode_1();
147 public delegate IntPtr SwigDelegateOdGiPathNode_2();
148 public delegate global::System.IntPtr SwigDelegateOdGiPathNode_3();
149 public delegate IntPtr /*SIMPLETYPE*/ SwigDelegateOdGiPathNode_4();
150
151 private SwigDelegateOdGiPathNode_0 swigDelegate0;
152 private SwigDelegateOdGiPathNode_1 swigDelegate1;
153 private SwigDelegateOdGiPathNode_2 swigDelegate2;
154 private SwigDelegateOdGiPathNode_3 swigDelegate3;
155 private SwigDelegateOdGiPathNode_4 swigDelegate4;
156
157 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
158 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
159 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
160 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
161 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
162}
163
164}
static global::System.Exception Retrieve()
static IntPtr OdGiPathNode_selectionMarker(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiPathNode_persistentDrawableId(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiPathNode_parent(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiPathNode_modelToWorld(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGiPathNode_transientDrawable(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGiPathNode(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiPathNode_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdGiPathNode.SwigDelegateOdGiPathNode_0 delegate0, OdGiPathNode.SwigDelegateOdGiPathNode_1 delegate1, OdGiPathNode.SwigDelegateOdGiPathNode_2 delegate2, OdGiPathNode.SwigDelegateOdGiPathNode_3 delegate3, OdGiPathNode.SwigDelegateOdGiPathNode_4 delegate4)
static global::System.IntPtr OdGiPathNode_modelToWorldSwigExplicitOdGiPathNode(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate global::System.IntPtr SwigDelegateOdGiPathNode_0()
virtual void Dispose(bool disposing)
delegate global::System.IntPtr SwigDelegateOdGiPathNode_3()
virtual IntPtr selectionMarker()
delegate IntPtr SwigDelegateOdGiPathNode_4()
virtual OdDbStub persistentDrawableId()
virtual OdGiDrawable transientDrawable()
delegate global::System.IntPtr SwigDelegateOdGiPathNode_1()
virtual OdGeMatrix3d modelToWorld()
virtual OdGiPathNode parent()
OdGiPathNode(IntPtr cPtr, bool cMemoryOwn)
delegate IntPtr SwigDelegateOdGiPathNode_2()
static HandleRef getCPtr(OdGiPathNode obj)