14using System.Runtime.InteropServices;
17, System.Collections.Generic.IList<OdGePoint3d>
19 private Object locker =
new Object();
20 private HandleRef swigCPtr;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 swigCPtr =
new HandleRef(
this, cPtr);
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
29 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
38 global::System.GC.SuppressFinalize(
this);
41 protected virtual void Dispose(
bool disposing) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
48 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
56 throw new ArgumentNullException(
"c");
63 : this(
GlobalsPINVOKE.new_OdVectorOdGePoint3d__SWIG_0(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
65 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
74 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
82 public OdVectorOdGePoint3d(
int capacity) : this(
GlobalsPINVOKE.new_OdVectorOdGePoint3d__SWIG_2(capacity), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null) {
83 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
106 return getitem(index);
109 setitem(index,
value);
115 return (
int)capacity();
119 throw new ArgumentOutOfRangeException(
"Capacity");
120 reserve((uint)
value);
149 throw new ArgumentNullException(
"array");
151 throw new ArgumentOutOfRangeException(
"index",
"Value is less than zero");
153 throw new ArgumentOutOfRangeException(
"arrayIndex",
"Value is less than zero");
155 throw new ArgumentOutOfRangeException(
"count",
"Value is less than zero");
157 throw new ArgumentException(
"Multi dimensional array.",
"array");
158 if (index+count > this.
Count || arrayIndex+count > array.Length)
159 throw new ArgumentException(
"Number of elements to copy is too large.");
160 for (
int i=0; i<count; i++)
161 array.SetValue(getitemcopy(index+i), arrayIndex+i);
164 System.Collections.Generic.IEnumerator<
OdGePoint3d> System.Collections.Generic.IEnumerable<
OdGePoint3d>.GetEnumerator() {
165 return new OdVectorOdGePoint3dEnumerator(
this);
168 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
169 return new OdVectorOdGePoint3dEnumerator(
this);
182 , System.Collections.Generic.IEnumerator<OdGePoint3d>
185 private int currentIndex;
186 private object currentObject;
187 private int currentSize;
190 collectionRef = collection;
192 currentObject =
null;
193 currentSize = collectionRef.
Count;
199 if (currentIndex == -1)
200 throw new InvalidOperationException(
"Enumeration not started.");
201 if (currentIndex > currentSize - 1)
202 throw new InvalidOperationException(
"Enumeration finished.");
203 if (currentObject ==
null)
204 throw new InvalidOperationException(
"Collection modified.");
210 object System.Collections.IEnumerator.Current {
217 int size = collectionRef.
Count;
218 bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
221 currentObject = collectionRef[currentIndex];
223 currentObject =
null;
230 currentObject =
null;
231 if (collectionRef.
Count != currentSize) {
232 throw new InvalidOperationException(
"Collection modified.");
238 currentObject =
null;
252 private uint size() {
258 private uint capacity() {
259 uint ret = GlobalsPINVOKE.OdVectorOdGePoint3d_capacity(swigCPtr);
260 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
264 private void reserve(uint n) {
265 GlobalsPINVOKE.OdVectorOdGePoint3d_reserve(swigCPtr, n);
266 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
280 private OdGePoint3d getitem(
int index) {
281 OdGePoint3d ret =
new OdGePoint3d(GlobalsPINVOKE.OdVectorOdGePoint3d_getitem(swigCPtr, index),
false);
282 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
286 private void setitem(
int index, OdGePoint3d val) {
287 GlobalsPINVOKE.OdVectorOdGePoint3d_setitem(swigCPtr, index, OdGePoint3d.getCPtr(val));
288 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
static global::System.Exception Retrieve()
static global::System.IntPtr OdVectorOdGePoint3d_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int OdVectorOdGePoint3d_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdVectorOdGePoint3d_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdVectorOdGePoint3d_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdVectorOdGePoint3d_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static uint OdVectorOdGePoint3d_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdVectorOdGePoint3d_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void OdVectorOdGePoint3d_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdVectorOdGePoint3d_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdVectorOdGePoint3d_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdVectorOdGePoint3d_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdVectorOdGePoint3d_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdVectorOdGePoint3d(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdVectorOdGePoint3d_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdVectorOdGePoint3d_resize(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static int OdVectorOdGePoint3d_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdVectorOdGePoint3d_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdVectorOdGePoint3d_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdVectorOdGePoint3d_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdVectorOdGePoint3d_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static HandleRef getCPtr(OdGePoint3d obj)
OdVectorOdGePoint3dEnumerator(OdVectorOdGePoint3d collection)
void Reverse(int index, int count)
virtual void Dispose(bool disposing)
void SetRange(int index, OdVectorOdGePoint3d values)
OdVectorOdGePoint3d(OdVectorOdGePoint3d other)
static HandleRef getCPtr(OdVectorOdGePoint3d obj)
void CopyTo(int index, OdGePoint3d[] array, int arrayIndex, int count)
void resize(uint logicalLength)
bool Contains(OdGePoint3d value)
OdVectorOdGePoint3d(IntPtr cPtr, bool cMemoryOwn)
void Insert(int index, OdGePoint3d x)
bool Remove(OdGePoint3d value)
OdVectorOdGePoint3d GetRange(int index, int count)
static OdVectorOdGePoint3d Repeat(OdGePoint3d value, int count)
int LastIndexOf(OdGePoint3d value)
OdVectorOdGePoint3d(int capacity)
void RemoveRange(int index, int count)
int IndexOf(OdGePoint3d value)
void CopyTo(OdGePoint3d[] array)
void InsertRange(int index, OdVectorOdGePoint3d values)
void AddRange(OdVectorOdGePoint3d values)
OdVectorOdGePoint3dEnumerator GetEnumerator()
void CopyTo(OdGePoint3d[] array, int arrayIndex)
OdVectorOdGePoint3d(System.Collections.ICollection c)