Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdCmTransparency.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
16public class OdCmTransparency : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdCmTransparency(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdCmTransparency obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public OdCmTransparency() : this(GlobalsPINVOKE.new_OdCmTransparency__SWIG_0(), true) {
53 }
54
55 public OdCmTransparency(OdCmTransparency.transparencyMethod method) : this(GlobalsPINVOKE.new_OdCmTransparency__SWIG_1((int)method), true) {
57 }
58
59 public OdCmTransparency(byte /*SIMPLETYPE*/ alpha) : this(GlobalsPINVOKE.new_OdCmTransparency__SWIG_2(alpha /*SIMPLETYPE*/), true) {
61 }
62
63 public OdCmTransparency(double alphaPercent) : this(GlobalsPINVOKE.new_OdCmTransparency__SWIG_3(alphaPercent), true) {
65 }
66
67 public OdCmTransparency(OdCmTransparency transparency) : this(GlobalsPINVOKE.new_OdCmTransparency__SWIG_4(OdCmTransparency.getCPtr(transparency)), true) {
69 }
70
74 return ret;
75 }
76
77 public bool IsEqual(OdCmTransparency transparency) {
78 bool ret = GlobalsPINVOKE.OdCmTransparency_IsEqual(swigCPtr, OdCmTransparency.getCPtr(transparency));
80 return ret;
81 }
82
83 public bool IsNotEqual(OdCmTransparency transparency) {
84 bool ret = GlobalsPINVOKE.OdCmTransparency_IsNotEqual(swigCPtr, OdCmTransparency.getCPtr(transparency));
86 return ret;
87 }
88
89 public void setAlpha(byte /*SIMPLETYPE*/ alpha) {
90 GlobalsPINVOKE.OdCmTransparency_setAlpha(swigCPtr, alpha /*SIMPLETYPE*/);
92 }
93
94 public byte alpha() {
95// test csout
96 /*SIMPLETYPE*/
97 byte ret = GlobalsPINVOKE.OdCmTransparency_alpha(swigCPtr);
99 return ret;
100 }
101
102 public void setAlphaPercent(double alphaPercent) {
105 }
106
107 public double alphaPercent() {
108 double ret = GlobalsPINVOKE.OdCmTransparency_alphaPercent(swigCPtr);
110 return ret;
111 }
112
116 return ret;
117 }
118
122 }
123
124 public bool isByAlpha() {
125 bool ret = GlobalsPINVOKE.OdCmTransparency_isByAlpha(swigCPtr);
127 return ret;
128 }
129
130 public bool isByBlock() {
131 bool ret = GlobalsPINVOKE.OdCmTransparency_isByBlock(swigCPtr);
133 return ret;
134 }
135
136 public bool isByLayer() {
137 bool ret = GlobalsPINVOKE.OdCmTransparency_isByLayer(swigCPtr);
139 return ret;
140 }
141
142 public bool isInvalid() {
143 bool ret = GlobalsPINVOKE.OdCmTransparency_isInvalid(swigCPtr);
145 return ret;
146 }
147
148 public bool isClear() {
149 bool ret = GlobalsPINVOKE.OdCmTransparency_isClear(swigCPtr);
151 return ret;
152 }
153
154 public bool isSolid() {
155 bool ret = GlobalsPINVOKE.OdCmTransparency_isSolid(swigCPtr);
157 return ret;
158 }
159
160 public UInt32 serializeOut() {
161// test csout
162 /*SIMPLETYPE*/
163 UInt32 ret = GlobalsPINVOKE.OdCmTransparency_serializeOut(swigCPtr);
165 return ret;
166 }
167
168 public void serializeIn(UInt32 /*SIMPLETYPE*/ transparency) {
169 GlobalsPINVOKE.OdCmTransparency_serializeIn(swigCPtr, transparency /*SIMPLETYPE*/);
171 }
172
178
179 public enum transparencyMethod {
180 kByLayer = 0,
181 kByBlock = 1,
182 kByAlpha = 2,
183 kErrorValue = 3
184 }
185
186}
187
188}
static global::System.Exception Retrieve()
static global::System.IntPtr OdCmTransparency_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdCmTransparency_isSolid(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdCmTransparency_isByLayer(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdCmTransparency_isInvalid(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdCmTransparency_method(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdCmTransparency_setAlphaPercent(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static byte OdCmTransparency_alpha(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdCmTransparency_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdCmTransparency_serializeIn(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdCmTransparency_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdCmTransparency_setAlpha(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static void OdCmTransparency_setMethod(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdCmTransparency_isClear(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdCmTransparency_isByAlpha(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdCmTransparency(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdCmTransparency_alphaPercent(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdCmTransparency_serializeOut(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdCmTransparency_isByBlock(global::System.Runtime.InteropServices.HandleRef jarg1)
OdCmTransparency(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdCmTransparency obj)
bool IsEqual(OdCmTransparency transparency)
OdCmTransparency(double alphaPercent)
OdCmTransparency.transparencyMethod method()
OdCmTransparency(OdCmTransparency transparency)
void serializeIn(UInt32 transparency)
Teigha.Core.OdCmTransparency.transparencyMethod vb_method()
virtual void Dispose(bool disposing)
void setAlphaPercent(double alphaPercent)
bool IsNotEqual(OdCmTransparency transparency)
void setMethod(OdCmTransparency.transparencyMethod method)
OdCmTransparency Assign(OdCmTransparency transparency)
OdCmTransparency(OdCmTransparency.transparencyMethod method)