Extended .NET SDK Documentation
2025 SP0
Loading...
Searching...
No Matches
SDK
DotNet
dd_inc
TD_SwigCore_TEMP
TargetLangSources
OdGeContext.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
11
namespace
Teigha.Core
{
12
13
using
System;
14
using
System.Runtime.InteropServices;
15
16
public
class
OdGeContext
: 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
OdGeContext
(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
(
OdGeContext
obj) {
27
return
(obj ==
null
) ?
new
HandleRef(
null
, IntPtr.Zero) : obj.swigCPtr;
28
}
29
30
~OdGeContext
() {
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
;
44
GlobalsPINVOKE
.
delete_OdGeContext
(swigCPtr);
45
}
46
swigCPtr =
new
global::System.Runtime.InteropServices.HandleRef(
null
, global::System.IntPtr.Zero);
47
}
48
}
49
}
50
51
public
static
OdGeTol
gTol
{
52
set
{
53
GlobalsPINVOKE
.
OdGeContext_gTol_set
(
OdGeTol
.
getCPtr
(
value
));
54
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
55
}
56
get
{
57
global::System.IntPtr cPtr =
GlobalsPINVOKE
.
OdGeContext_gTol_get
();
58
OdGeTol
ret = (cPtr == global::System.IntPtr.Zero) ?
null
:
new
OdGeTol
(cPtr,
false
);
59
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
60
return
ret;
61
}
62
}
63
64
public
static
OdGeTol
gZeroTol
{
65
set
{
66
GlobalsPINVOKE
.
OdGeContext_gZeroTol_set
(
OdGeTol
.
getCPtr
(
value
));
67
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
68
}
69
get
{
70
global::System.IntPtr cPtr =
GlobalsPINVOKE
.
OdGeContext_gZeroTol_get
();
71
OdGeTol
ret = (cPtr == global::System.IntPtr.Zero) ?
null
:
new
OdGeTol
(cPtr,
false
);
72
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
73
return
ret;
74
}
75
}
76
77
public
OdGeContext
() : this(
GlobalsPINVOKE
.new_OdGeContext(), true) {
78
if
(
GlobalsPINVOKE
.
SWIGPendingException
.
Pending
)
throw
GlobalsPINVOKE
.
SWIGPendingException
.
Retrieve
();
79
}
80
81
}
82
83
}
Teigha.Core.GlobalsPINVOKE.SWIGPendingException
Definition
GlobalsPINVOKE.cs:130
Teigha.Core.GlobalsPINVOKE.SWIGPendingException.Pending
static bool Pending
Definition
GlobalsPINVOKE.cs:136
Teigha.Core.GlobalsPINVOKE.SWIGPendingException.Retrieve
static global::System.Exception Retrieve()
Definition
GlobalsPINVOKE.cs:155
Teigha.Core.GlobalsPINVOKE
Definition
GlobalsPINVOKE.cs:16
Teigha.Core.GlobalsPINVOKE.OdGeContext_gTol_get
static global::System.IntPtr OdGeContext_gTol_get()
Teigha.Core.GlobalsPINVOKE.OdGeContext_gZeroTol_set
static void OdGeContext_gZeroTol_set(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.GlobalsPINVOKE.OdGeContext_gZeroTol_get
static global::System.IntPtr OdGeContext_gZeroTol_get()
Teigha.Core.GlobalsPINVOKE.delete_OdGeContext
static void delete_OdGeContext(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.GlobalsPINVOKE.OdGeContext_gTol_set
static void OdGeContext_gTol_set(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.OdGeContext
Definition
OdGeContext.cs:16
Teigha.Core.OdGeContext.Dispose
void Dispose()
Definition
OdGeContext.cs:34
Teigha.Core.OdGeContext.Dispose
virtual void Dispose(bool disposing)
Definition
OdGeContext.cs:39
Teigha.Core.OdGeContext.getCPtr
static HandleRef getCPtr(OdGeContext obj)
Definition
OdGeContext.cs:26
Teigha.Core.OdGeContext.gTol
static OdGeTol gTol
Definition
OdGeContext.cs:51
Teigha.Core.OdGeContext.OdGeContext
OdGeContext()
Definition
OdGeContext.cs:77
Teigha.Core.OdGeContext.swigCMemOwn
bool swigCMemOwn
Definition
OdGeContext.cs:19
Teigha.Core.OdGeContext.OdGeContext
OdGeContext(IntPtr cPtr, bool cMemoryOwn)
Definition
OdGeContext.cs:21
Teigha.Core.OdGeContext.gZeroTol
static OdGeTol gZeroTol
Definition
OdGeContext.cs:64
Teigha.Core.OdGeTol
Definition
OdGeTol.cs:16
Teigha.Core.OdGeTol.getCPtr
static HandleRef getCPtr(OdGeTol obj)
Definition
OdGeTol.cs:26
Teigha.Core
Definition
AbstractClipBoundaryArray.cs:11
Teigha.Core.HexBinaryAttributesEnum.value
@ value
Generated on Mon Mar 4 2024 12:45:25