Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeEntity2d.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 OdGeEntity2d : 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 OdGeEntity2d(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(OdGeEntity2d 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 bool isKindOf(OdGe.EntityId entType) {
52 bool ret = GlobalsPINVOKE.OdGeEntity2d_isKindOf(swigCPtr, (int)entType);
54 return ret;
55 }
56
62
63 public OdGeEntity2d copy() {
64 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeEntity2d_copy(swigCPtr);
65 OdGeEntity2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeEntity2d(cPtr, false);
67 return ret;
68 }
69
75
76 public bool IsEqual(OdGeEntity2d entity) {
77 bool ret = GlobalsPINVOKE.OdGeEntity2d_IsEqual(swigCPtr, OdGeEntity2d.getCPtr(entity));
79 return ret;
80 }
81
87
93
99
105
111
112 public OdGeEntity2d rotateBy(double angle, OdGePoint2d basePoint) {
115 return this;
116}
117
123
129
130 public OdGeEntity2d scaleBy(double scaleFactor, OdGePoint2d basePoint) {
131 OdGeEntity2d ret = new OdGeEntity2d(GlobalsPINVOKE.OdGeEntity2d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint2d.getCPtr(basePoint)), false);
133 return ret;
134 }
135
136 public OdGeEntity2d scaleBy(double scaleFactor) {
137 OdGeEntity2d ret = new OdGeEntity2d(GlobalsPINVOKE.OdGeEntity2d_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
139 return ret;
140 }
141
142 public bool isOn(OdGePoint2d point, OdGeTol tol) {
145 return ret;
146 }
147
148 public bool isOn(OdGePoint2d point) {
149 bool ret = GlobalsPINVOKE.OdGeEntity2d_isOn__SWIG_1(swigCPtr, OdGePoint2d.getCPtr(point));
151 return ret;
152 }
153
158 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
159
160}
161
162}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeEntity2d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeEntity2d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeEntity2d_isOn__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGeEntity2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeEntity2d_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeEntity2d_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeEntity2d_isOn__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeEntity2d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeEntity2d_isEqualTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeEntity2d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeEntity2d_isEqualTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeEntity2d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeEntity2d_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeEntity2d_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeEntity2d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeEntity2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeEntity2d_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static bool OdGeEntity2d_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
OdGeEntity2d(IntPtr cPtr, bool cMemoryOwn)
bool isKindOf(OdGe.EntityId entType)
bool isOn(OdGePoint2d point, OdGeTol tol)
bool isOn(OdGePoint2d point)
OdGeEntity2d scaleBy(double scaleFactor)
bool isEqualTo(OdGeEntity2d other, OdGeTol tol)
OdGeEntity2d Assign(OdGeEntity2d entity)
virtual void Dispose(bool disposing)
bool IsNotEqual(OdGeEntity2d entity)
OdGeEntity2d scaleBy(double scaleFactor, OdGePoint2d basePoint)
Teigha.Core.OdGe.EntityId vb_type()
OdGeEntity2d rotateBy(double angle)
bool isEqualTo(OdGeEntity2d other)
OdGeEntity2d rotateBy(double angle, OdGePoint2d basePoint)
static HandleRef getCPtr(OdGeEntity2d obj)
OdGeEntity2d transformBy(OdGeMatrix2d xfm)
bool IsEqual(OdGeEntity2d entity)
OdGeEntity2d translateBy(OdGeVector2d translateVec)
OdGeEntity2d mirror(OdGeLine2d line)
static HandleRef getCPtr(OdGeLine2d obj)
Definition OdGeLine2d.cs:25
static HandleRef getCPtr(OdGeMatrix2d obj)
static HandleRef getCPtr(OdGePoint2d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector2d obj)