Extended .NET SDK Documentation 2025 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
58
59 public OdCmTransparency(byte 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 bool IsEqual(OdCmTransparency transparency) {
68 bool ret = GlobalsPINVOKE.OdCmTransparency_IsEqual(swigCPtr, OdCmTransparency.getCPtr(transparency));
70 return ret;
71 }
72
73 public bool IsNotEqual(OdCmTransparency transparency) {
74 bool ret = GlobalsPINVOKE.OdCmTransparency_IsNotEqual(swigCPtr, OdCmTransparency.getCPtr(transparency));
76 return ret;
77 }
78
83
84 public byte alpha() {
85// test csout
86 /*SIMPLETYPE*/
87 byte ret = GlobalsPINVOKE.OdCmTransparency_alpha(swigCPtr);
89 return ret;
90 }
91
96
97 public double alphaPercent() {
98 double ret = GlobalsPINVOKE.OdCmTransparency_alphaPercent(swigCPtr);
100 return ret;
101 }
102
108
113
114 public bool isByAlpha() {
115 bool ret = GlobalsPINVOKE.OdCmTransparency_isByAlpha(swigCPtr);
117 return ret;
118 }
119
120 public bool isByBlock() {
121 bool ret = GlobalsPINVOKE.OdCmTransparency_isByBlock(swigCPtr);
123 return ret;
124 }
125
126 public bool isByLayer() {
127 bool ret = GlobalsPINVOKE.OdCmTransparency_isByLayer(swigCPtr);
129 return ret;
130 }
131
132 public bool isInvalid() {
133 bool ret = GlobalsPINVOKE.OdCmTransparency_isInvalid(swigCPtr);
135 return ret;
136 }
137
138 public bool isClear() {
139 bool ret = GlobalsPINVOKE.OdCmTransparency_isClear(swigCPtr);
141 return ret;
142 }
143
144 public bool isSolid() {
145 bool ret = GlobalsPINVOKE.OdCmTransparency_isSolid(swigCPtr);
147 return ret;
148 }
149
150 public UInt32 serializeOut() {
151// test csout
152 /*SIMPLETYPE*/
153 UInt32 ret = GlobalsPINVOKE.OdCmTransparency_serializeOut(swigCPtr);
155 return ret;
156 }
157
158 public void serializeIn(UInt32 transparency) {
159 GlobalsPINVOKE.OdCmTransparency_serializeIn(swigCPtr, transparency /*SIMPLETYPE*/);
161 }
162
168
169 public enum transparencyMethod {
170 kByLayer = 0,
171 kByBlock = 1,
172 kByAlpha = 2,
173 kErrorValue = 3
174 }
175
176}
177
178}
static global::System.Exception Retrieve()
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()
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(OdCmTransparency.transparencyMethod method)