Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiProceduralGenerator.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 OdGiProceduralGenerator(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiProceduralGenerator_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiProceduralGenerator 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 OdGiProceduralGenerator cast(OdRxObject pObj) {// OdSmartPtr<OdGiProceduralGenerator>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiProceduralGenerator ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiProceduralGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiProceduralGenerator),ptr, true));
51 ret = (OdGiProceduralGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiProceduralGenerator),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiProceduralGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiProceduralGenerator),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.OdGiProceduralGenerator_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.OdGiProceduralGenerator_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.OdGiProceduralGenerator_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiProceduralGenerator createObject() {// OdSmartPtr<OdGiProceduralGenerator>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiProceduralGenerator ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiProceduralGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiProceduralGenerator),ptr, true));
92 ret = (OdGiProceduralGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiProceduralGenerator),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiProceduralGenerator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiProceduralGenerator),ptr, true);
97 }
98
100 return ret;
101}
102
103 public virtual bool generateProceduralTexture(OdGiProceduralTexture pTexture, OdGiImageBGRA32 image, double renderCoef) {
106 return ret;
107 }
108
112 return ret;
113 }
114
115 public virtual void generateProceduralWood(OdGiPixelBGRA32 color1, OdGiPixelBGRA32 color2, double radialNoise, double axialNoise, double grainThickness, OdGiImageBGRA32 image, double renderCoef) {
116 GlobalsPINVOKE.OdGiProceduralGenerator_generateProceduralWood__SWIG_0(swigCPtr, OdGiPixelBGRA32.getCPtr(color1), OdGiPixelBGRA32.getCPtr(color2), radialNoise, axialNoise, grainThickness, OdGiImageBGRA32.getCPtr(image), renderCoef);
118 }
119
120 public virtual void generateProceduralWood(OdGiPixelBGRA32 color1, OdGiPixelBGRA32 color2, double radialNoise, double axialNoise, double grainThickness, OdGiImageBGRA32 image) {
121 GlobalsPINVOKE.OdGiProceduralGenerator_generateProceduralWood__SWIG_1(swigCPtr, OdGiPixelBGRA32.getCPtr(color1), OdGiPixelBGRA32.getCPtr(color2), radialNoise, axialNoise, grainThickness, OdGiImageBGRA32.getCPtr(image));
123 }
124
125 public virtual void generateProceduralMarble(OdGiPixelBGRA32 stoneColor, OdGiPixelBGRA32 veinColor, double veinSpacing, double veinWidth, OdGiImageBGRA32 image, double renderCoef) {
126 GlobalsPINVOKE.OdGiProceduralGenerator_generateProceduralMarble__SWIG_0(swigCPtr, OdGiPixelBGRA32.getCPtr(stoneColor), OdGiPixelBGRA32.getCPtr(veinColor), veinSpacing, veinWidth, OdGiImageBGRA32.getCPtr(image), renderCoef);
128 }
129
130 public virtual void generateProceduralMarble(OdGiPixelBGRA32 stoneColor, OdGiPixelBGRA32 veinColor, double veinSpacing, double veinWidth, OdGiImageBGRA32 image) {
133 }
134
135 public virtual void setColorGradient(OdGiGradientGenerator gradient) {
138 }
139
143 return ret;
144 }
145
146 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
147 string ret = GlobalsPINVOKE.OdGiProceduralGenerator_getRealClassName(ptr /*SIMPLETYPE*/);
149 return ret;
150 }
151
152}
153
154}
static global::System.Exception Retrieve()
static void OdGiProceduralGenerator_generateProceduralMarble__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4, double jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static IntPtr OdGiProceduralGenerator_desc()
static void OdGiProceduralGenerator_generateProceduralWood__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4, double jarg5, double jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, double jarg8)
static bool OdGiProceduralGenerator_generateProceduralTexture__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static void OdGiProceduralGenerator_generateProceduralMarble__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4, double jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, double jarg7)
static IntPtr OdGiProceduralGenerator_createObject()
static void OdGiProceduralGenerator_generateProceduralWood__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4, double jarg5, double jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static IntPtr OdGiProceduralGenerator_isA(HandleRef jarg1)
static IntPtr OdGiProceduralGenerator_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdGiProceduralGenerator_setColorGradient(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiProceduralGenerator_cast(HandleRef jarg1)
static void delete_OdGiProceduralGenerator(HandleRef jarg1)
static global::System.IntPtr OdGiProceduralGenerator_colorGradient(HandleRef jarg1)
static string OdGiProceduralGenerator_getRealClassName(IntPtr jarg1)
static bool OdGiProceduralGenerator_generateProceduralTexture__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static HandleRef getCPtr(OdGiGradientGenerator obj)
static HandleRef getCPtr(OdGiImageBGRA32 obj)
static HandleRef getCPtr(OdGiPixelBGRA32 obj)
virtual void generateProceduralWood(OdGiPixelBGRA32 color1, OdGiPixelBGRA32 color2, double radialNoise, double axialNoise, double grainThickness, OdGiImageBGRA32 image)
OdGiProceduralGenerator(IntPtr cPtr, bool cMemoryOwn)
virtual bool generateProceduralTexture(OdGiProceduralTexture pTexture, OdGiImageBGRA32 image, double renderCoef)
virtual OdGiGradientGenerator colorGradient()
virtual void generateProceduralMarble(OdGiPixelBGRA32 stoneColor, OdGiPixelBGRA32 veinColor, double veinSpacing, double veinWidth, OdGiImageBGRA32 image)
override OdRxObject queryX(OdRxClass protocolClass)
virtual void generateProceduralMarble(OdGiPixelBGRA32 stoneColor, OdGiPixelBGRA32 veinColor, double veinSpacing, double veinWidth, OdGiImageBGRA32 image, double renderCoef)
override void Dispose(bool disposing)
virtual bool generateProceduralTexture(OdGiProceduralTexture pTexture, OdGiImageBGRA32 image)
virtual void setColorGradient(OdGiGradientGenerator gradient)
static OdGiProceduralGenerator cast(OdRxObject pObj)
static OdGiProceduralGenerator createObject()
virtual void generateProceduralWood(OdGiPixelBGRA32 color1, OdGiPixelBGRA32 color2, double radialNoise, double axialNoise, double grainThickness, OdGiImageBGRA32 image, double renderCoef)
static HandleRef getCPtr(OdGiProceduralGenerator obj)
static HandleRef getCPtr(OdGiProceduralTexture obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26