Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiDisplayStyle.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 OdGiDisplayStyle(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiDisplayStyle_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiDisplayStyle 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 static OdGiDisplayStyle cast(OdRxObject pObj) {// OdSmartPtr<OdGiDisplayStyle>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiDisplayStyle ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),ptr, true));
51 ret = (OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiDisplayStyle_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiDisplayStyle_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiDisplayStyle_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiDisplayStyle createObject() {// OdSmartPtr<OdGiDisplayStyle>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiDisplayStyle ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),ptr, true));
92 ret = (OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),ptr, true);
97 }
98
100 return ret;
101}
102
107
109 OdGiDisplayStyle ret = (OdGiDisplayStyle)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDisplayStyle),GlobalsPINVOKE.OdGiDisplayStyle_Assign(swigCPtr, OdGiDisplayStyle.getCPtr(style)),false); /*createInt 3_1*/
110
112 return ret;
113}
114
120
121 public virtual void setDisplaySettings(UInt32 nSettings) {
122 GlobalsPINVOKE.OdGiDisplayStyle_setDisplaySettings(swigCPtr, nSettings /*SIMPLETYPE*/);
124 }
125
130
131 public virtual UInt32 displaySettings() {
132// test csout
133 /*SIMPLETYPE*/
134 UInt32 ret = GlobalsPINVOKE.OdGiDisplayStyle_displaySettings(swigCPtr);
136 return ret;
137 }
138
144
149
150 public virtual double brightness() {
151 double ret = GlobalsPINVOKE.OdGiDisplayStyle_brightness(swigCPtr);
153 return ret;
154 }
155
160
166
167 protected static string getRealClassName(IntPtr ptr) {
168 string ret = GlobalsPINVOKE.OdGiDisplayStyle_getRealClassName(ptr /*SIMPLETYPE*/);
170 return ret;
171 }
172
178
183 public virtual uint vb_displaySettings() { return this.displaySettings(); }
184
185 [System.Flags] public enum DisplaySettings {
186 kNone = 0x00,
187 kBackgrounds = 0x01,
188 kLights = 0x02,
189 kMaterials = 0x04,
190 kTextures = 0x08
191 }
192
193 public enum ShadowType {
194 kShadowsNone = 0,
196 kShadowsFull = 2,
198 }
199
200}
201
202}
static global::System.Exception Retrieve()
static IntPtr OdGiDisplayStyle_isA(HandleRef jarg1)
static void OdGiDisplayStyle_setDisplaySettingsFlag(HandleRef jarg1, int jarg2, bool jarg3)
static string OdGiDisplayStyle_getRealClassName(IntPtr jarg1)
static void OdGiDisplayStyle_setBrightness(HandleRef jarg1, double jarg2)
static double OdGiDisplayStyle_brightness(HandleRef jarg1)
static IntPtr OdGiDisplayStyle_Assign(HandleRef jarg1, HandleRef jarg2)
static UInt32 OdGiDisplayStyle_displaySettings(HandleRef jarg1)
static void OdGiDisplayStyle_setShadowType(HandleRef jarg1, int jarg2)
static void delete_OdGiDisplayStyle(HandleRef jarg1)
static bool OdGiDisplayStyle_IsEqual(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiDisplayStyle_createObject()
static bool OdGiDisplayStyle_isDisplaySettingsFlagSet(HandleRef jarg1, int jarg2)
static IntPtr OdGiDisplayStyle_desc()
static void OdGiDisplayStyle_set(HandleRef jarg1, HandleRef jarg2)
static void OdGiDisplayStyle_setDisplaySettings(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdGiDisplayStyle_cast(HandleRef jarg1)
static int OdGiDisplayStyle_shadowType(HandleRef jarg1)
static IntPtr OdGiDisplayStyle_queryX(HandleRef jarg1, HandleRef jarg2)
bool IsEqual(OdGiDisplayStyle style)
virtual void setBrightness(double value)
static OdGiDisplayStyle cast(OdRxObject pObj)
virtual OdGiDisplayStyle.ShadowType shadowType()
static HandleRef getCPtr(OdGiDisplayStyle obj)
virtual Teigha.Core.OdGiDisplayStyle.ShadowType vb_shadowType()
virtual bool isDisplaySettingsFlagSet(OdGiDisplayStyle.DisplaySettings flag)
virtual void setDisplaySettings(UInt32 nSettings)
virtual void setShadowType(OdGiDisplayStyle.ShadowType type)
OdGiDisplayStyle(IntPtr cPtr, bool cMemoryOwn)
virtual void setDisplaySettingsFlag(OdGiDisplayStyle.DisplaySettings flag, bool bEnable)
static new OdRxClass desc()
override OdRxObject queryX(OdRxClass protocolClass)
override void Dispose(bool disposing)
static OdGiDisplayStyle createObject()
static string getRealClassName(IntPtr ptr)
OdGiDisplayStyle Assign(OdGiDisplayStyle style)
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