Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiMetafiler.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 OdGiMetafiler(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiMetafiler_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiMetafiler 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 override OdGiConveyorInput input() {
45 return ret;
46 }
47
48 public override OdGiConveyorOutput output() {
51 return ret;
52 }
53
54 public static OdGiMetafiler cast(OdRxObject pObj) {// OdSmartPtr<OdGiMetafiler>
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
58
59 OdGiMetafiler ret = null;
60 if (null != mTrans)
61 {
62 mTrans.AddObject((OdGiMetafiler)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMetafiler),ptr, true));
63 ret = (OdGiMetafiler)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMetafiler),ptr, false);
64 }
65 else
66 {
67 ret = (OdGiMetafiler)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMetafiler),ptr, true);
68 }
69
71 return ret;
72}
73
74 public new static OdRxClass desc() {
75 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMetafiler_desc(),false); /*createInt 3_2*/
76
78 return ret;
79}
80
81 public override OdRxClass isA() {
82 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMetafiler_isA(swigCPtr),false); /*createInt 3_2*/
83
85 return ret;
86}
87
88 public override OdRxObject queryX(OdRxClass protocolClass) {
89 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiMetafiler_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
90
92 return ret;
93}
94
95 public static OdGiMetafiler createObject() {// OdSmartPtr<OdGiMetafiler>
96 MemoryManager mMan = MemoryManager.GetMemoryManager();
97 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
99
100 OdGiMetafiler ret = null;
101 if (null != mTrans)
102 {
103 mTrans.AddObject((OdGiMetafiler)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMetafiler),ptr, true));
104 ret = (OdGiMetafiler)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMetafiler),ptr, false);
105 }
106 else
107 {
108 ret = (OdGiMetafiler)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMetafiler),ptr, true);
109 }
110
112 return ret;
113}
114
115 public virtual void setMetafile(OdGiGeometryMetafile pMetafile) {
118 }
119
120 public virtual OdGiGeometryMetafile metafile() {
121 OdGiGeometryMetafile ret = (OdGiGeometryMetafile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGeometryMetafile),GlobalsPINVOKE.OdGiMetafiler_metafile(swigCPtr),false); /*createInt 3_2*/
122
124 return ret;
125}
126
127 public virtual void exchangeMetafile(OdGiGeometryMetafile pMetafile) {
130 }
131
132 public virtual void setDeviation(OdGeDoubleArray deviations) {
135 }
136
137 public virtual void setDeviation(OdGiDeviation pDeviation) {
140 }
141
142 public virtual void setDrawContext(OdGiConveyorContext pDrawCtx) {
145 }
146
150 }
151
155 return ret;
156 }
157
158 public virtual bool saveTraits(OdGiSubEntityTraitsData entTraits, OdGiSubEntityTraitsData byBlockTraits) {
161 return ret;
162 }
163
164 public virtual bool saveTraits(OdGiSubEntityTraitsData entTraits) {
167 return ret;
168 }
169
170 public virtual bool saveTraits() {
173 return ret;
174 }
175
176 public virtual void flush(bool bForceTraits) {
177 GlobalsPINVOKE.OdGiMetafiler_flush__SWIG_0(swigCPtr, bForceTraits);
179 }
180
181 public virtual void flush() {
184 }
185
186 public virtual void add(OdGiGeometryMetafile.Record pRec) {
189 }
190
191 public virtual void setOptions(UInt32 /*SIMPLETYPE*/ options) {
192 GlobalsPINVOKE.OdGiMetafiler_setOptions(swigCPtr, options /*SIMPLETYPE*/);
194 }
195
196 public virtual UInt32 options() {
197// test csout
198 /*SIMPLETYPE*/
199 UInt32 ret = GlobalsPINVOKE.OdGiMetafiler_options(swigCPtr);
201 return ret;
202 }
203
204 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
205 string ret = GlobalsPINVOKE.OdGiMetafiler_getRealClassName(ptr /*SIMPLETYPE*/);
207 return ret;
208 }
209
214 public virtual uint vb_options() { return this.options(); }
215
216 public enum CoordType {
217 kUnknown = 0,
218 kModel,
219 kWorld,
220 kEye,
221 kDevice
222 }
223
224 public enum EOptions {
225 kTextAsText = 1,
226 kNurbsAsNurbs = 2,
227 kPlineAsPline = 4,
229 }
230
231}
232
233}
static global::System.Exception Retrieve()
static bool OdGiMetafiler_saveTraits__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGiConveyorNode_input(HandleRef jarg1)
static int OdGiMetafiler_coordinatesType(HandleRef jarg1)
static bool OdGiMetafiler_saveTraits__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiMetafiler_exchangeMetafile(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiMetafiler_metafile(HandleRef jarg1)
static void delete_OdGiMetafiler(HandleRef jarg1)
static void OdGiMetafiler_add(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGiMetafiler_saveTraits__SWIG_3(HandleRef jarg1)
static global::System.IntPtr OdGiConveyorNode_output(HandleRef jarg1)
static IntPtr OdGiMetafiler_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdGiMetafiler_setOptions(HandleRef jarg1, UInt32 jarg2)
static void OdGiMetafiler_setDeviation__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiMetafiler_flush__SWIG_0(HandleRef jarg1, bool jarg2)
static void OdGiMetafiler_setDrawContext(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiMetafiler_isA(HandleRef jarg1)
static void OdGiMetafiler_setDeviation__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string OdGiMetafiler_getRealClassName(IntPtr jarg1)
static void OdGiMetafiler_flush__SWIG_1(HandleRef jarg1)
static UInt32 OdGiMetafiler_options(HandleRef jarg1)
static void OdGiMetafiler_setCoordinatesType(HandleRef jarg1, int jarg2)
static void OdGiMetafiler_setMetafile(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiMetafiler_cast(HandleRef jarg1)
static IntPtr OdGiMetafiler_createObject()
static IntPtr OdGiMetafiler_desc()
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGiGeometryMetafile obj)
override OdRxObject queryX(OdRxClass protocolClass)
override OdGiConveyorOutput output()
override OdRxClass isA()
virtual void setOptions(UInt32 options)
static OdGiMetafiler cast(OdRxObject pObj)
virtual void setDeviation(OdGiDeviation pDeviation)
override OdGiConveyorInput input()
virtual void add(OdGiGeometryMetafile.Record pRec)
virtual void setCoordinatesType(OdGiMetafiler.CoordType ct)
virtual bool saveTraits(OdGiSubEntityTraitsData entTraits, OdGiSubEntityTraitsData byBlockTraits)
virtual void setDrawContext(OdGiConveyorContext pDrawCtx)
virtual void setMetafile(OdGiGeometryMetafile pMetafile)
virtual void flush(bool bForceTraits)
static OdGiMetafiler createObject()
virtual OdGiMetafiler.CoordType coordinatesType()
virtual void setDeviation(OdGeDoubleArray deviations)
virtual void exchangeMetafile(OdGiGeometryMetafile pMetafile)
static string getRealClassName(IntPtr ptr)
static new OdRxClass desc()
override void Dispose(bool disposing)
virtual bool saveTraits(OdGiSubEntityTraitsData entTraits)
virtual OdGiGeometryMetafile metafile()
static HandleRef getCPtr(OdGiMetafiler obj)
virtual UInt32 options()
OdGiMetafiler(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdGiSubEntityTraitsData obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()