Extended .NET SDK Documentation 2024 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
59 public OdGeScale2d Mul(OdGeScale2d scaleVec) {
62 return ret;
63 }
64
65 public OdGeScale2d setToProduct(OdGeScale2d scaleVec, double factor) {
68 return ret;
69 }
70
71 public OdGeScale2d setToProduct(OdGeScale2d scaleVec1, OdGeScale2d scaleVec2) {
74 return ret;
75 }
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
84 OdGeScale2d ret = new OdGeScale2d(GlobalsPINVOKE.OdGeScale2d_invert(swigCPtr), false);
86 return ret;
87 }
88
89 public bool isProportional(OdGeTol tol) {
92 return ret;
93 }
94
95 public bool isProportional() {
98 return ret;
99 }
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
131 public void getMatrix(OdGeMatrix2d xfm) {
134 }
135
139 return ret;
140 }
141
145 return ret;
146 }
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)
Definition: OdGeMatrix2d.cs:26
OdGeScale2d(double factor)
Definition: OdGeScale2d.cs:51
static HandleRef getCPtr(OdGeScale2d obj)
Definition: OdGeScale2d.cs:26
OdGeScale2d setToProduct(OdGeScale2d scaleVec, double factor)
Definition: OdGeScale2d.cs:65
OdGeScale2d Mul(double factor)
Definition: OdGeScale2d.cs:77
void getMatrix(OdGeMatrix2d xfm)
Definition: OdGeScale2d.cs:131
double GetItem(uint i)
Definition: OdGeScale2d.cs:125
OdGeScale2d invert()
Definition: OdGeScale2d.cs:83
bool IsEqual(OdGeScale2d scaleVec)
Definition: OdGeScale2d.cs:101
bool isProportional(OdGeTol tol)
Definition: OdGeScale2d.cs:89
bool IsNotEqual(OdGeScale2d scaleVec)
Definition: OdGeScale2d.cs:107
bool isEqualTo(OdGeScale2d scaleVec)
Definition: OdGeScale2d.cs:119
OdGeScale2d(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeScale2d.cs:21
virtual void Dispose(bool disposing)
Definition: OdGeScale2d.cs:39
OdGeScale2d setToProduct(OdGeScale2d scaleVec1, OdGeScale2d scaleVec2)
Definition: OdGeScale2d.cs:71
OdGeScale2d Mul(OdGeScale2d scaleVec)
Definition: OdGeScale2d.cs:59
bool isEqualTo(OdGeScale2d scaleVec, OdGeTol tol)
Definition: OdGeScale2d.cs:113
OdGeScale2d(double xFactor, double yFactor)
Definition: OdGeScale2d.cs:55
OdGeScale2d extractScale(OdGeMatrix2d xfm)
Definition: OdGeScale2d.cs:136
OdGeScale2d removeScale(OdGeMatrix2d xfm)
Definition: OdGeScale2d.cs:142
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26