Extended .NET SDK Documentation 2024 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
101 public void setDatabase(OdRxObject pDb) {
104 }
105
106 public void setDwfFileName(String sDwfFileName) {
107 GlobalsPINVOKE.DwExportParams_setDwfFileName(swigCPtr, sDwfFileName);
109 }
110
112 string ret = GlobalsPINVOKE.DwExportParams_dwfFileName(swigCPtr);
114 return ret;
115}
116
117 public void setXSize(Int32 /*SIMPLETYPE*/ iValue) {
118 GlobalsPINVOKE.DwExportParams_setXSize(swigCPtr, iValue /*SIMPLETYPE*/);
120 }
121
122 public Int32 xSize() {
123// test csout
124 /*SIMPLETYPE*/
125 Int32 ret = GlobalsPINVOKE.DwExportParams_xSize(swigCPtr);
127 return ret;
128 }
129
130 public void setYSize(Int32 /*SIMPLETYPE*/ iValue) {
131 GlobalsPINVOKE.DwExportParams_setYSize(swigCPtr, iValue /*SIMPLETYPE*/);
133 }
134
135 public Int32 ySize() {
136// test csout
137 /*SIMPLETYPE*/
138 Int32 ret = GlobalsPINVOKE.DwExportParams_ySize(swigCPtr);
140 return ret;
141 }
142
143 public void setFormat(DW_FORMAT value) {
146 }
147
148 public DW_FORMAT format() {
151 return ret;
152 }
153
157 }
158
162 return ret;
163 }
164
165 public void setBackground(UInt32 /*SIMPLETYPE*/ background) {
168 }
169
170 public UInt32 background() {
171// test csout
172 /*SIMPLETYPE*/
173 UInt32 ret = GlobalsPINVOKE.DwExportParams_background(swigCPtr);
175 return ret;
176 }
177
178 public void setExportInvisibleLayers(bool bFlag) {
181 }
182
183 public bool exportInvisibleLayers() {
186 return ret;
187 }
188
189 public void setForceInitialViewToExtents(bool bFlag) {
192 }
193
197 return ret;
198 }
199
200 public void setSkipLayerInfo(bool bFlag) {
203 }
204
205 public bool skipLayerInfo() {
206 bool ret = GlobalsPINVOKE.DwExportParams_skipLayerInfo(swigCPtr);
208 return ret;
209 }
210
211 public void setSkipNamedViewsInfo(bool bFlag) {
214 }
215
216 public bool skipNamedViewsInfo() {
219 return ret;
220 }
221
222 public void setInkedArea(bool bFlag) {
225 }
226
227 public bool inkedArea() {
228 bool ret = GlobalsPINVOKE.DwExportParams_inkedArea(swigCPtr);
230 return ret;
231 }
232
233 public void setColorMapOptimize(bool bFlag) {
236 }
237
238 public bool colorMapOptimize() {
241 return ret;
242 }
243
244 public void setRGBToJpeg(bool bFlag) {
247 }
248
249 public bool RGBToJpeg() {
250 bool ret = GlobalsPINVOKE.DwExportParams_RGBToJpeg(swigCPtr);
252 return ret;
253 }
254
255 public void setUseHLR(bool bFlag) {
258 }
259
260 public bool useHLR() {
261 bool ret = GlobalsPINVOKE.DwExportParams_useHLR(swigCPtr);
263 return ret;
264 }
265
266 public void setExportGradientAsRaster(bool bFlag) {
269 }
270
274 return ret;
275 }
276
277 public void setMaxPointsInPolygon(UInt32 /*SIMPLETYPE*/ uValue) {
278 GlobalsPINVOKE.DwExportParams_setMaxPointsInPolygon(swigCPtr, uValue /*SIMPLETYPE*/);
280 }
281
282 public UInt32 maxPointsInPolygon() {
283// test csout
284 /*SIMPLETYPE*/
287 return ret;
288 }
289
290 public void setMaxRasterResolution(UInt16 /*SIMPLETYPE*/ uValue) {
291 GlobalsPINVOKE.DwExportParams_setMaxRasterResolution(swigCPtr, uValue /*SIMPLETYPE*/);
293 }
294
295 public UInt16 maxRasterResolution() {
296// test csout
297 /*SIMPLETYPE*/
300 return ret;
301 }
302
303 public void setPassword(String sPassword) {
304 GlobalsPINVOKE.DwExportParams_setPassword(swigCPtr, sPassword);
306 }
307
308 public String password() {
309 string ret = GlobalsPINVOKE.DwExportParams_password(swigCPtr);
311 return ret;
312}
313
314 public void setPublisher(String sPublisher) {
315 GlobalsPINVOKE.DwExportParams_setPublisher(swigCPtr, sPublisher);
317 }
318
319 public String publisher() {
320 string ret = GlobalsPINVOKE.DwExportParams_publisher(swigCPtr);
322 return ret;
323}
324
325 public void setWideComments(String sWideComments) {
326 GlobalsPINVOKE.DwExportParams_setWideComments(swigCPtr, sWideComments);
328 }
329
331 string ret = GlobalsPINVOKE.DwExportParams_wideComments(swigCPtr);
333 return ret;
334}
335
336 public void setSourceProductName(String sSourceProductName) {
337 GlobalsPINVOKE.DwExportParams_setSourceProductName(swigCPtr, sSourceProductName);
339 }
340
344 return ret;
345}
346
350 }
351
355 return ret;
356 }
357
358 public void setExportInvisibleText(bool bFlag) {
361 }
362
363 public bool exportInvisibleText() {
366 return ret;
367 }
368
369 public void setEmbedAllFonts(bool bFlag) {
372 }
373
374 public bool embedAllFonts() {
375 bool ret = GlobalsPINVOKE.DwExportParams_embedAllFonts(swigCPtr);
377 return ret;
378 }
379
380 public void setLineweightScale(double s) {
383 }
384
385 public double lineweightScale() {
386 double ret = GlobalsPINVOKE.DwExportParams_lineweightScale(swigCPtr);
388 return ret;
389 }
390
391}
392
393}
static HandleRef getCPtr(DwExportParams obj)
void setPageData(DwfPageDataArray pageData)
void setColorMapOptimize(bool bFlag)
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 setUseHLR(bool bFlag)
void setMaxPointsInPolygon(UInt32 uValue)
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 setExportGradientAsRaster(bool bFlag)
void setBackground(UInt32 background)
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 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 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 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 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 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