Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDgDetailingSymbol.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 OdDgDetailingSymbol : 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 OdDgDetailingSymbol(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(OdDgDetailingSymbol 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
57
58 public virtual UInt32 getLinkNodeCount() {
59// test csout
60 /*SIMPLETYPE*/
63 return ret;
64 }
65
66 public virtual OdDgLinkNode getLinkNode(UInt32 uIndex) {// OdDgLinkNodePtr
67 MemoryManager mMan = MemoryManager.GetMemoryManager();
68 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
69 IntPtr ptr = TG_DbPINVOKE.OdDgDetailingSymbol_getLinkNode(swigCPtr, uIndex /*SIMPLETYPE*/);
70
71 OdDgLinkNode ret = null;
72 if (null != mTrans)
73 {
74 mTrans.AddObject((OdDgLinkNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinkNode),ptr, true));
75 ret = (OdDgLinkNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinkNode),ptr, false);
76 }
77 else
78 {
79 ret = (OdDgLinkNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLinkNode),ptr, true);
80 }
81
83 return ret;
84}
85
90
91 public virtual void deleteLinkNode(UInt32 uIndex) {
92 TG_DbPINVOKE.OdDgDetailingSymbol_deleteLinkNode(swigCPtr, uIndex /*SIMPLETYPE*/);
94 }
95
100
106
107 public virtual void setAnnotationScaleFlag(bool bOn, double dAnnotationScale, bool bRescaleGeometry) {
108 TG_DbPINVOKE.OdDgDetailingSymbol_setAnnotationScaleFlag__SWIG_0(swigCPtr, bOn, dAnnotationScale, bRescaleGeometry);
110 }
111
112 public virtual void setAnnotationScaleFlag(bool bOn, double dAnnotationScale) {
115 }
116
121
122 public virtual double getAnnotationScale() {
125 return ret;
126 }
127
128 public virtual void setAnnotationScale(double dAnnotationScale, bool bRescaleGeometry) {
129 TG_DbPINVOKE.OdDgDetailingSymbol_setAnnotationScale__SWIG_0(swigCPtr, dAnnotationScale, bRescaleGeometry);
131 }
132
133 public virtual void setAnnotationScale(double dAnnotationScale) {
136 }
137
138 public enum Type {
139 kUnknownSymbol = 0,
140 kSectionMarker = 1,
141 kTitleText = 2,
142 kArrowMarker = 3,
143 kDetailMarker = 4,
145 }
146
147}
148
149}
virtual void applyTextStyle(OdDgElementId idTextStyle)
static HandleRef getCPtr(OdDgDetailingSymbol obj)
OdDgDetailingSymbol(IntPtr cPtr, bool cMemoryOwn)
virtual void deleteLinkNode(UInt32 uIndex)
virtual void setAnnotationScale(double dAnnotationScale)
virtual void setAnnotationScale(double dAnnotationScale, bool bRescaleGeometry)
virtual void setAnnotationScaleFlag(bool bOn, double dAnnotationScale, bool bRescaleGeometry)
virtual void addLinkNode(OdDgLinkNode pLinkNode)
virtual OdDgLinkNode getLinkNode(UInt32 uIndex)
virtual OdDgDetailingSymbol.Type getSymbolType()
virtual void setAnnotationScaleFlag(bool bOn)
virtual void Dispose(bool disposing)
virtual void setAnnotationScaleFlag(bool bOn, double dAnnotationScale)
static HandleRef getCPtr(OdDgElementId obj)
static global::System.Exception Retrieve()
static IntPtr OdDgDetailingSymbol_getLinkNode(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdDgDetailingSymbol_getAnnotationScaleFlag(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDetailingSymbol_setAnnotationScale__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdDgDetailingSymbol_getAnnotationScale(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDetailingSymbol_deleteLinkNode(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdDgDetailingSymbol_setAnnotationScale__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, bool jarg3)
static int OdDgDetailingSymbol_getSymbolType(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDetailingSymbol_addLinkNode(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdDgDetailingSymbol_setAnnotationScaleFlag__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, double jarg3)
static void delete_OdDgDetailingSymbol(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDetailingSymbol_applyTextStyle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgDetailingSymbol_setAnnotationScaleFlag__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, double jarg3, bool jarg4)
static UInt32 OdDgDetailingSymbol_getLinkNodeCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgDetailingSymbol_setAnnotationScaleFlag__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)