Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsLayoutHelper.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGsLayoutHelper(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdGsLayoutHelper_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGsLayoutHelper obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public static OdGsLayoutHelper cast(OdRxObject pObj) {// OdSmartPtr<OdGsLayoutHelper>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdGsLayoutHelper ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsLayoutHelper),ptr, true));
52 ret = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsLayoutHelper),ptr, false);
53 }
54 else
55 {
56 ret = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsLayoutHelper),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdGsLayoutHelper_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdGsLayoutHelper_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdGsLayoutHelper_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdGsLayoutHelper createObject() {// OdSmartPtr<OdGsLayoutHelper>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdGsLayoutHelper ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsLayoutHelper),ptr, true));
93 ret = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsLayoutHelper),ptr, false);
94 }
95 else
96 {
97 ret = (OdGsLayoutHelper)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsLayoutHelper),ptr, true);
98 }
99
101 return ret;
102}
103
104 public virtual OdDbObjectId layoutId() {
105 MemoryManager mMan = MemoryManager.GetMemoryManager();
106 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
107 IntPtr ptr = TD_DbPINVOKE.OdGsLayoutHelper_layoutId(swigCPtr);
108
109 OdDbObjectId ret = null;
110 if (null != mTrans)
111 {
112 mTrans.AddObject(new OdDbObjectId(ptr, true));
113 ret = new OdDbObjectId(ptr, false);
114 }
115 else
116 {
117 ret = new OdDbObjectId(ptr, true);
118 }
119
121 return ret;
122}
123
124 public virtual OdGsView activeView() {// OdGsViewPtr
125 MemoryManager mMan = MemoryManager.GetMemoryManager();
126 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
127 IntPtr ptr = TD_DbPINVOKE.OdGsLayoutHelper_activeView(swigCPtr);
128
129 OdGsView ret = null;
130 if (null != mTrans)
131 {
132 mTrans.AddObject((OdGsView)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsView),ptr, true));
133 ret = (OdGsView)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsView),ptr, false);
134 }
135 else
136 {
137 ret = (OdGsView)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsView),ptr, true);
138 }
139
141 return ret;
142}
143
144 public virtual void makeViewActive(OdGsView pView) {
147 }
148
149 public virtual OdGsModel gsModel() {
150 OdGsModel ret = (OdGsModel)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsModel),TD_DbPINVOKE.OdGsLayoutHelper_gsModel(swigCPtr),false); /*createInt 3_2*/
151
153 return ret;
154}
155
156 public virtual OdGsDevice underlyingDevice() {// OdGsDevicePtr
157 MemoryManager mMan = MemoryManager.GetMemoryManager();
158 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
159 IntPtr ptr = TD_DbPINVOKE.OdGsLayoutHelper_underlyingDevice(swigCPtr);
160
161 OdGsDevice ret = null;
162 if (null != mTrans)
163 {
164 mTrans.AddObject((OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsDevice),ptr, true));
165 ret = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsDevice),ptr, false);
166 }
167 else
168 {
169 ret = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsDevice),ptr, true);
170 }
171
173 return ret;
174}
175
176 public virtual bool setActiveViewport(OdGePoint2d screenPt) {
179 return ret;
180 }
181
182 public virtual bool setActiveViewport(OdDbObjectId id) {
185 return ret;
186 }
187
188 public virtual void restoreGsViewDbLinkState() {
191 }
192
193 public virtual bool supportLayoutGsStateSaving() {
196 return ret;
197 }
198
199 public virtual bool storeLayoutGsState(OdStreamBuf pStream, UInt32 /*SIMPLETYPE*/ nFlags) {
200 bool ret = TD_DbPINVOKE.OdGsLayoutHelper_storeLayoutGsState__SWIG_0(swigCPtr, OdStreamBuf.getCPtr(pStream), nFlags /*SIMPLETYPE*/);
202 return ret;
203 }
204
205 public virtual bool storeLayoutGsState(OdStreamBuf pStream) {
208 return ret;
209 }
210
211 public static bool extractLayoutIdForGsState(OdStreamBuf pStream, OdDbDatabase pDb, OdDbObjectId layoutObjId, UInt32 /*SIMPLETYPE*/ nFlags) {
214 return ret;
215 }
216
217 public static bool extractLayoutIdForGsState(OdStreamBuf pStream, OdDbDatabase pDb, OdDbObjectId layoutObjId) {
220 return ret;
221 }
222
223 public virtual bool restoreLayoutGsState(OdStreamBuf pStream, UInt32 /*SIMPLETYPE*/ nFlags) {
224 bool ret = TD_DbPINVOKE.OdGsLayoutHelper_restoreLayoutGsState__SWIG_0(swigCPtr, OdStreamBuf.getCPtr(pStream), nFlags /*SIMPLETYPE*/);
226 return ret;
227 }
228
229 public virtual bool restoreLayoutGsState(OdStreamBuf pStream) {
232 return ret;
233 }
234
235 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
236 string ret = TD_DbPINVOKE.OdGsLayoutHelper_getRealClassName(ptr /*SIMPLETYPE*/);
238 return ret;
239 }
240
245 public virtual Teigha.Core.OdRxDictionary vb_properties() { return this.properties(); }
246
247}
248
249}
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
virtual OdRxDictionary properties()
Definition: OdGsDevice.cs:103
static HandleRef getCPtr(OdGsView obj)
Definition: OdGsView.cs:25
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdStreamBuf obj)
Definition: OdStreamBuf.cs:25
static HandleRef getCPtr(OdDbDatabase obj)
Definition: OdDbDatabase.cs:26
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static string getRealClassName(IntPtr ptr)
virtual OdGsDevice underlyingDevice()
override void Dispose(bool disposing)
virtual bool supportLayoutGsStateSaving()
virtual bool restoreLayoutGsState(OdStreamBuf pStream, UInt32 nFlags)
virtual OdGsView activeView()
static bool extractLayoutIdForGsState(OdStreamBuf pStream, OdDbDatabase pDb, OdDbObjectId layoutObjId)
virtual bool setActiveViewport(OdGePoint2d screenPt)
static OdGsLayoutHelper cast(OdRxObject pObj)
virtual bool setActiveViewport(OdDbObjectId id)
static bool extractLayoutIdForGsState(OdStreamBuf pStream, OdDbDatabase pDb, OdDbObjectId layoutObjId, UInt32 nFlags)
static OdGsLayoutHelper createObject()
virtual void restoreGsViewDbLinkState()
virtual OdDbObjectId layoutId()
static HandleRef getCPtr(OdGsLayoutHelper obj)
override OdRxClass isA()
virtual OdGsModel gsModel()
override OdRxObject queryX(OdRxClass protocolClass)
OdGsLayoutHelper(IntPtr cPtr, bool cMemoryOwn)
virtual void makeViewActive(OdGsView pView)
virtual Teigha.Core.OdRxDictionary vb_properties()
virtual bool storeLayoutGsState(OdStreamBuf pStream, UInt32 nFlags)
static new OdRxClass desc()
virtual bool restoreLayoutGsState(OdStreamBuf pStream)
virtual bool storeLayoutGsState(OdStreamBuf pStream)
static global::System.Exception Retrieve()
static bool OdGsLayoutHelper_storeLayoutGsState__SWIG_0(HandleRef jarg1, HandleRef jarg2, UInt32 jarg3)
static IntPtr OdGsLayoutHelper_gsModel(HandleRef jarg1)
static IntPtr OdGsLayoutHelper_underlyingDevice(HandleRef jarg1)
static bool OdGsLayoutHelper_extractLayoutIdForGsState__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGsLayoutHelper_setActiveViewport__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGsLayoutHelper_desc()
static void OdGsLayoutHelper_makeViewActive(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsLayoutHelper_isA(HandleRef jarg1)
static bool OdGsLayoutHelper_storeLayoutGsState__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsLayoutHelper_createObject()
static bool OdGsLayoutHelper_setActiveViewport__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGsLayoutHelper_layoutId(HandleRef jarg1)
static IntPtr OdGsLayoutHelper_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsLayoutHelper_cast(HandleRef jarg1)
static string OdGsLayoutHelper_getRealClassName(IntPtr jarg1)
static bool OdGsLayoutHelper_supportLayoutGsStateSaving(HandleRef jarg1)
static void OdGsLayoutHelper_restoreGsViewDbLinkState(HandleRef jarg1)
static void delete_OdGsLayoutHelper(HandleRef jarg1)
static bool OdGsLayoutHelper_restoreLayoutGsState__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static bool OdGsLayoutHelper_restoreLayoutGsState__SWIG_0(HandleRef jarg1, HandleRef jarg2, UInt32 jarg3)
static bool OdGsLayoutHelper_extractLayoutIdForGsState__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, UInt32 jarg4)
static IntPtr OdGsLayoutHelper_activeView(HandleRef jarg1)