Extended .NET SDK Documentation 2025 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 new OdGeLine2d copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeLine2d_copy(swigCPtr);
44 OdGeLine2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeLine2d(cPtr, false);
46 return ret;
47 }
48
54
55 public new OdGeLine2d translateBy(OdGeVector2d translateVec) {
56 OdGeLine2d ret = new OdGeLine2d(GlobalsPINVOKE.OdGeLine2d_translateBy(swigCPtr, OdGeVector2d.getCPtr(translateVec).Handle), false);
58 return ret;
59 }
60
61 public new OdGeLine2d rotateBy(double angle, OdGePoint2d basePoint) {
62 OdGeLine2d ret = new OdGeLine2d(GlobalsPINVOKE.OdGeLine2d_rotateBy__SWIG_0(swigCPtr, angle, OdGePoint2d.getCPtr(basePoint)), false);
64 return ret;
65 }
66
67 public new OdGeLine2d rotateBy(double angle) {
68 OdGeLine2d ret = new OdGeLine2d(GlobalsPINVOKE.OdGeLine2d_rotateBy__SWIG_1(swigCPtr, angle), false);
70 return ret;
71 }
72
78
79 public new OdGeLine2d scaleBy(double scaleFactor, OdGePoint2d basePoint) {
80 OdGeLine2d ret = new OdGeLine2d(GlobalsPINVOKE.OdGeLine2d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint2d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeLine2d scaleBy(double scaleFactor) {
86 OdGeLine2d ret = new OdGeLine2d(GlobalsPINVOKE.OdGeLine2d_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGeLine2d() : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_0(), true) {
93 }
94
95 public OdGeLine2d(OdGeLine2d source) : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_1(OdGeLine2d.getCPtr(source)), true) {
97 }
98
102
103 public OdGeLine2d(OdGePoint2d point1, OdGePoint2d point2) : this(GlobalsPINVOKE.new_OdGeLine2d__SWIG_3(OdGePoint2d.getCPtr(point1), OdGePoint2d.getCPtr(point2)), true) {
105 }
106
107 public static OdGeLine2d kXAxis {
108 get {
109 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeLine2d_kXAxis_get();
110 OdGeLine2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeLine2d(cPtr, false);
112 return ret;
113 }
114 }
115
116 public static OdGeLine2d kYAxis {
117 get {
118 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeLine2d_kYAxis_get();
119 OdGeLine2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeLine2d(cPtr, false);
121 return ret;
122 }
123 }
124
130
136
142
147 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
148
154
155}
156
157}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeLine2d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeLine2d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeLine2d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLine2d_kXAxis_get()
static global::System.IntPtr OdGeLine2d_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr OdGeLine2d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
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_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
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)
static global::System.IntPtr OdGeLine2d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLine2d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
new OdGeLine2d mirror(OdGeLine2d line)
Definition OdGeLine2d.cs:73
new OdGeLine2d scaleBy(double scaleFactor)
Definition OdGeLine2d.cs:85
OdGeLine2d(OdGeLine2d source)
Definition OdGeLine2d.cs:95
override void Dispose(bool disposing)
Definition OdGeLine2d.cs:29
OdGeLine2d(OdGePoint2d point1, OdGePoint2d point2)
static OdGeLine2d kYAxis
new OdGeLine2d scaleBy(double scaleFactor, OdGePoint2d basePoint)
Definition OdGeLine2d.cs:79
OdGeLine2d(OdGePoint2d point, OdGeVector2d vect)
Definition OdGeLine2d.cs:99
new OdGeLine2d translateBy(OdGeVector2d translateVec)
Definition OdGeLine2d.cs:55
new OdGeLine2d rotateBy(double angle)
Definition OdGeLine2d.cs:67
OdGeLine2d(IntPtr cPtr, bool cMemoryOwn)
Definition OdGeLine2d.cs:20
static OdGeLine2d kXAxis
Teigha.Core.OdGe.EntityId vb_type()
static HandleRef getCPtr(OdGeLine2d obj)
Definition OdGeLine2d.cs:25
Teigha.Core.OdGeVector2d vb_direction()
new OdGeLine2d rotateBy(double angle, OdGePoint2d basePoint)
Definition OdGeLine2d.cs:61
new OdGeLine2d copy()
Definition OdGeLine2d.cs:42
new OdGeLine2d transformBy(OdGeMatrix2d xfm)
Definition OdGeLine2d.cs:49
OdGeLine2d Assign(OdGeLine2d line)
static HandleRef getCPtr(OdGeMatrix2d obj)
static HandleRef getCPtr(OdGePoint2d obj)
static HandleRef getCPtr(OdGeVector2d obj)