Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgDisplayStyleContextData.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.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDgDisplayStyleContextData : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDgDisplayStyleContextData(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDgDisplayStyleContextData obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdDgDisplayStyleContextData() : this(TG_DbPINVOKE.new_OdDgDisplayStyleContextData(), true) {
54 }
55
56 public virtual bool getTrueColor(OdDgDatabase pDb, OdDgCmEntityColor trueColor) {
59 return ret;
60 }
61
62 public virtual void setColorIndex(UInt32 /*SIMPLETYPE*/ uColorIndex) {
63 TG_DbPINVOKE.OdDgDisplayStyleContextData_setColorIndex(swigCPtr, uColorIndex /*SIMPLETYPE*/);
65 }
66
67 public virtual bool getLineStyle(out UInt32 /*SIMPLETYPE*/ uLineStyle) {
68 bool ret = TG_DbPINVOKE.OdDgDisplayStyleContextData_getLineStyle(swigCPtr, out uLineStyle);
70 return ret;
71 }
72
73 public virtual void setLineStyle(UInt32 /*SIMPLETYPE*/ uLineStyle) {
74 TG_DbPINVOKE.OdDgDisplayStyleContextData_setLineStyle(swigCPtr, uLineStyle /*SIMPLETYPE*/);
76 }
77
78 public virtual bool getLineWeight(out UInt32 /*SIMPLETYPE*/ uLineWeight) {
79 bool ret = TG_DbPINVOKE.OdDgDisplayStyleContextData_getLineWeight(swigCPtr, out uLineWeight);
81 return ret;
82 }
83
84 public virtual void setLineWeight(UInt32 /*SIMPLETYPE*/ uLineWeight) {
85 TG_DbPINVOKE.OdDgDisplayStyleContextData_setLineWeight(swigCPtr, uLineWeight /*SIMPLETYPE*/);
87 }
88
89 public virtual bool getTransparency(OdCmTransparency dTransparency) {
92 return ret;
93 }
94
95 public virtual void setTransparency(OdCmTransparency dTransparency) {
98 }
99
100 public virtual bool getMaterial(OdDgElementId idMaterial) {
103 return ret;
104 }
105
106 public virtual void setMaterial(OdDgElementId idMaterial) {
109 }
110
111 public virtual void clearColorFlag() {
114 }
115
116 public virtual void clearLineStyleFlag() {
119 }
120
121 public virtual void clearLineWeightFlag() {
124 }
125
126 public virtual void clearTransparencyFlag() {
129 }
130
131 public virtual void clearMaterialFlag() {
134 }
135
136 public virtual void clearAllFlags() {
139 }
140
141 public virtual void initFromDisplayStyle(OdDgDatabase pDb, OdDgElementId idDisplayStyle) {
144 }
145
146}
147
148}
static HandleRef getCPtr(OdCmTransparency obj)
static HandleRef getCPtr(OdDgCmEntityColor obj)
static HandleRef getCPtr(OdDgDatabase obj)
Definition: OdDgDatabase.cs:26
virtual bool getTrueColor(OdDgDatabase pDb, OdDgCmEntityColor trueColor)
virtual void setMaterial(OdDgElementId idMaterial)
virtual bool getLineWeight(out UInt32 uLineWeight)
virtual bool getTransparency(OdCmTransparency dTransparency)
virtual void initFromDisplayStyle(OdDgDatabase pDb, OdDgElementId idDisplayStyle)
OdDgDisplayStyleContextData(IntPtr cPtr, bool cMemoryOwn)
virtual bool getMaterial(OdDgElementId idMaterial)
virtual void setTransparency(OdCmTransparency dTransparency)
virtual void setLineStyle(UInt32 uLineStyle)
virtual void setColorIndex(UInt32 uColorIndex)
static HandleRef getCPtr(OdDgDisplayStyleContextData obj)
virtual bool getLineStyle(out UInt32 uLineStyle)
virtual void setLineWeight(UInt32 uLineWeight)
static HandleRef getCPtr(OdDgElementId obj)
static global::System.Exception Retrieve()
static void OdDgDisplayStyleContextData_clearTransparencyFlag(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDisplayStyleContextData_setLineStyle(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdDgDisplayStyleContextData_clearColorFlag(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdDgDisplayStyleContextData(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDisplayStyleContextData_setMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgDisplayStyleContextData_clearLineWeightFlag(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDisplayStyleContextData_clearMaterialFlag(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgDisplayStyleContextData_getLineStyle(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static void OdDgDisplayStyleContextData_initFromDisplayStyle(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDgDisplayStyleContextData_getMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgDisplayStyleContextData_setColorIndex(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdDgDisplayStyleContextData_getTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgDisplayStyleContextData_getTrueColor(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgDisplayStyleContextData_setLineWeight(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdDgDisplayStyleContextData_clearAllFlags(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgDisplayStyleContextData_getLineWeight(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static void OdDgDisplayStyleContextData_setTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgDisplayStyleContextData_clearLineStyleFlag(global::System.Runtime.InteropServices.HandleRef jarg1)