Extended .NET SDK Documentation 2024 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
78 public OdGeScale3d Mul(OdGeScale3d scaleVec) {
81 return ret;
82 }
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
90 public OdGeScale3d setToProduct(OdGeScale3d scaleVec1, OdGeScale3d scaleVec2) {
93 return ret;
94 }
95
96 public OdGeScale3d setToProduct(OdGeScale3d scaleVec, double factor) {
99 return ret;
100 }
101
105 return ret;
106 }
107
109 OdGeScale3d ret = new OdGeScale3d(GlobalsPINVOKE.OdGeScale3d_invert(swigCPtr), false);
111 return ret;
112 }
113
114 public bool isProportional(OdGeTol tol) {
117 return ret;
118 }
119
120 public bool isProportional() {
123 return ret;
124 }
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
162 public void getMatrix(OdGeMatrix3d xfm) {
165 }
166
170 return ret;
171 }
172
173 public OdGeScale3d removeScale(OdGeMatrix3d xfm, bool negateX) {
176 return ret;
177 }
178
182 return ret;
183 }
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)
Definition: OdGeMatrix3d.cs:26
OdGeScale3d Mul(double factor)
Definition: OdGeScale3d.cs:84
double GetItem(uint i)
Definition: OdGeScale3d.cs:150
bool IsEqual(OdGeScale3d scaleVec)
Definition: OdGeScale3d.cs:126
override string ToString()
Definition: OdGeScale3d.cs:51
OdGeScale3d Mul(OdGeScale3d scaleVec)
Definition: OdGeScale3d.cs:78
OdGeScale3d(double xFactor, double yFactor, double zFactor)
Definition: OdGeScale3d.cs:65
OdGeScale3d removeScale(OdGeMatrix3d xfm, bool negateX)
Definition: OdGeScale3d.cs:173
bool isEqualTo(OdGeScale3d scaleVec, OdGeTol tol)
Definition: OdGeScale3d.cs:138
OdGeScale3d setToProduct(OdGeScale3d scaleVec, double factor)
Definition: OdGeScale3d.cs:96
OdGeScale3d(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeScale3d.cs:21
void getMatrix(OdGeMatrix3d xfm)
Definition: OdGeScale3d.cs:162
bool IsNotEqual(OdGeScale3d scaleVec)
Definition: OdGeScale3d.cs:132
OdGeScale3d invert()
Definition: OdGeScale3d.cs:108
OdGeScale3d(double factor)
Definition: OdGeScale3d.cs:61
OdGeScale3d extractScale(OdGeMatrix3d xfm)
Definition: OdGeScale3d.cs:167
OdGeScale3d inverse()
Definition: OdGeScale3d.cs:102
OdGeScale3d setToProduct(OdGeScale3d scaleVec1, OdGeScale3d scaleVec2)
Definition: OdGeScale3d.cs:90
virtual void Dispose(bool disposing)
Definition: OdGeScale3d.cs:39
bool isProportional(OdGeTol tol)
Definition: OdGeScale3d.cs:114
static HandleRef getCPtr(OdGeScale3d obj)
Definition: OdGeScale3d.cs:26
bool isEqualTo(OdGeScale3d scaleVec)
Definition: OdGeScale3d.cs:144
OdGeScale3d removeScale(OdGeMatrix3d xfm)
Definition: OdGeScale3d.cs:179
static OdGeScale3d kIdentity
Definition: OdGeScale3d.cs:69
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26