Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeLinearEnt2d.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 OdGeLinearEnt2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeLinearEnt2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeLinearEnt2d 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 OdGeLinearEnt2d copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeLinearEnt2d_copy(swigCPtr);
44 OdGeLinearEnt2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeLinearEnt2d(cPtr, false);
46 return ret;
47 }
48
54
60
66
72
78
79 public new OdGeLinearEnt2d scaleBy(double scaleFactor, OdGePoint2d basePoint) {
80 OdGeLinearEnt2d ret = new OdGeLinearEnt2d(GlobalsPINVOKE.OdGeLinearEnt2d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint2d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeLinearEnt2d scaleBy(double scaleFactor) {
88 return ret;
89 }
90
96
102
104IntPtr p_overlap = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
105 try {
106 bool ret = GlobalsPINVOKE.OdGeLinearEnt2d_overlap__SWIG_0(swigCPtr, OdGeLinearEnt2d.getCPtr(line), out p_overlap, OdGeTol.getCPtr(tol));
108 return ret;
109 } finally {
110MemoryTransaction mTrans_overlap = MemoryManager.GetMemoryManager().GetCurrentTransaction();
111 if(mTrans_overlap != null)
112 mTrans_overlap.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeLinearEnt2d>(typeof(OdGeLinearEnt2d), p_overlap, true));
113 overlap = Teigha.Core.Helpers.odCreateObjectInternal<OdGeLinearEnt2d>(typeof(OdGeLinearEnt2d), p_overlap, mTrans_overlap == null);
114 /*OUT_PARAM_OBJ POST*/
115 }
116 }
117
119IntPtr p_overlap = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
120 try {
121 bool ret = GlobalsPINVOKE.OdGeLinearEnt2d_overlap__SWIG_1(swigCPtr, OdGeLinearEnt2d.getCPtr(line), out p_overlap);
123 return ret;
124 } finally {
125MemoryTransaction mTrans_overlap = MemoryManager.GetMemoryManager().GetCurrentTransaction();
126 if(mTrans_overlap != null)
127 mTrans_overlap.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeLinearEnt2d>(typeof(OdGeLinearEnt2d), p_overlap, true));
128 overlap = Teigha.Core.Helpers.odCreateObjectInternal<OdGeLinearEnt2d>(typeof(OdGeLinearEnt2d), p_overlap, mTrans_overlap == null);
129 /*OUT_PARAM_OBJ POST*/
130 }
131 }
132
138
144
150
156
162
168
173
179
185
190
196
201 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
202
208
209}
210
211}
static global::System.Exception Retrieve()
static bool OdGeLinearEnt2d_isPerpendicularTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLinearEnt2d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLinearEnt2d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGeLinearEnt2d_getLine(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeLinearEnt2d_overlap__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out IntPtr jarg3)
static global::System.IntPtr OdGeLinearEnt2d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeLinearEnt2d_isParallelTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeLinearEnt2d_isColinearTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeLinearEnt2d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeLinearEnt2d_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeLinearEnt2d_overlap__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdGeLinearEnt2d_getPerpLine(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeLinearEnt2d_intersectWith__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLinearEnt2d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeLinearEnt2d_isParallelTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeLinearEnt2d_intersectWith__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static bool OdGeLinearEnt2d_isPerpendicularTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeLinearEnt2d_direction(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeLinearEnt2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeLinearEnt2d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeLinearEnt2d_isColinearTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeLinearEnt2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeLinearEnt2d_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr OdGeLinearEnt2d_pointOnLine(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeLine2d obj)
Definition OdGeLine2d.cs:25
Teigha.Core.OdGeVector2d vb_direction()
bool intersectWith(OdGeLinearEnt2d line, OdGePoint2d intPnt, OdGeTol tol)
bool isColinearTo(OdGeLinearEnt2d line, OdGeTol tol)
new OdGeLinearEnt2d translateBy(OdGeVector2d translateVec)
new OdGeLinearEnt2d mirror(OdGeLine2d line)
bool overlap(OdGeLinearEnt2d line, out OdGeLinearEnt2d overlap, OdGeTol tol)
bool isPerpendicularTo(OdGeLinearEnt2d line)
bool intersectWith(OdGeLinearEnt2d line, OdGePoint2d intPnt)
new OdGeLinearEnt2d copy()
new OdGeLinearEnt2d transformBy(OdGeMatrix2d xfm)
new OdGeLinearEnt2d rotateBy(double angle)
OdGeLinearEnt2d Assign(OdGeLinearEnt2d line)
bool isParallelTo(OdGeLinearEnt2d line)
bool isPerpendicularTo(OdGeLinearEnt2d line, OdGeTol tol)
bool overlap(OdGeLinearEnt2d line, out OdGeLinearEnt2d overlap)
Teigha.Core.OdGe.EntityId vb_type()
new OdGeLinearEnt2d scaleBy(double scaleFactor)
void getPerpLine(OdGePoint2d point, OdGeLine2d perpLine)
new OdGeLinearEnt2d rotateBy(double angle, OdGePoint2d basePoint)
static HandleRef getCPtr(OdGeLinearEnt2d obj)
new OdGeLinearEnt2d scaleBy(double scaleFactor, OdGePoint2d basePoint)
bool isParallelTo(OdGeLinearEnt2d line, OdGeTol tol)
void getLine(OdGeLine2d line)
OdGeLinearEnt2d(IntPtr cPtr, bool cMemoryOwn)
override void Dispose(bool disposing)
bool isColinearTo(OdGeLinearEnt2d line)
static HandleRef getCPtr(OdGeMatrix2d obj)
static HandleRef getCPtr(OdGePoint2d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector2d obj)