Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdStlExportParams.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 OdStlExportParams : 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 OdStlExportParams(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(OdStlExportParams obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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 OdStlExportParams() : this(GlobalsPINVOKE.new_OdStlExportParams(), true) {
53 }
54
58 return ret;
59 }
60
64 return ret;
65 }
66
70 return ret;
71 }
72
76 return ret;
77 }
78
79 public OdStlExportParams setDeviation(double dDeviation) {
82 return ret;
83 }
84
85 public OdStlExportParams setPositiveOctant(bool bPositiveOctant) {
88 return ret;
89 }
90
91 public OdStlExportParams setTextMode(bool bTextMode) {
94 return ret;
95 }
96
97 public OdStlExportParams setCorrectSolid(bool bCorrectSolid) {
100 return ret;
101 }
102
103 public OdStlExportParams setUseColors(bool bUseColors) {
106 return ret;
107 }
108
109 public OdStlExportParams setPalette(UInt32[] /*array applied*/ pPalette) {
112 return ret;
113 }
114
116 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdStlExportParams_database(swigCPtr),false); /*createInt 3_1*/
117
119 return ret;
120}
121
125 return ret;
126 }
127
128 public OdStreamBuf stream() {
129 OdStreamBuf ret = (OdStreamBuf)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdStreamBuf),GlobalsPINVOKE.OdStlExportParams_stream(swigCPtr),false); /*createInt 3_1*/
130
132 return ret;
133}
134
135 public double deviation() {
136 double ret = GlobalsPINVOKE.OdStlExportParams_deviation(swigCPtr);
138 return ret;
139 }
140
141 public bool positiveOctant() {
144 return ret;
145 }
146
147 public bool textMode() {
148 bool ret = GlobalsPINVOKE.OdStlExportParams_textMode(swigCPtr);
150 return ret;
151 }
152
153 public bool correctSolid() {
156 return ret;
157 }
158
159 public bool useColors() {
160 bool ret = GlobalsPINVOKE.OdStlExportParams_useColors(swigCPtr);
162 return ret;
163 }
164
165 public UInt32[] /*array applied*/ palette() {
166 IntPtr ret_ptr = GlobalsPINVOKE.OdStlExportParams_palette(swigCPtr);
168 if (ret_ptr == IntPtr.Zero)
169 return null;
170 int arrayLength = 257;
171 Int32[] ret_tmp_result = new Int32[arrayLength];
172 Marshal.Copy(ret_ptr, ret_tmp_result, 0, arrayLength);
173
174 UInt32[] result = Array.ConvertAll<Int32,UInt32>(ret_tmp_result, new Converter<Int32, UInt32>((in_value) => { return (UInt32)in_value; }));
175 return result;
176}
177
178 public bool isValid() {
179 bool ret = GlobalsPINVOKE.OdStlExportParams_isValid(swigCPtr);
181 return ret;
182 }
183
184}
185
186}
static global::System.Exception Retrieve()
static global::System.IntPtr OdStlExportParams_setTextMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdStlExportParams_entities(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdStlExportParams_setPositiveOctant(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdStlExportParams_textMode(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdStlExportParams_setEntity(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdStlExportParams_setStream(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdStlExportParams_setPalette(global::System.Runtime.InteropServices.HandleRef jarg1, [In, MarshalAs(UnmanagedType.LPArray)]UInt32[] jarg2)
static double OdStlExportParams_deviation(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdStlExportParams_setDatabase(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdStlExportParams_addEntities(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdStlExportParams_setCorrectSolid(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static IntPtr OdStlExportParams_palette(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdStlExportParams(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdStlExportParams_database(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdStlExportParams_stream(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdStlExportParams_isValid(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdStlExportParams_setDeviation(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdStlExportParams_setUseColors(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdStlExportParams_positiveOctant(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdStlExportParams_useColors(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdStlExportParams_correctSolid(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGiDrawable obj)
Definition: OdGiDrawable.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
OdStlExportParams setUseColors(bool bUseColors)
OdStlExportParams setPalette(UInt32[] pPalette)
OdStlExportParams setStream(OdStreamBuf pOutStream)
OdStlExportParams(IntPtr cPtr, bool cMemoryOwn)
OdStlExportParams setEntity(OdGiDrawable pEntity)
OdStlExportParams addEntities(SWIGTYPE_p_OdArrayT_OdGiDrawable_const_p_t entities)
SWIGTYPE_p_OdArrayT_OdGiDrawable_const_p_t entities()
virtual void Dispose(bool disposing)
OdStlExportParams setCorrectSolid(bool bCorrectSolid)
OdStlExportParams setTextMode(bool bTextMode)
OdStlExportParams setPositiveOctant(bool bPositiveOctant)
OdStlExportParams setDeviation(double dDeviation)
static HandleRef getCPtr(OdStlExportParams obj)
OdStlExportParams setDatabase(OdRxObject pDb)
static HandleRef getCPtr(OdStreamBuf obj)
Definition: OdStreamBuf.cs:25