Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeRuled.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 OdGeRuled : OdGeSurface {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGeRuled(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeRuled_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeRuled obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public OdGeRuled() : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_0(), true) {
44 }
45
46 public OdGeRuled(OdGeCurve3d pProfileCurve1, OdGeCurve3d pProfileCurve2) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_1(OdGeCurve3d.getCPtr(pProfileCurve1), OdGeCurve3d.getCPtr(pProfileCurve2)), true) {
48 }
49
50 public OdGeRuled(OdGeCurve3d pProfileCurve1, OdGePoint3d pPoint2) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_2(OdGeCurve3d.getCPtr(pProfileCurve1), OdGePoint3d.getCPtr(pPoint2)), true) {
52 }
53
54 public OdGeRuled(OdGePoint3d pPoint1, OdGeCurve3d pProfileCurve2) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_3(OdGePoint3d.getCPtr(pPoint1), OdGeCurve3d.getCPtr(pProfileCurve2)), true) {
56 }
57
58 public OdGeRuled(OdGeRuled ruled) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_4(OdGeRuled.getCPtr(ruled)), true) {
60 }
61
62 public void set(OdGeCurve3d pProfileCurve1, OdGeCurve3d pProfileCurve2) {
63 GlobalsPINVOKE.OdGeRuled_set__SWIG_0(swigCPtr, OdGeCurve3d.getCPtr(pProfileCurve1), OdGeCurve3d.getCPtr(pProfileCurve2));
65 }
66
67 public void set(OdGeCurve3d pProfileCurve1, OdGePoint3d pPoint2) {
70 }
71
72 public void set(OdGePoint3d pPoint1, OdGeCurve3d pProfileCurve2) {
75 }
76
77 public OdGeRuled Assign(OdGeRuled extSurf) {
78 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_Assign(swigCPtr, OdGeRuled.getCPtr(extSurf)), false);
80 return ret;
81 }
82
83 public OdResult getProfileCurve(byte /*SIMPLETYPE*/ iIndex, out OdGeCurve3d pProfileCurve) {
84IntPtr p_pProfileCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
85 try {
86 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeRuled_getProfileCurve(swigCPtr, iIndex /*SIMPLETYPE*/, out p_pProfileCurve);
88 return ret;
89 } finally {
90MemoryTransaction mTrans_pProfileCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
91 if(mTrans_pProfileCurve != null)
92 mTrans_pProfileCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pProfileCurve, true));
93 pProfileCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pProfileCurve, mTrans_pProfileCurve == null);
94 /*OUT_PARAM_OBJ POST*/
95 }
96 }
97
98 public OdResult getPoint(byte /*SIMPLETYPE*/ iIndex, OdGePoint3d point) {
99 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeRuled_getPoint(swigCPtr, iIndex /*SIMPLETYPE*/, OdGePoint3d.getCPtr(point));
101 return ret;
102 }
103
104 public new bool setEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV) {
105 bool ret = GlobalsPINVOKE.OdGeRuled_setEnvelope(swigCPtr, OdGeInterval.getCPtr(intrvlU), OdGeInterval.getCPtr(intrvlV));
107 return ret;
108 }
109
110 public new void getEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV) {
113 }
114
115 public bool hasFirstProfilePoint() {
118 return ret;
119 }
120
121 public bool hasSecondProfilePoint() {
124 return ret;
125 }
126
131 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
132
133}
134
135}
static global::System.Exception Retrieve()
static bool OdGeRuled_hasFirstProfilePoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeRuled_hasSecondProfilePoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeRuled(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeRuled_getPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeRuled_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static bool OdGeRuled_setEnvelope(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeRuled_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeRuled_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static void OdGeRuled_getEnvelope(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdGeRuled_getProfileCurve(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, out IntPtr jarg3)
static global::System.IntPtr OdGeRuled_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGeCurve3d obj)
Definition: OdGeCurve3d.cs:25
OdGe.EntityId type()
Definition: OdGeEntity3d.cs:57
static HandleRef getCPtr(OdGeInterval obj)
Definition: OdGeInterval.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
Teigha.Core.OdGe.EntityId vb_type()
Definition: OdGeRuled.cs:131
bool hasSecondProfilePoint()
Definition: OdGeRuled.cs:121
OdGeRuled(OdGeCurve3d pProfileCurve1, OdGePoint3d pPoint2)
Definition: OdGeRuled.cs:50
bool hasFirstProfilePoint()
Definition: OdGeRuled.cs:115
OdResult getProfileCurve(byte iIndex, out OdGeCurve3d pProfileCurve)
Definition: OdGeRuled.cs:83
OdResult getPoint(byte iIndex, OdGePoint3d point)
Definition: OdGeRuled.cs:98
OdGeRuled Assign(OdGeRuled extSurf)
Definition: OdGeRuled.cs:77
OdGeRuled(OdGeRuled ruled)
Definition: OdGeRuled.cs:58
override void Dispose(bool disposing)
Definition: OdGeRuled.cs:29
new void getEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV)
Definition: OdGeRuled.cs:110
new bool setEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV)
Definition: OdGeRuled.cs:104
OdGeRuled(OdGeCurve3d pProfileCurve1, OdGeCurve3d pProfileCurve2)
Definition: OdGeRuled.cs:46
static HandleRef getCPtr(OdGeRuled obj)
Definition: OdGeRuled.cs:25
OdGeRuled(OdGePoint3d pPoint1, OdGeCurve3d pProfileCurve2)
Definition: OdGeRuled.cs:54
OdGeRuled(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGeRuled.cs:20