Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ViewRefs.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 ViewRefs : 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 ViewRefs(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(ViewRefs obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~ViewRefs() {
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 ViewRefs() : this(GlobalsPINVOKE.new_ViewRefs(), true) {
53 }
54
55 public UInt32 numViews() {
56// test csout
57 /*SIMPLETYPE*/
58 UInt32 ret = GlobalsPINVOKE.ViewRefs_numViews(swigCPtr);
60 return ret;
61 }
62
63 public void add(UInt32 /*SIMPLETYPE*/ viewportId) {
64 GlobalsPINVOKE.ViewRefs_add(swigCPtr, viewportId /*SIMPLETYPE*/);
66 }
67
68 public void remove(UInt32 /*SIMPLETYPE*/ viewportId) {
69 GlobalsPINVOKE.ViewRefs_remove(swigCPtr, viewportId /*SIMPLETYPE*/);
71 }
72
73 public int maxViewportId() {
74 int ret = GlobalsPINVOKE.ViewRefs_maxViewportId(swigCPtr);
76 return ret;
77 }
78
79 public uint numDifferentViewports() {
82 return ret;
83 }
84
85 public void clear() {
88 }
89
90 public void set(OdGsBaseModel pModel) {
93 }
94
95 public bool contains(UInt32 /*SIMPLETYPE*/ viewportId) {
96 bool ret = GlobalsPINVOKE.ViewRefs_contains(swigCPtr, viewportId /*SIMPLETYPE*/);
98 return ret;
99 }
100
101 public class const_iterator : global::System.IDisposable {
102 private Object locker = new Object();
103 private HandleRef swigCPtr;
104 protected bool swigCMemOwn;
105 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
106 public const_iterator(IntPtr cPtr, bool cMemoryOwn) {
107 swigCMemOwn = cMemoryOwn;
108 swigCPtr = new HandleRef(this, cPtr);
109 }
110 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
111 public static HandleRef getCPtr(const_iterator obj) {
112 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
113 }
114
116 Dispose(false);
117 }
118
119 public void Dispose() {
120 Dispose(true);
121 global::System.GC.SuppressFinalize(this);
122 }
123
124 protected virtual void Dispose(bool disposing) {
125 lock(this) {
126 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
127 if (swigCMemOwn) {
128 swigCMemOwn = false;
129 GlobalsPINVOKE.delete_ViewRefs_const_iterator(swigCPtr); // NESTED_DTOR_CSHARP
130 }
131 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
132 }
133 }
134 }
135
136 public const_iterator(ViewRefs refs) : this(GlobalsPINVOKE.new_ViewRefs_const_iterator__SWIG_0(ViewRefs.getCPtr(refs)), true) {
138 }
139
140 public const_iterator(ViewRefs.const_iterator c) : this(GlobalsPINVOKE.new_ViewRefs_const_iterator__SWIG_1(ViewRefs.const_iterator.getCPtr(c)), true) {
142 }
143
144 public void start() {
147 }
148
149 public bool done() {
150 bool ret = GlobalsPINVOKE.ViewRefs_const_iterator_done(swigCPtr);
152 return ret;
153 }
154
155 public UInt32 viewportId() {
156 // test csout
157 /*SIMPLETYPE*/
160 return ret;
161 }
162
163 public void step() {
166 }
167
168 }
169
170}
171
172}
static global::System.Exception Retrieve()
static bool ViewRefs_const_iterator_done(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_ViewRefs_const_iterator(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_ViewRefs(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRefs_set(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static int ViewRefs_maxViewportId(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRefs_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRefs_const_iterator_step(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 ViewRefs_numViews(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRefs_add(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void ViewRefs_const_iterator_start(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewRefs_remove(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool ViewRefs_contains(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt32 ViewRefs_const_iterator_viewportId(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint ViewRefs_numDifferentViewports(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGsBaseModel obj)
const_iterator(IntPtr cPtr, bool cMemoryOwn)
Definition: ViewRefs.cs:106
static HandleRef getCPtr(const_iterator obj)
Definition: ViewRefs.cs:111
virtual void Dispose(bool disposing)
Definition: ViewRefs.cs:124
const_iterator(ViewRefs.const_iterator c)
Definition: ViewRefs.cs:140
virtual void Dispose(bool disposing)
Definition: ViewRefs.cs:39
static HandleRef getCPtr(ViewRefs obj)
Definition: ViewRefs.cs:26
ViewRefs(IntPtr cPtr, bool cMemoryOwn)
Definition: ViewRefs.cs:21
UInt32 numViews()
Definition: ViewRefs.cs:55
uint numDifferentViewports()
Definition: ViewRefs.cs:79
void add(UInt32 viewportId)
Definition: ViewRefs.cs:63
bool contains(UInt32 viewportId)
Definition: ViewRefs.cs:95