Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeScale3d.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 OdGeScale3d : 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 OdGeScale3d(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(OdGeScale3d obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGeScale3d() {
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 override string ToString()
52 {
53 if (swigCPtr.Handle == IntPtr.Zero) return "Empty";
54 return string.Format("({0},{1},{2})", sx, sy, sz);
55 }
56
57 public OdGeScale3d() : this(GlobalsPINVOKE.new_OdGeScale3d__SWIG_0(), true) {
59 }
60
61 public OdGeScale3d(double factor) : this(GlobalsPINVOKE.new_OdGeScale3d__SWIG_1(factor), true) {
63 }
64
65 public OdGeScale3d(double xFactor, double yFactor, double zFactor) : this(GlobalsPINVOKE.new_OdGeScale3d__SWIG_2(xFactor, yFactor, zFactor), true) {
67 }
68
69 public static OdGeScale3d kIdentity {
70 get {
71 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeScale3d_kIdentity_get();
72 OdGeScale3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeScale3d(cPtr, false);
74 return ret;
75 }
76 }
77
83
84 public OdGeScale3d Mul(double factor) {
85 OdGeScale3d ret = new OdGeScale3d(GlobalsPINVOKE.OdGeScale3d_Mul__SWIG_1(swigCPtr, factor), true);
87 return ret;
88 }
89
95
96 public OdGeScale3d setToProduct(OdGeScale3d scaleVec, double factor) {
99 return ret;
100 }
101
107
113
119
125
126 public bool IsEqual(OdGeScale3d scaleVec) {
127 bool ret = GlobalsPINVOKE.OdGeScale3d_IsEqual(swigCPtr, OdGeScale3d.getCPtr(scaleVec));
129 return ret;
130 }
131
132 public bool IsNotEqual(OdGeScale3d scaleVec) {
133 bool ret = GlobalsPINVOKE.OdGeScale3d_IsNotEqual(swigCPtr, OdGeScale3d.getCPtr(scaleVec));
135 return ret;
136 }
137
138 public bool isEqualTo(OdGeScale3d scaleVec, OdGeTol tol) {
141 return ret;
142 }
143
144 public bool isEqualTo(OdGeScale3d scaleVec) {
145 bool ret = GlobalsPINVOKE.OdGeScale3d_isEqualTo__SWIG_1(swigCPtr, OdGeScale3d.getCPtr(scaleVec));
147 return ret;
148 }
149
150 public double GetItem(uint i) {
151 double ret = GlobalsPINVOKE.OdGeScale3d_GetItem__SWIG_0(swigCPtr, i);
153 return ret;
154 }
155
156 public OdGeScale3d set(double xFactor, double yFactor, double zFactor) {
157 OdGeScale3d ret = new OdGeScale3d(GlobalsPINVOKE.OdGeScale3d_set(swigCPtr, xFactor, yFactor, zFactor), false);
159 return ret;
160 }
161
166
172
178
184
185 public bool isValid() {
186 bool ret = GlobalsPINVOKE.OdGeScale3d_isValid(swigCPtr);
188 return ret;
189 }
190
191 public double sx {
192 set {
195 }
196 get {
197 double ret = GlobalsPINVOKE.OdGeScale3d_sx_get(swigCPtr);
199 return ret;
200 }
201 }
202
203 public double sy {
204 set {
207 }
208 get {
209 double ret = GlobalsPINVOKE.OdGeScale3d_sy_get(swigCPtr);
211 return ret;
212 }
213 }
214
215 public double sz {
216 set {
219 }
220 get {
221 double ret = GlobalsPINVOKE.OdGeScale3d_sz_get(swigCPtr);
223 return ret;
224 }
225 }
226
227}
228
229}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeScale3d_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4)
static void delete_OdGeScale3d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeScale3d_removeScale__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static double OdGeScale3d_sz_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeScale3d_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeScale3d_GetItem__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static void OdGeScale3d_sz_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGeScale3d_sx_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeScale3d_Mul__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale3d_kIdentity_get()
static bool OdGeScale3d_isProportional__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeScale3d_isEqualTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale3d_setToProduct__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static bool OdGeScale3d_isValid(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeScale3d_Mul__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGeScale3d_sy_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeScale3d_inverse(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeScale3d_isProportional__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeScale3d_sx_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeScale3d_removeScale__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeScale3d_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeScale3d_setToProduct__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeScale3d_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 OdGeScale3d_invert(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeScale3d_extractScale(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeScale3d_sy_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeScale3d_getMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGeMatrix3d obj)
OdGeScale3d Mul(double factor)
double GetItem(uint i)
bool IsEqual(OdGeScale3d scaleVec)
override string ToString()
OdGeScale3d Mul(OdGeScale3d scaleVec)
OdGeScale3d(double xFactor, double yFactor, double zFactor)
OdGeScale3d removeScale(OdGeMatrix3d xfm, bool negateX)
bool isEqualTo(OdGeScale3d scaleVec, OdGeTol tol)
OdGeScale3d setToProduct(OdGeScale3d scaleVec, double factor)
OdGeScale3d(IntPtr cPtr, bool cMemoryOwn)
void getMatrix(OdGeMatrix3d xfm)
bool IsNotEqual(OdGeScale3d scaleVec)
OdGeScale3d(double factor)
OdGeScale3d extractScale(OdGeMatrix3d xfm)
OdGeScale3d setToProduct(OdGeScale3d scaleVec1, OdGeScale3d scaleVec2)
virtual void Dispose(bool disposing)
bool isProportional(OdGeTol tol)
static HandleRef getCPtr(OdGeScale3d obj)
bool isEqualTo(OdGeScale3d scaleVec)
OdGeScale3d removeScale(OdGeMatrix3d xfm)
static OdGeScale3d kIdentity
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26