14using System.Runtime.InteropServices;
17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 swigCPtr =
new HandleRef(
this, cPtr);
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
104 MemoryManager mMan = MemoryManager.GetMemoryManager();
105 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
197 MemoryManager mMan = MemoryManager.GetMemoryManager();
198 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
217 MemoryManager mMan = MemoryManager.GetMemoryManager();
218 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
237 MemoryManager mMan = MemoryManager.GetMemoryManager();
238 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
262 MemoryManager mMan = MemoryManager.GetMemoryManager();
263 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
356 if (ret_ptr == IntPtr.Zero)
358 int arrayLength = 257;
359 Int32[] ret_tmp_result =
new Int32[arrayLength];
360 Marshal.Copy(ret_ptr, ret_tmp_result, 0, arrayLength);
362 UInt32[] result =
Array.ConvertAll<Int32,UInt32>(ret_tmp_result,
new Converter<Int32, UInt32>((in_value) => {
return (UInt32)in_value; }));
368 IntPtr saved_pImage = tmp_pImage;
374if(tmp_pImage == IntPtr.Zero) pImage =
null;
375 if(tmp_pImage != IntPtr.Zero && tmp_pImage != saved_pImage)
377 MemoryTransaction mTrans_pImage = MemoryManager.GetMemoryManager().GetCurrentTransaction();
378 if(mTrans_pImage !=
null)
387 MemoryManager mMan = MemoryManager.GetMemoryManager();
388 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
407 MemoryManager mMan = MemoryManager.GetMemoryManager();
408 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
static global::System.Exception Retrieve()
static IntPtr OdGsDevice_cast(HandleRef jarg1)
static void OdGsDevice_onSize__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGsDevice_viewAt(HandleRef jarg1, int jarg2)
static IntPtr OdGsDevice_createView__SWIG_2(HandleRef jarg1)
static int OdGsDevice_numViews(HandleRef jarg1)
static void OdGsDevice_onRealizeForegroundPalette(HandleRef jarg1)
static IntPtr OdGsDevice_createView__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDevice_setUpdateManager(HandleRef jarg1, HandleRef jarg2)
static bool OdGsDevice_saveDeviceState(HandleRef jarg1, HandleRef jarg2)
static void OdGsDevice_getSize__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDevice_update__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDevice_invalidate__SWIG_0(HandleRef jarg1)
static void OdGsDevice_setLogicalPalette(HandleRef jarg1, [In, MarshalAs(UnmanagedType.LPArray)]UInt32[] jarg2, int jarg3)
static bool OdGsDevice_isModelCompatible(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsDevice_userGiContext(HandleRef jarg1)
static bool OdGsDevice_loadDeviceState(HandleRef jarg1, HandleRef jarg2)
static void OdGsDevice_setUserGiContext(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsDevice_desc()
static string OdGsDevice_getRealClassName(IntPtr jarg1)
static IntPtr OdGsDevice_createView__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static void OdGsDevice_addView(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsDevice_createModel(HandleRef jarg1)
static UInt32 OdGsDevice_getBackgroundColor(HandleRef jarg1)
static void delete_OdGsDevice(HandleRef jarg1)
static IntPtr OdGsDevice_getUpdateManager__SWIG_1(HandleRef jarg1)
static void OdGsDevice_eraseAllViews(HandleRef jarg1)
static IntPtr OdGsDevice_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsDevice_createObject()
static bool OdGsDevice_setBackgroundColor(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdGsDevice_properties(HandleRef jarg1)
static void OdGsDevice_invalidate__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDevice_onRealizeBackgroundPalette(HandleRef jarg1)
static void OdGsDevice_getSize__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGsDevice_getSnapShot(HandleRef jarg1, ref IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGsDevice_isA(HandleRef jarg1)
static void OdGsDevice_onDisplayChange(HandleRef jarg1, int jarg2, int jarg3, int jarg4)
static bool OdGsDevice_eraseView__SWIG_1(HandleRef jarg1, int jarg2)
static IntPtr OdGsDevice_getLogicalPalette(HandleRef jarg1, out int jarg2)
static void OdGsDevice_insertView(HandleRef jarg1, int jarg2, HandleRef jarg3)
static void OdGsDevice_onSize__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGsDevice_eraseView__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static bool OdGsDevice_isValid(HandleRef jarg1)
static void OdGsDevice_update__SWIG_1(HandleRef jarg1)
static IntPtr OdGsDevice_getUpdateManager__SWIG_0(HandleRef jarg1, bool jarg2)
static HandleRef getCPtr(OdGiContext obj)
static HandleRef getCPtr(OdGiRasterImage obj)
static HandleRef getCPtr(OdGsClientViewInfo obj)
static HandleRef getCPtr(OdGsDCRectDouble obj)
static HandleRef getCPtr(OdGsDCRect obj)
virtual bool isModelCompatible(OdGsModel pModel)
virtual void onSize(OdGsDCRectDouble outputRect)
virtual void onDisplayChange(int bitsPerPixel, int xPixels, int yPixels)
virtual void onRealizeForegroundPalette()
static string getRealClassName(IntPtr ptr)
virtual void onRealizeBackgroundPalette()
virtual OdGiContext userGiContext()
override void Dispose(bool disposing)
virtual bool setBackgroundColor(UInt32 backgroundColor)
virtual OdGsView viewAt(int viewIndex)
virtual Teigha.Core.OdRxDictionary vb_properties()
virtual OdGsView createView(OdGsClientViewInfo pViewInfo, bool enableLayerVisibilityPerView)
OdGsDevice(IntPtr cPtr, bool cMemoryOwn)
override OdRxObject queryX(OdRxClass protocolClass)
static new OdRxClass desc()
virtual OdGsUpdateManager getUpdateManager(bool createIfNotExist)
virtual bool saveDeviceState(OdGsFiler pFiler)
virtual bool eraseView(int viewIndex)
virtual OdRxDictionary properties()
virtual void setUpdateManager(OdGsUpdateManager pManager)
virtual bool eraseView(OdGsView pView)
virtual void getSnapShot(ref OdGiRasterImage pImage, OdGsDCRect region)
virtual void onSize(OdGsDCRect outputRect)
static OdGsDevice cast(OdRxObject pObj)
virtual void eraseAllViews()
virtual OdGsView createView()
virtual void invalidate(OdGsDCRect screenRect)
static OdGsDevice createObject()
virtual bool loadDeviceState(OdGsFiler pFiler)
virtual void getSize(OdGsDCRectDouble outputRect)
virtual OdGsModel createModel()
virtual UInt32 getBackgroundColor()
virtual void setLogicalPalette(UInt32[] logicalPalette, int numColors)
virtual void setUserGiContext(OdGiContext pUserGiContext)
static HandleRef getCPtr(OdGsDevice obj)
virtual void addView(OdGsView pView)
virtual OdGsUpdateManager getUpdateManager()
virtual void invalidate()
virtual void getSize(OdGsDCRect outputRect)
virtual void update(OdGsDCRect pUpdatedRect)
virtual void insertView(int viewIndex, OdGsView pView)
virtual UInt32[] getLogicalPalette(out int numColors)
virtual OdGsView createView(OdGsClientViewInfo pViewInfo)
static HandleRef getCPtr(OdGsFiler obj)
static HandleRef getCPtr(OdGsModel obj)
static HandleRef getCPtr(OdGsUpdateManager obj)
static HandleRef getCPtr(OdGsView obj)
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)