Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeScale2d.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 OdGeScale2d : 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 OdGeScale2d(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(OdGeScale2d obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGeScale2d() {
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 OdGeScale2d(double factor) : this(GlobalsPINVOKE.new_OdGeScale2d__SWIG_0(factor), true) {
53 }
54
55 public OdGeScale2d(double xFactor, double yFactor) : this(GlobalsPINVOKE.new_OdGeScale2d__SWIG_1(xFactor, yFactor), true) {
57 }
58
64
65 public OdGeScale2d setToProduct(OdGeScale2d scaleVec, double factor) {
68 return ret;
69 }
70
76
77 public OdGeScale2d Mul(double factor) {
78 OdGeScale2d ret = new OdGeScale2d(GlobalsPINVOKE.OdGeScale2d_Mul__SWIG_1(swigCPtr, factor), false);
80 return ret;
81 }
82
88
94
100
101 public bool IsEqual(OdGeScale2d scaleVec) {
102 bool ret = GlobalsPINVOKE.OdGeScale2d_IsEqual(swigCPtr, OdGeScale2d.getCPtr(scaleVec));
104 return ret;
105 }
106
107 public bool IsNotEqual(OdGeScale2d scaleVec) {
108 bool ret = GlobalsPINVOKE.OdGeScale2d_IsNotEqual(swigCPtr, OdGeScale2d.getCPtr(scaleVec));
110 return ret;
111 }
112
113 public bool isEqualTo(OdGeScale2d scaleVec, OdGeTol tol) {
116 return ret;
117 }
118
119 public bool isEqualTo(OdGeScale2d scaleVec) {
120 bool ret = GlobalsPINVOKE.OdGeScale2d_isEqualTo__SWIG_1(swigCPtr, OdGeScale2d.getCPtr(scaleVec));
122 return ret;
123 }
124
125 public double GetItem(uint i) {
126 double ret = GlobalsPINVOKE.OdGeScale2d_GetItem(swigCPtr, i);
128 return ret;
129 }
130
135
141
147
148 public double sx {
149 set {
152 }
153 get {
154 double ret = GlobalsPINVOKE.OdGeScale2d_sx_get(swigCPtr);
156 return ret;
157 }
158 }
159
160 public double sy {
161 set {
164 }
165 get {
166 double ret = GlobalsPINVOKE.OdGeScale2d_sy_get(swigCPtr);
168 return ret;
169 }
170 }
171
172}
173
174}
static global::System.Exception Retrieve()
static bool OdGeScale2d_isProportional__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeScale2d_sy_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeScale2d_sy_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeScale2d_Mul__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGeScale2d_GetItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static global::System.IntPtr OdGeScale2d_invert(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeScale2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeScale2d_isEqualTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeScale2d_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale2d_extractScale(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale2d_Mul__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale2d_setToProduct__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeScale2d_sx_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeScale2d_isProportional__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale2d_removeScale(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeScale2d_getMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale2d_setToProduct__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static double OdGeScale2d_sx_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeScale2d_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeScale2d_isEqualTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static HandleRef getCPtr(OdGeMatrix2d obj)
OdGeScale2d(double factor)
static HandleRef getCPtr(OdGeScale2d obj)
OdGeScale2d setToProduct(OdGeScale2d scaleVec, double factor)
OdGeScale2d Mul(double factor)
void getMatrix(OdGeMatrix2d xfm)
double GetItem(uint i)
bool IsEqual(OdGeScale2d scaleVec)
bool isProportional(OdGeTol tol)
bool IsNotEqual(OdGeScale2d scaleVec)
bool isEqualTo(OdGeScale2d scaleVec)
OdGeScale2d(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
OdGeScale2d setToProduct(OdGeScale2d scaleVec1, OdGeScale2d scaleVec2)
OdGeScale2d Mul(OdGeScale2d scaleVec)
bool isEqualTo(OdGeScale2d scaleVec, OdGeTol tol)
OdGeScale2d(double xFactor, double yFactor)
OdGeScale2d extractScale(OdGeMatrix2d xfm)
OdGeScale2d removeScale(OdGeMatrix2d xfm)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26