Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdRandomGen.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 OdRandomGen : 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 OdRandomGen(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(OdRandomGen obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdRandomGen() {
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 virtual OdRandomGen clone() {
52 global::System.IntPtr cPtr = GlobalsPINVOKE.OdRandomGen_clone(swigCPtr);
53 OdRandomGen ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRandomGen(cPtr, false);
55 return ret;
56 }
57
58 public virtual void setSeed(UInt32 seed) {
59 GlobalsPINVOKE.OdRandomGen_setSeed(swigCPtr, seed /*SIMPLETYPE*/);
61 }
62
63 public virtual UInt32 getSeed() {
64// test csout
65 /*SIMPLETYPE*/
66 UInt32 ret = GlobalsPINVOKE.OdRandomGen_getSeed(swigCPtr);
68 return ret;
69 }
70
71 public virtual void getRange(out UInt32 high) {
72 GlobalsPINVOKE.OdRandomGen_getRange(swigCPtr, out high);
74 }
75
76 public virtual UInt32 generate() {
77// test csout
78 /*SIMPLETYPE*/
79 UInt32 ret = GlobalsPINVOKE.OdRandomGen_generate(swigCPtr);
81 return ret;
82 }
83
84}
85
86}
static global::System.Exception Retrieve()
static UInt32 OdRandomGen_generate(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdRandomGen_setSeed(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static global::System.IntPtr OdRandomGen_clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdRandomGen(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdRandomGen_getRange(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static UInt32 OdRandomGen_getSeed(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void getRange(out UInt32 high)
virtual UInt32 generate()
static HandleRef getCPtr(OdRandomGen obj)
virtual OdRandomGen clone()
virtual UInt32 getSeed()
OdRandomGen(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
virtual void setSeed(UInt32 seed)