Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGePosition2d.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 OdGePosition2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGePosition2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGePosition2d 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 OdGePosition2d copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGePosition2d_copy(swigCPtr);
44 OdGePosition2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePosition2d(cPtr, false);
46 return ret;
47 }
48
54
60
61 public new OdGePosition2d rotateBy(double angle, OdGePoint2d basePoint) {
64 return ret;
65 }
66
72
78
79 public new OdGePosition2d scaleBy(double scaleFactor, OdGePoint2d basePoint) {
80 OdGePosition2d ret = new OdGePosition2d(GlobalsPINVOKE.OdGePosition2d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint2d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGePosition2d scaleBy(double scaleFactor) {
86 OdGePosition2d ret = new OdGePosition2d(GlobalsPINVOKE.OdGePosition2d_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGePosition2d() : this(GlobalsPINVOKE.new_OdGePosition2d__SWIG_0(), true) {
93 }
94
95 public OdGePosition2d(OdGePoint2d point) : this(GlobalsPINVOKE.new_OdGePosition2d__SWIG_1(OdGePoint2d.getCPtr(point)), true) {
97 }
98
99 public OdGePosition2d(double x, double y) : this(GlobalsPINVOKE.new_OdGePosition2d__SWIG_2(x, y), true) {
101 }
102
103 public OdGePosition2d(OdGePosition2d source) : this(GlobalsPINVOKE.new_OdGePosition2d__SWIG_3(OdGePosition2d.getCPtr(source)), true) {
105 }
106
112
113 public OdGePosition2d set(double x, double y) {
116 return ret;
117 }
118
124
129 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
130
131}
132
133}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGePosition2d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePosition2d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePosition2d_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePosition2d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGePosition2d_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static global::System.IntPtr OdGePosition2d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePosition2d_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void delete_OdGePosition2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePosition2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePosition2d_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePosition2d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGePosition2d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGeLine2d obj)
Definition OdGeLine2d.cs:25
static HandleRef getCPtr(OdGeMatrix2d obj)
static HandleRef getCPtr(OdGePoint2d obj)
new OdGePosition2d rotateBy(double angle, OdGePoint2d basePoint)
OdGePosition2d(OdGePoint2d point)
OdGePosition2d(IntPtr cPtr, bool cMemoryOwn)
Teigha.Core.OdGe.EntityId vb_type()
new OdGePosition2d copy()
static HandleRef getCPtr(OdGePosition2d obj)
new OdGePosition2d scaleBy(double scaleFactor)
new OdGePosition2d translateBy(OdGeVector2d translateVec)
new OdGePosition2d transformBy(OdGeMatrix2d xfm)
OdGePosition2d Assign(OdGePosition2d pos)
new OdGePosition2d mirror(OdGeLine2d line)
OdGePosition2d(OdGePosition2d source)
override void Dispose(bool disposing)
OdGePosition2d(double x, double y)
new OdGePosition2d scaleBy(double scaleFactor, OdGePoint2d basePoint)
new OdGePosition2d rotateBy(double angle)
static HandleRef getCPtr(OdGeVector2d obj)