Extended .NET SDK Documentation 2024 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 }
91
92 private void SwigDirectorConnect() {
93 if (SwigDerivedClassHasMethod("parent", swigMethodTypes0))
94 swigDelegate0 = new SwigDelegateOdGiPathNode_0(SwigDirectorMethodparent);
95 if (SwigDerivedClassHasMethod("persistentDrawableId", swigMethodTypes1))
96 swigDelegate1 = new SwigDelegateOdGiPathNode_1(SwigDirectorMethodpersistentDrawableId);
97 if (SwigDerivedClassHasMethod("transientDrawable", swigMethodTypes2))
98 swigDelegate2 = new SwigDelegateOdGiPathNode_2(SwigDirectorMethodtransientDrawable);
99 if (SwigDerivedClassHasMethod("modelToWorld", swigMethodTypes3))
100 swigDelegate3 = new SwigDelegateOdGiPathNode_3(SwigDirectorMethodmodelToWorld);
101 if (SwigDerivedClassHasMethod("selectionMarker", swigMethodTypes4))
102 swigDelegate4 = new SwigDelegateOdGiPathNode_4(SwigDirectorMethodselectionMarker);
103 GlobalsPINVOKE.OdGiPathNode_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
104 }
105
106 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
107 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);
108 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdGiPathNode));
109 return hasDerivedMethod;
110 }
111
112 private global::System.IntPtr SwigDirectorMethodparent() {
113 return OdGiPathNode.getCPtr(parent()).Handle;
114 }
115
116 private global::System.IntPtr SwigDirectorMethodpersistentDrawableId() {
117 return OdDbStub.getCPtr(persistentDrawableId()).Handle;
118 }
119
120 private IntPtr SwigDirectorMethodtransientDrawable() {
121 return
122 // csdirectorout for OdGiDrawable*, OdGiDrawable&
123 OdGiDrawable.getCPtr(transientDrawable()).Handle
124;
125 }
126
127 private global::System.IntPtr SwigDirectorMethodmodelToWorld() {
128 return OdGeMatrix3d.getCPtr(modelToWorld()).Handle;
129 }
130
131 private IntPtr /*SIMPLETYPE*/ SwigDirectorMethodselectionMarker() {
132 return selectionMarker() /*SIMPLETYPE*/;
133 }
134
135 public delegate global::System.IntPtr SwigDelegateOdGiPathNode_0();
136 public delegate global::System.IntPtr SwigDelegateOdGiPathNode_1();
137 public delegate IntPtr SwigDelegateOdGiPathNode_2();
138 public delegate global::System.IntPtr SwigDelegateOdGiPathNode_3();
139 public delegate IntPtr /*SIMPLETYPE*/ SwigDelegateOdGiPathNode_4();
140
141 private SwigDelegateOdGiPathNode_0 swigDelegate0;
142 private SwigDelegateOdGiPathNode_1 swigDelegate1;
143 private SwigDelegateOdGiPathNode_2 swigDelegate2;
144 private SwigDelegateOdGiPathNode_3 swigDelegate3;
145 private SwigDelegateOdGiPathNode_4 swigDelegate4;
146
147 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { };
148 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
149 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
150 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
151 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
152}
153
154}
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)
Definition: OdGiPathNode.cs:39
delegate global::System.IntPtr SwigDelegateOdGiPathNode_3()
virtual IntPtr selectionMarker()
Definition: OdGiPathNode.cs:79
delegate IntPtr SwigDelegateOdGiPathNode_4()
virtual OdDbStub persistentDrawableId()
Definition: OdGiPathNode.cs:58
virtual OdGiDrawable transientDrawable()
Definition: OdGiPathNode.cs:65
delegate global::System.IntPtr SwigDelegateOdGiPathNode_1()
virtual OdGeMatrix3d modelToWorld()
Definition: OdGiPathNode.cs:72
virtual OdGiPathNode parent()
Definition: OdGiPathNode.cs:51
OdGiPathNode(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGiPathNode.cs:21
delegate IntPtr SwigDelegateOdGiPathNode_2()
static HandleRef getCPtr(OdGiPathNode obj)
Definition: OdGiPathNode.cs:26