Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiLayerTraitsData.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 OdGiLayerTraitsData : 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 OdGiLayerTraitsData(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(OdGiLayerTraitsData 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 OdGiLayerTraitsData() : this(GlobalsPINVOKE.new_OdGiLayerTraitsData(), true) {
53 }
54
60
61 public UInt32 flags() {
62// test csout
63 /*SIMPLETYPE*/
64 UInt32 ret = GlobalsPINVOKE.OdGiLayerTraitsData_flags(swigCPtr);
66 return ret;
67 }
68
74
75 public OdDbStub linetype() {
76 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_linetype(swigCPtr);
77 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
79 return ret;
80 }
81
87
89 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_plotStyleNameId(swigCPtr);
90 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
92 return ret;
93 }
94
100
102 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_materialId(swigCPtr);
103 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
105 return ret;
106 }
107
113
118
123
128
133
138
139 public bool isOff() {
140 bool ret = GlobalsPINVOKE.OdGiLayerTraitsData_isOff(swigCPtr);
142 return ret;
143 }
144
149
155
160
161 public bool isLocked() {
162 bool ret = GlobalsPINVOKE.OdGiLayerTraitsData_isLocked(swigCPtr);
164 return ret;
165 }
166
171
172 public bool isFrozen() {
173 bool ret = GlobalsPINVOKE.OdGiLayerTraitsData_isFrozen(swigCPtr);
175 return ret;
176 }
177
183
184 public UInt32 m_flags {
185 set {
186 /*SIMPLETYPE*/
187 GlobalsPINVOKE.OdGiLayerTraitsData_m_flags_set(swigCPtr, value /*SIMPLETYPE*/);
189 }
190 get {
191 /*SIMPLETYPE*/
192 UInt32 ret = GlobalsPINVOKE.OdGiLayerTraitsData_m_flags_get(swigCPtr);
194 return ret;
195 }
196 }
197
209
221
223 set {
226 }
227 get {
228 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_m_color_get(swigCPtr);
229 OdCmEntityColor ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdCmEntityColor(cPtr, false);
231 return ret;
232 }
233 }
234
236 set {
239 }
240 get {
241 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_m_linetypeId_get(swigCPtr);
242 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
244 return ret;
245 }
246 }
247
249 set {
252 }
253 get {
254 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_m_plotStyleNameId_get(swigCPtr);
255 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
257 return ret;
258 }
259 }
260
262 set {
265 }
266 get {
267 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_m_materialId_get(swigCPtr);
268 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
270 return ret;
271 }
272 }
273
275 set {
278 }
279 get {
280 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiLayerTraitsData_m_cmTransparency_get(swigCPtr);
281 OdCmTransparency ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdCmTransparency(cPtr, false);
283 return ret;
284 }
285 }
286
291 public uint vb_flags() { return this.flags(); }
292
297 public Teigha.Core.OdDbStub vb_linetype() { return this.linetype(); }
298
304
310
311}
312
313}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGiLayerTraitsData_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdGiLayerTraitsData_plotStyleNameType(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_setOff(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiLayerTraitsData_m_flags_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdGiLayerTraitsData_isOff(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiLayerTraitsData_m_plotStyleNameId_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiLayerTraitsData_isByBlock(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_m_materialId_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiLayerTraitsData_setPlottable(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiLayerTraitsData_m_linetypeId_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGiLayerTraitsData_linetype(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_setLineweight(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGiLayerTraitsData_materialId(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_m_lineweight_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdGiLayerTraitsData_setLinetype(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiLayerTraitsData_m_plotStyleNameId_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiLayerTraitsData_setTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdGiLayerTraitsData_m_plotStyleNameType_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiLayerTraitsData_isLocked(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_m_cmTransparency_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGiLayerTraitsData_m_color_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiLayerTraitsData_transparency(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiLayerTraitsData_plotStyleNameId(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_setTrueColor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdGiLayerTraitsData_flags(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdGiLayerTraitsData_m_flags_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiLayerTraitsData_trueColor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_setLocked(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdGiLayerTraitsData_isPlottable(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_setMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGiLayerTraitsData_m_linetypeId_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiLayerTraitsData_m_cmTransparency_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiLayerTraitsData_m_color_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiLayerTraitsData_m_plotStyleNameType_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int OdGiLayerTraitsData_lineweight(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiLayerTraitsData_m_materialId_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGiLayerTraitsData_m_lineweight_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGiLayerTraitsData(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiLayerTraitsData_isFrozen(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdCmTransparency obj)
static HandleRef getCPtr(OdDbStub obj)
Definition OdDbStub.cs:26
static HandleRef getCPtr(OdGiLayerTraitsData obj)
Teigha.Core.LineWeight vb_lineweight()
void setTransparency(OdCmTransparency transparency)
virtual void Dispose(bool disposing)
OdGiLayerTraitsData Assign(OdGiLayerTraitsData other)
OdGiLayerTraitsData(IntPtr cPtr, bool cMemoryOwn)
Teigha.Core.PlotStyleNameType vb_plotStyleNameType()
void setTrueColor(OdCmEntityColor cl)