Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeInterval.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 OdGeInterval : 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 OdGeInterval(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(OdGeInterval obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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 OdGeInterval(double tol) : this(GlobalsPINVOKE.new_OdGeInterval__SWIG_0(tol), true) {
53 }
54
55 public OdGeInterval() : this(GlobalsPINVOKE.new_OdGeInterval__SWIG_1(), true) {
57 }
58
59 public OdGeInterval(double lower, double upper, double tol) : this(GlobalsPINVOKE.new_OdGeInterval__SWIG_2(lower, upper, tol), true) {
61 }
62
63 public OdGeInterval(double lower, double upper) : this(GlobalsPINVOKE.new_OdGeInterval__SWIG_3(lower, upper), true) {
65 }
66
67 public OdGeInterval(bool boundedBelow, double bound, double tol) : this(GlobalsPINVOKE.new_OdGeInterval__SWIG_4(boundedBelow, bound, tol), true) {
69 }
70
71 public OdGeInterval(bool boundedBelow, double bound) : this(GlobalsPINVOKE.new_OdGeInterval__SWIG_5(boundedBelow, bound), true) {
73 }
74
75 public double lowerBound() {
76 double ret = GlobalsPINVOKE.OdGeInterval_lowerBound(swigCPtr);
78 return ret;
79 }
80
81 public double upperBound() {
82 double ret = GlobalsPINVOKE.OdGeInterval_upperBound(swigCPtr);
84 return ret;
85 }
86
87 public double middle() {
88 double ret = GlobalsPINVOKE.OdGeInterval_middle(swigCPtr);
90 return ret;
91 }
92
93 public double element() {
94 double ret = GlobalsPINVOKE.OdGeInterval_element(swigCPtr);
96 return ret;
97 }
98
99 public void getBounds(out double lower, out double upper) {
100 GlobalsPINVOKE.OdGeInterval_getBounds(swigCPtr, out lower, out upper);
102 }
103
104 public double getEnd(int index) {
105 double ret = GlobalsPINVOKE.OdGeInterval_getEnd(swigCPtr, index);
107 return ret;
108 }
109
110 public double length() {
111 double ret = GlobalsPINVOKE.OdGeInterval_length(swigCPtr);
113 return ret;
114 }
115
116 public double tolerance() {
117 double ret = GlobalsPINVOKE.OdGeInterval_tolerance(swigCPtr);
119 return ret;
120 }
121
122 public double eval(double ratio) {
123 double ret = GlobalsPINVOKE.OdGeInterval_eval(swigCPtr, ratio);
125 return ret;
126 }
127
128 public OdGeInterval set(double lower, double upper) {
129 OdGeInterval ret = new OdGeInterval(GlobalsPINVOKE.OdGeInterval_set__SWIG_0(swigCPtr, lower, upper), false);
131 return ret;
132 }
133
134 public OdGeInterval set(bool boundedBelow, double bound) {
135 OdGeInterval ret = new OdGeInterval(GlobalsPINVOKE.OdGeInterval_set__SWIG_1(swigCPtr, boundedBelow, bound), false);
137 return ret;
138 }
139
140 public OdGeInterval set() {
143 return ret;
144 }
145
146 public OdGeInterval setUpper(double upper) {
147 OdGeInterval ret = new OdGeInterval(GlobalsPINVOKE.OdGeInterval_setUpper(swigCPtr, upper), false);
149 return ret;
150 }
151
152 public OdGeInterval setLower(double lower) {
153 OdGeInterval ret = new OdGeInterval(GlobalsPINVOKE.OdGeInterval_setLower(swigCPtr, lower), false);
155 return ret;
156 }
157
158 public OdGeInterval setTolerance(double tol) {
159 OdGeInterval ret = new OdGeInterval(GlobalsPINVOKE.OdGeInterval_setTolerance(swigCPtr, tol), false);
161 return ret;
162 }
163
164 public void getMerge(OdGeInterval otherInterval, OdGeInterval result) {
167 }
168
169 public int subtract(OdGeInterval otherInterval, OdGeInterval lInterval, OdGeInterval rInterval) {
170 int ret = GlobalsPINVOKE.OdGeInterval_subtract(swigCPtr, OdGeInterval.getCPtr(otherInterval), OdGeInterval.getCPtr(lInterval), OdGeInterval.getCPtr(rInterval));
172 return ret;
173 }
174
175 public bool intersectWith(OdGeInterval otherInterval, OdGeInterval result) {
176 bool ret = GlobalsPINVOKE.OdGeInterval_intersectWith(swigCPtr, OdGeInterval.getCPtr(otherInterval), OdGeInterval.getCPtr(result));
178 return ret;
179 }
180
181 public bool finiteIntersectWith(OdGeInterval range, OdGeInterval result) {
184 return ret;
185 }
186
187 public bool isBounded() {
188 bool ret = GlobalsPINVOKE.OdGeInterval_isBounded(swigCPtr);
190 return ret;
191 }
192
193 public bool isBoundedAbove() {
194 bool ret = GlobalsPINVOKE.OdGeInterval_isBoundedAbove(swigCPtr);
196 return ret;
197 }
198
199 public bool isBoundedBelow() {
200 bool ret = GlobalsPINVOKE.OdGeInterval_isBoundedBelow(swigCPtr);
202 return ret;
203 }
204
205 public bool isUnBounded() {
206 bool ret = GlobalsPINVOKE.OdGeInterval_isUnBounded(swigCPtr);
208 return ret;
209 }
210
211 public bool isSingleton() {
212 bool ret = GlobalsPINVOKE.OdGeInterval_isSingleton(swigCPtr);
214 return ret;
215 }
216
217 public bool isDisjoint(OdGeInterval otherInterval) {
218 bool ret = GlobalsPINVOKE.OdGeInterval_isDisjoint(swigCPtr, OdGeInterval.getCPtr(otherInterval));
220 return ret;
221 }
222
223 public bool contains(OdGeInterval otherInterval) {
224 bool ret = GlobalsPINVOKE.OdGeInterval_contains__SWIG_0(swigCPtr, OdGeInterval.getCPtr(otherInterval));
226 return ret;
227 }
228
229 public bool contains(double value) {
232 return ret;
233 }
234
235 public double clamp(double value) {
236 double ret = GlobalsPINVOKE.OdGeInterval_clamp(swigCPtr, value);
238 return ret;
239 }
240
241 public bool isContinuousAtUpper(OdGeInterval otherInterval) {
242 bool ret = GlobalsPINVOKE.OdGeInterval_isContinuousAtUpper(swigCPtr, OdGeInterval.getCPtr(otherInterval));
244 return ret;
245 }
246
247 public bool isOverlapAtUpper(OdGeInterval otherInterval, OdGeInterval overlap) {
248 bool ret = GlobalsPINVOKE.OdGeInterval_isOverlapAtUpper(swigCPtr, OdGeInterval.getCPtr(otherInterval), OdGeInterval.getCPtr(overlap));
250 return ret;
251 }
252
253 public bool IsEqual(OdGeInterval otherInterval) {
254 bool ret = GlobalsPINVOKE.OdGeInterval_IsEqual(swigCPtr, OdGeInterval.getCPtr(otherInterval));
256 return ret;
257 }
258
259 public bool IsNotEqual(OdGeInterval otherInterval) {
260 bool ret = GlobalsPINVOKE.OdGeInterval_IsNotEqual(swigCPtr, OdGeInterval.getCPtr(otherInterval));
262 return ret;
263 }
264
265 public bool isEqualAtUpper(OdGeInterval otherInterval) {
266 bool ret = GlobalsPINVOKE.OdGeInterval_isEqualAtUpper__SWIG_0(swigCPtr, OdGeInterval.getCPtr(otherInterval));
268 return ret;
269 }
270
271 public bool isEqualAtUpper(double value) {
274 return ret;
275 }
276
277 public bool isEqualAtLower(OdGeInterval otherInterval) {
278 bool ret = GlobalsPINVOKE.OdGeInterval_isEqualAtLower__SWIG_0(swigCPtr, OdGeInterval.getCPtr(otherInterval));
280 return ret;
281 }
282
283 public bool isEqualAtLower(double value) {
286 return ret;
287 }
288
289 public bool isPeriodicallyOn(double period, out double value) {
290 bool ret = GlobalsPINVOKE.OdGeInterval_isPeriodicallyOn(swigCPtr, period, out value);
292 return ret;
293 }
294
295}
296
297}
static global::System.Exception Retrieve()
static bool OdGeInterval_isSingleton(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_isOverlapAtUpper(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static double OdGeInterval_clamp(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeInterval_contains__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeInterval_isBoundedBelow(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_isBounded(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_isUnBounded(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeInterval_isEqualAtUpper__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeInterval_isEqualAtUpper__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeInterval_isEqualAtLower__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeInterval_intersectWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeInterval_setUpper(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static int OdGeInterval_subtract(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static double OdGeInterval_upperBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeInterval_lowerBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_isBoundedAbove(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_finiteIntersectWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeInterval_getBounds(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3)
static double OdGeInterval_eval(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGeInterval_length(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_contains__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeInterval_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, double jarg3)
static global::System.IntPtr OdGeInterval_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static void delete_OdGeInterval(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_isPeriodicallyOn(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, out double jarg3)
static double OdGeInterval_element(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeInterval_isContinuousAtUpper(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeInterval_tolerance(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeInterval_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeInterval_middle(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeInterval_setTolerance(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeInterval_isEqualAtLower__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeInterval_setLower(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeInterval_isDisjoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeInterval_getEnd(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeInterval_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeInterval_getMerge(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
bool IsEqual(OdGeInterval otherInterval)
int subtract(OdGeInterval otherInterval, OdGeInterval lInterval, OdGeInterval rInterval)
OdGeInterval(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeInterval.cs:21
OdGeInterval(double lower, double upper, double tol)
Definition: OdGeInterval.cs:59
bool contains(OdGeInterval otherInterval)
OdGeInterval setUpper(double upper)
bool isEqualAtLower(OdGeInterval otherInterval)
bool isEqualAtUpper(OdGeInterval otherInterval)
double getEnd(int index)
bool contains(double value)
bool isDisjoint(OdGeInterval otherInterval)
static HandleRef getCPtr(OdGeInterval obj)
Definition: OdGeInterval.cs:26
OdGeInterval setLower(double lower)
bool isContinuousAtUpper(OdGeInterval otherInterval)
virtual void Dispose(bool disposing)
Definition: OdGeInterval.cs:39
OdGeInterval(bool boundedBelow, double bound)
Definition: OdGeInterval.cs:71
double eval(double ratio)
double clamp(double value)
bool isPeriodicallyOn(double period, out double value)
OdGeInterval(double lower, double upper)
Definition: OdGeInterval.cs:63
OdGeInterval(bool boundedBelow, double bound, double tol)
Definition: OdGeInterval.cs:67
void getBounds(out double lower, out double upper)
Definition: OdGeInterval.cs:99
OdGeInterval setTolerance(double tol)
bool isOverlapAtUpper(OdGeInterval otherInterval, OdGeInterval overlap)
bool isEqualAtLower(double value)
bool isEqualAtUpper(double value)
void getMerge(OdGeInterval otherInterval, OdGeInterval result)
bool intersectWith(OdGeInterval otherInterval, OdGeInterval result)
bool finiteIntersectWith(OdGeInterval range, OdGeInterval result)
bool IsNotEqual(OdGeInterval otherInterval)