Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
DwExportParams.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 DwExportParams : 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 DwExportParams(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(DwExportParams 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 private static UInt32[] UnMarshalPalette(IntPtr p)
52 {
53 if (p == IntPtr.Zero)
54 return null;
55 UInt32[] res = new UInt32[256];
56 for (int i = 0; i < 256; ++i)
57 {
58 res[i] = (UInt32)Marshal.ReadInt32(p, i * 4);
59 }
60 return res;
61 }
62 private static IntPtr MarshalPalette(UInt32[] p)
63 {
64 if (p == null)
65 return IntPtr.Zero;
66 if (p.Length != 256)
67 throw new Exception("MarshalPalette: palette size must be 256");
68 IntPtr res = Marshal.AllocCoTaskMem(256 * 4);
69 for (int i = 0; i < 256; ++i)
70 {
71 Marshal.WriteInt32(res, i * 4, (Int32)p[i]);
72 }
73 return res;
74 }
75
76 public UInt32[] Palette
77 {
78 get
79 {
80 return UnMarshalPalette(GlobalsPINVOKE.DwExportParams_getPalette(swigCPtr));
81 }
82 set
83 {
84 IntPtr p = MarshalPalette(value);
86 Marshal.FreeCoTaskMem(p);
87 }
88 }
89
90 public DwExportParams() : this(GlobalsPINVOKE.new_DwExportParams(), true) {
92 }
93
94 public OdRxObject database() {
95 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.DwExportParams_database(swigCPtr),false); /*createInt 3_2*/
96
98 return ret;
99}
100
105
106 public void setLayouts(OdStringArray layouts, OdRxObjectPtrArray pDbArray, bool bForceViewPrefixByFileName) {
109 }
110
115
120
126
128// csout array
130
132 return res;
133}
134
142
147
153
154 public void setXSize(Int32 iValue) {
155 GlobalsPINVOKE.DwExportParams_setXSize(swigCPtr, iValue /*SIMPLETYPE*/);
157 }
158
159 public Int32 xSize() {
160// test csout
161 /*SIMPLETYPE*/
162 Int32 ret = GlobalsPINVOKE.DwExportParams_xSize(swigCPtr);
164 return ret;
165 }
166
167 public void setYSize(Int32 iValue) {
168 GlobalsPINVOKE.DwExportParams_setYSize(swigCPtr, iValue /*SIMPLETYPE*/);
170 }
171
172 public Int32 ySize() {
173// test csout
174 /*SIMPLETYPE*/
175 Int32 ret = GlobalsPINVOKE.DwExportParams_ySize(swigCPtr);
177 return ret;
178 }
179
184
190
195
201
206
207 public UInt32 background() {
208// test csout
209 /*SIMPLETYPE*/
210 UInt32 ret = GlobalsPINVOKE.DwExportParams_background(swigCPtr);
212 return ret;
213 }
214
219
225
230
236
241
247
252
258
263
264 public bool inkedArea() {
265 bool ret = GlobalsPINVOKE.DwExportParams_inkedArea(swigCPtr);
267 return ret;
268 }
269
274
280
285
286 public bool RGBToJpeg() {
287 bool ret = GlobalsPINVOKE.DwExportParams_RGBToJpeg(swigCPtr);
289 return ret;
290 }
291
296
297 public bool useHLR() {
298 bool ret = GlobalsPINVOKE.DwExportParams_useHLR(swigCPtr);
300 return ret;
301 }
302
307
313
318
319 public UInt32 maxPointsInPolygon() {
320// test csout
321 /*SIMPLETYPE*/
324 return ret;
325 }
326
331
332 public UInt16 maxRasterResolution() {
333// test csout
334 /*SIMPLETYPE*/
337 return ret;
338 }
339
344
350
355
361
366
372
377
383
388
394
399
405
410
416
421
427
428}
429
430}
static HandleRef getCPtr(DwExportParams obj)
void setPageData(DwfPageDataArray pageData)
void setColorMapOptimize(bool bFlag)
void setLayouts(OdStringArray layouts)
void setExportInvisibleText(bool bFlag)
DwfPageDataArray pageData()
void setVersion(DwfVersion value)
void setSkipNamedViewsInfo(bool bFlag)
void setPublisher(String sPublisher)
void setEmbedAllFonts(bool bFlag)
void setForceInitialViewToExtents(bool bFlag)
void setMaxPointsInPolygon(UInt32 uValue)
OdRxObjectPtrArray databases()
void setRGBToJpeg(bool bFlag)
void setInkedArea(bool bFlag)
void setFormat(DW_FORMAT value)
DwExportParams(IntPtr cPtr, bool cMemoryOwn)
void setDwfFileName(String sDwfFileName)
virtual void Dispose(bool disposing)
void setWideComments(String sWideComments)
void setYSize(Int32 iValue)
void setExportInvisibleLayers(bool bFlag)
void setMaxRasterResolution(UInt16 uValue)
void setXSize(Int32 iValue)
void setDatabase(OdRxObject pDb)
void setLineweightScale(double s)
void setPassword(String sPassword)
void setLayouts(OdStringArray layouts, OdRxObjectPtrArray pDbArray, bool bForceViewPrefixByFileName)
void setExportGradientAsRaster(bool bFlag)
void setBackground(UInt32 background)
void setLayouts(OdStringArray layouts, OdRxObjectPtrArray pDbArray)
void setSourceProductName(String sSourceProductName)
void setSkipLayerInfo(bool bFlag)
static HandleRef getCPtr(DwfPageDataArray obj)
static global::System.Exception Retrieve()
static global::System.IntPtr DwExportParams_pageData(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 DwExportParams_background(global::System.Runtime.InteropServices.HandleRef jarg1)
static String DwExportParams_dwfFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setLayouts__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool DwExportParams_exportGradientAsRaster(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr DwExportParams_getPalette(HandleRef jarg1)
static void DwExportParams_setExportGradientAsRaster(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setBackground(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool DwExportParams_forceInitialViewToExtents(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPageData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void DwExportParams_setEmbedAllFonts(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setSkipLayerInfo(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr DwExportParams_layouts(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPassword(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static Int32 DwExportParams_ySize(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_skipLayerInfo(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setMaxPointsInPolygon(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void DwExportParams_setDwfFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void DwExportParams_setLineweightScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double DwExportParams_lineweightScale(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setInkedArea(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setForceInitialViewToExtents(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool DwExportParams_colorMapOptimize(global::System.Runtime.InteropServices.HandleRef jarg1)
static String DwExportParams_password(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_exportInvisibleText(global::System.Runtime.InteropServices.HandleRef jarg1)
static String DwExportParams_wideComments(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_inkedArea(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setSkipNamedViewsInfo(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr DwExportParams_databases(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_embedAllFonts(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPalette(HandleRef jarg1, IntPtr jarg2)
static void delete_DwExportParams(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setSourceProductName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void DwExportParams_setLayouts__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static IntPtr DwExportParams_database(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setExportInvisibleText(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setUseHLR(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setWideComments(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void DwExportParams_setMaxRasterResolution(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static bool DwExportParams_exportInvisibleLayers(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setXSize(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void DwExportParams_setFormat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void DwExportParams_setExportInvisibleLayers(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int DwExportParams_format(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int DwExportParams_version(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 DwExportParams_xSize(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_RGBToJpeg(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setDatabase(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static String DwExportParams_sourceProductName(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 DwExportParams_maxPointsInPolygon(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_useHLR(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_skipNamedViewsInfo(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setRGBToJpeg(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool DwExportParams_useViewPrefixByFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setLayouts__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static String DwExportParams_publisher(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPublisher(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt16 DwExportParams_maxRasterResolution(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setYSize(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void DwExportParams_setColorMapOptimize(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdRxObjectPtrArray obj)
static HandleRef getCPtr(OdStringArray obj)