Extended .NET SDK Documentation 2025 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
109
110 public virtual OdGsView activeView() {// OdGsViewPtr
111 MemoryManager mMan = MemoryManager.GetMemoryManager();
112 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
113 IntPtr ptr = TD_DbPINVOKE.OdGsLayoutHelper_activeView(swigCPtr);
114
115 OdGsView ret = null;
116 if (null != mTrans)
117 {
118 mTrans.AddObject((OdGsView)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsView),ptr, true));
119 ret = (OdGsView)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsView),ptr, false);
120 }
121 else
122 {
123 ret = (OdGsView)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsView),ptr, true);
124 }
125
127 return ret;
128}
129
134
135 public virtual OdGsModel gsModel() {
136 OdGsModel ret = (OdGsModel)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsModel),TD_DbPINVOKE.OdGsLayoutHelper_gsModel(swigCPtr),false); /*createInt 3_2*/
137
139 return ret;
140}
141
142 public virtual OdGsDevice underlyingDevice() {// OdGsDevicePtr
143 MemoryManager mMan = MemoryManager.GetMemoryManager();
144 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
145 IntPtr ptr = TD_DbPINVOKE.OdGsLayoutHelper_underlyingDevice(swigCPtr);
146
147 OdGsDevice ret = null;
148 if (null != mTrans)
149 {
150 mTrans.AddObject((OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsDevice),ptr, true));
151 ret = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsDevice),ptr, false);
152 }
153 else
154 {
155 ret = (OdGsDevice)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsDevice),ptr, true);
156 }
157
159 return ret;
160}
161
162 public virtual bool setActiveViewport(OdGePoint2d screenPt) {
165 return ret;
166 }
167
173
178
184
185 public virtual bool storeLayoutGsState(OdStreamBuf pStream, UInt32 nFlags) {
186 bool ret = TD_DbPINVOKE.OdGsLayoutHelper_storeLayoutGsState__SWIG_0(swigCPtr, OdStreamBuf.getCPtr(pStream), nFlags /*SIMPLETYPE*/);
188 return ret;
189 }
190
196
197 public static bool extractLayoutIdForGsState(OdStreamBuf pStream, OdDbDatabase pDb, OdDbObjectId layoutObjId, UInt32 nFlags) {
200 return ret;
201 }
202
208
209 public virtual bool restoreLayoutGsState(OdStreamBuf pStream, UInt32 nFlags) {
210 bool ret = TD_DbPINVOKE.OdGsLayoutHelper_restoreLayoutGsState__SWIG_0(swigCPtr, OdStreamBuf.getCPtr(pStream), nFlags /*SIMPLETYPE*/);
212 return ret;
213 }
214
220
221 protected static string getRealClassName(IntPtr ptr) {
222 string ret = TD_DbPINVOKE.OdGsLayoutHelper_getRealClassName(ptr /*SIMPLETYPE*/);
224 return ret;
225 }
226
231 public virtual Teigha.Core.OdRxDictionary vb_properties() { return this.properties(); }
232
233}
234
235}
static HandleRef getCPtr(OdGePoint2d obj)
OdGsDevice(IntPtr cPtr, bool cMemoryOwn)
Definition OdGsDevice.cs:20
virtual OdRxDictionary properties()
static HandleRef getCPtr(OdGsView obj)
Definition OdGsView.cs:25
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdStreamBuf obj)
static HandleRef getCPtr(OdDbDatabase obj)
static HandleRef getCPtr(OdDbObjectId obj)
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)