Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiNoiseGenerator.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGiNoiseGenerator(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiNoiseGenerator_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiNoiseGenerator obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdGiNoiseGenerator cast(OdRxObject pObj) {// OdSmartPtr<OdGiNoiseGenerator>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiNoiseGenerator ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, true));
51 ret = (OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiNoiseGenerator_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiNoiseGenerator_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiNoiseGenerator_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiNoiseGenerator createObject() {// OdSmartPtr<OdGiNoiseGenerator>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiNoiseGenerator ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, true));
92 ret = (OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, true);
97 }
98
100 return ret;
101}
102
103 public virtual void initSeed(UInt32 /*SIMPLETYPE*/ seed) {
104 GlobalsPINVOKE.OdGiNoiseGenerator_initSeed(swigCPtr, seed /*SIMPLETYPE*/);
106 }
107
108 public virtual double noise1d(double point) {
109 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_noise1d(swigCPtr, point);
111 return ret;
112 }
113
114 public virtual double noise2d(OdGePoint2d point) {
115 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_noise2d(swigCPtr, OdGePoint2d.getCPtr(point));
117 return ret;
118 }
119
120 public virtual double noise3d(OdGePoint3d point) {
121 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_noise3d(swigCPtr, OdGePoint3d.getCPtr(point));
123 return ret;
124 }
125
126 public virtual double noise(double[] /*SIMPLE_ARRAY*/ point, Int32 /*SIMPLETYPE*/ len) {
127 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_noise(swigCPtr, Teigha.Core.Helpers.MarshaldoubleFixedArray(point), len /*SIMPLETYPE*/);
129 return ret;
130 }
131
132 public virtual double turbulence(OdGePoint3d point, double freq) {
133 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_turbulence(swigCPtr, OdGePoint3d.getCPtr(point), freq);
135 return ret;
136 }
137
138 public virtual double oNoise(OdGePoint3d point, double freq) {
139 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_oNoise(swigCPtr, OdGePoint3d.getCPtr(point), freq);
141 return ret;
142 }
143
144 public virtual double fBm(OdGePoint3d point, double H, double lacunarity, double octaves) {
145 double ret = GlobalsPINVOKE.OdGiNoiseGenerator_fBm(swigCPtr, OdGePoint3d.getCPtr(point), H, lacunarity, octaves);
147 return ret;
148 }
149
150 public static OdGiNoiseGenerator createObject(UInt32 /*SIMPLETYPE*/ seed) {// OdSmartPtr<OdGiNoiseGenerator>
151 MemoryManager mMan = MemoryManager.GetMemoryManager();
152 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
153 IntPtr ptr = GlobalsPINVOKE.OdGiNoiseGenerator_createObject__SWIG_1(seed /*SIMPLETYPE*/);
154
155 OdGiNoiseGenerator ret = null;
156 if (null != mTrans)
157 {
158 mTrans.AddObject((OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, true));
159 ret = (OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, false);
160 }
161 else
162 {
163 ret = (OdGiNoiseGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiNoiseGenerator),ptr, true);
164 }
165
167 return ret;
168}
169
170 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
171 string ret = GlobalsPINVOKE.OdGiNoiseGenerator_getRealClassName(ptr /*SIMPLETYPE*/);
173 return ret;
174 }
175
176}
177
178}
static global::System.Exception Retrieve()
static IntPtr OdGiNoiseGenerator_queryX(HandleRef jarg1, HandleRef jarg2)
static string OdGiNoiseGenerator_getRealClassName(IntPtr jarg1)
static IntPtr OdGiNoiseGenerator_cast(HandleRef jarg1)
static double OdGiNoiseGenerator_oNoise(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static double OdGiNoiseGenerator_turbulence(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static double OdGiNoiseGenerator_noise3d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiNoiseGenerator_desc()
static IntPtr OdGiNoiseGenerator_createObject__SWIG_0()
static double OdGiNoiseGenerator_noise1d(HandleRef jarg1, double jarg2)
static IntPtr OdGiNoiseGenerator_createObject__SWIG_1(UInt32 jarg1)
static IntPtr OdGiNoiseGenerator_isA(HandleRef jarg1)
static double OdGiNoiseGenerator_noise(HandleRef jarg1, IntPtr jarg2, Int32 jarg3)
static void delete_OdGiNoiseGenerator(HandleRef jarg1)
static double OdGiNoiseGenerator_fBm(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, double jarg4, double jarg5)
static double OdGiNoiseGenerator_noise2d(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiNoiseGenerator_initSeed(HandleRef jarg1, UInt32 jarg2)
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static OdGiNoiseGenerator createObject(UInt32 seed)
static HandleRef getCPtr(OdGiNoiseGenerator obj)
virtual double noise1d(double point)
override void Dispose(bool disposing)
OdGiNoiseGenerator(IntPtr cPtr, bool cMemoryOwn)
virtual void initSeed(UInt32 seed)
override OdRxObject queryX(OdRxClass protocolClass)
virtual double noise(double[] point, Int32 len)
static string getRealClassName(IntPtr ptr)
virtual double oNoise(OdGePoint3d point, double freq)
virtual double turbulence(OdGePoint3d point, double freq)
virtual double noise3d(OdGePoint3d point)
virtual double noise2d(OdGePoint2d point)
static OdGiNoiseGenerator cast(OdRxObject pObj)
static OdGiNoiseGenerator createObject()
virtual double fBm(OdGePoint3d point, double H, double lacunarity, double octaves)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26