Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
int3.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 int3 : 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 int3(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(int3 obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~int3() {
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 int3() : this(GlobalsPINVOKE.new_int3(), true) {
53 }
54
55 public void set(int a) {
56 GlobalsPINVOKE.int3_set(swigCPtr, a);
58 }
59
60 public int GetItem(uint i) {
61 int ret = GlobalsPINVOKE.int3_GetItem__SWIG_0(swigCPtr, i);
63 return ret;
64 }
65
66 public Int32[] /*SIMPLE_ARRAY*/ val {
67 /*SArr csvin*/
68 set {
69 GlobalsPINVOKE.int3_val_set(swigCPtr, Teigha.Core.Helpers.MarshalInt32FixedArray(value));
71 }
72 /*SArr csvout*/
73 get {
74 Int32[] ret = Teigha.Core.Helpers.UnMarshalInt32FixedArray(GlobalsPINVOKE.int3_val_get(swigCPtr));
76 return ret;
77 }
78 }
79
80}
81
82}
static global::System.Exception Retrieve()
static IntPtr int3_val_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int int3_GetItem__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static void int3_val_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void int3_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_int3(global::System.Runtime.InteropServices.HandleRef jarg1)
void Dispose()
Definition: int3.cs:34
int3(IntPtr cPtr, bool cMemoryOwn)
Definition: int3.cs:21
static HandleRef getCPtr(int3 obj)
Definition: int3.cs:26
bool swigCMemOwn
Definition: int3.cs:19
virtual void Dispose(bool disposing)
Definition: int3.cs:39
Int32[] val
Definition: int3.cs:66
int GetItem(uint i)
Definition: int3.cs:60