Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeLine2d.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeLine2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeLine2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeLine2d obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public OdGeLine2d() : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_0(), true) {
44 }
45
46 public OdGeLine2d(OdGeLine2d source) : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_1(OdGeLine2d.getCPtr(source)), true) {
48 }
49
50 public OdGeLine2d(OdGePoint2d point, OdGeVector2d vect) : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_2(OdGePoint2d.getCPtr(point), OdGeVector2d.getCPtr(vect).Handle), true) {
52 }
53
54 public OdGeLine2d(OdGePoint2d point1, OdGePoint2d point2) : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_3(OdGePoint2d.getCPtr(point1), OdGePoint2d.getCPtr(point2)), true) {
56 }
57
58 public static OdGeLine2d kXAxis {
59 get {
60 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeLine2d_kXAxis_get();
61 OdGeLine2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeLine2d(cPtr, false);
63 return ret;
64 }
65 }
66
67 public static OdGeLine2d kYAxis {
68 get {
69 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeLine2d_kYAxis_get();
70 OdGeLine2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeLine2d(cPtr, false);
72 return ret;
73 }
74 }
75
76 public OdGeLine2d set(OdGePoint2d point, OdGeVector2d vect) {
77 OdGeLine2d ret = new OdGeLine2d(GlobalsPINVOKE.OdGeLine2d_set__SWIG_0(swigCPtr, OdGePoint2d.getCPtr(point), OdGeVector2d.getCPtr(vect).Handle), false);
79 return ret;
80 }
81
82 public OdGeLine2d set(OdGePoint2d point1, OdGePoint2d point2) {
85 return ret;
86 }
87
91 return ret;
92 }
93
98 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
99
105
106}
107
108}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeLine2d_kXAxis_get()
static global::System.IntPtr OdGeLine2d_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeLine2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeLine2d_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLine2d_kYAxis_get()
static void delete_OdGeLine2d(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGe.EntityId type()
Definition: OdGeEntity2d.cs:57
OdGeLine2d(OdGeLine2d source)
Definition: OdGeLine2d.cs:46
override void Dispose(bool disposing)
Definition: OdGeLine2d.cs:29
OdGeLine2d(OdGePoint2d point1, OdGePoint2d point2)
Definition: OdGeLine2d.cs:54
static OdGeLine2d kYAxis
Definition: OdGeLine2d.cs:67
OdGeLine2d(OdGePoint2d point, OdGeVector2d vect)
Definition: OdGeLine2d.cs:50
OdGeLine2d(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeLine2d.cs:20
static OdGeLine2d kXAxis
Definition: OdGeLine2d.cs:58
Teigha.Core.OdGe.EntityId vb_type()
Definition: OdGeLine2d.cs:98
static HandleRef getCPtr(OdGeLine2d obj)
Definition: OdGeLine2d.cs:25
Teigha.Core.OdGeVector2d vb_direction()
Definition: OdGeLine2d.cs:104
OdGeLine2d Assign(OdGeLine2d line)
Definition: OdGeLine2d.cs:88
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGeVector2d obj)
Definition: OdGeVector2d.cs:26