Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeUvBox.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 OdGeUvBox : 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 OdGeUvBox(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(OdGeUvBox obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGeUvBox() {
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
52 set {
55 }
56 get {
57 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeUvBox_intervals_get(swigCPtr);
58 OdGeInterval ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeInterval(cPtr, false);
60 return ret;
61 }
62 }
63
64 public OdGeUvBox() : this(GlobalsPINVOKE.new_OdGeUvBox__SWIG_0(), true) {
66 }
67
68 public OdGeUvBox(OdGeInterval iIntervalU, OdGeInterval iIntervalV) : this(GlobalsPINVOKE.new_OdGeUvBox__SWIG_1(OdGeInterval.getCPtr(iIntervalU), OdGeInterval.getCPtr(iIntervalV)), true) {
70 }
71
72 public OdGeInterval u() {
75 return ret;
76 }
77
78 public OdGeInterval v() {
81 return ret;
82 }
83
84 public OdGeInterval GetItem(int idx) {
87 return ret;
88 }
89
90 public OdGeUvBox set() {
91 OdGeUvBox ret = new OdGeUvBox(GlobalsPINVOKE.OdGeUvBox_set__SWIG_0(swigCPtr), false);
93 return ret;
94 }
95
96 public OdGeUvBox set(OdGeInterval iIntervalU, OdGeInterval iIntervalV) {
97 OdGeUvBox ret = new OdGeUvBox(GlobalsPINVOKE.OdGeUvBox_set__SWIG_1(swigCPtr, OdGeInterval.getCPtr(iIntervalU), OdGeInterval.getCPtr(iIntervalV)), false);
99 return ret;
100 }
101
102 public OdGeUvBox set(OdGePoint2d iLowerBound, OdGePoint2d iUpperBound) {
103 OdGeUvBox ret = new OdGeUvBox(GlobalsPINVOKE.OdGeUvBox_set__SWIG_2(swigCPtr, OdGePoint2d.getCPtr(iLowerBound), OdGePoint2d.getCPtr(iUpperBound)), false);
105 return ret;
106 }
107
108 public bool contains(double uparam, double vparam) {
109 bool ret = GlobalsPINVOKE.OdGeUvBox_contains__SWIG_0(swigCPtr, uparam, vparam);
111 return ret;
112 }
113
114 public bool contains(OdGePoint2d uvpoint) {
115 bool ret = GlobalsPINVOKE.OdGeUvBox_contains__SWIG_1(swigCPtr, OdGePoint2d.getCPtr(uvpoint));
117 return ret;
118 }
119
120 public bool isBounded() {
121 bool ret = GlobalsPINVOKE.OdGeUvBox_isBounded(swigCPtr);
123 return ret;
124 }
125
126 public bool finiteIntersectWith(OdGeUvBox range, OdGeUvBox result) {
129 return ret;
130 }
131
135 return ret;
136 }
137
141 return ret;
142 }
143
144 public bool isEqualTo(OdGeUvBox uvbox) {
145 bool ret = GlobalsPINVOKE.OdGeUvBox_isEqualTo(swigCPtr, OdGeUvBox.getCPtr(uvbox));
147 return ret;
148 }
149
150 public OdGePoint2d eval(double ratioU, double ratioV) {
151 OdGePoint2d ret = new OdGePoint2d(GlobalsPINVOKE.OdGeUvBox_eval(swigCPtr, ratioU, ratioV), true);
153 return ret;
154 }
155
157 OdGePoint2d ret = new OdGePoint2d(GlobalsPINVOKE.OdGeUvBox_clamp(swigCPtr, OdGePoint2d.getCPtr(point)), true);
159 return ret;
160 }
161
162}
163
164}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeUvBox_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeUvBox_lowerBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeUvBox_contains__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeUvBox_isBounded(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeUvBox_v__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeUvBox(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeUvBox_intervals_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeUvBox_finiteIntersectWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeUvBox_u__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeUvBox_GetItem__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeUvBox_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeUvBox_contains__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static void OdGeUvBox_intervals_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeUvBox_isEqualTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeUvBox_eval(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static global::System.IntPtr OdGeUvBox_clamp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeUvBox_upperBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeUvBox_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static HandleRef getCPtr(OdGeInterval obj)
Definition: OdGeInterval.cs:26
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGeUvBox obj)
Definition: OdGeUvBox.cs:26
bool finiteIntersectWith(OdGeUvBox range, OdGeUvBox result)
Definition: OdGeUvBox.cs:126
OdGeInterval v()
Definition: OdGeUvBox.cs:78
OdGeInterval u()
Definition: OdGeUvBox.cs:72
OdGePoint2d clamp(OdGePoint2d point)
Definition: OdGeUvBox.cs:156
OdGePoint2d lowerBound()
Definition: OdGeUvBox.cs:132
OdGeInterval GetItem(int idx)
Definition: OdGeUvBox.cs:84
OdGePoint2d upperBound()
Definition: OdGeUvBox.cs:138
OdGeUvBox(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeUvBox.cs:21
OdGeInterval intervals
Definition: OdGeUvBox.cs:51
bool contains(OdGePoint2d uvpoint)
Definition: OdGeUvBox.cs:114
virtual void Dispose(bool disposing)
Definition: OdGeUvBox.cs:39
bool isEqualTo(OdGeUvBox uvbox)
Definition: OdGeUvBox.cs:144
OdGeUvBox(OdGeInterval iIntervalU, OdGeInterval iIntervalV)
Definition: OdGeUvBox.cs:68
bool contains(double uparam, double vparam)
Definition: OdGeUvBox.cs:108
OdGePoint2d eval(double ratioU, double ratioV)
Definition: OdGeUvBox.cs:150