Extended .NET SDK Documentation 2025 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 new OdGeRuled copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeRuled_copy(swigCPtr);
44 OdGeRuled ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeRuled(cPtr, false);
46 return ret;
47 }
48
54
55 public new OdGeRuled translateBy(OdGeVector3d translateVec) {
56 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_translateBy(swigCPtr, OdGeVector3d.getCPtr(translateVec)), false);
58 return ret;
59 }
60
61 public new OdGeRuled rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint) {
62 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_rotateBy__SWIG_0(swigCPtr, angle, OdGeVector3d.getCPtr(vect), OdGePoint3d.getCPtr(basePoint)), false);
64 return ret;
65 }
66
67 public new OdGeRuled rotateBy(double angle, OdGeVector3d vect) {
68 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_rotateBy__SWIG_1(swigCPtr, angle, OdGeVector3d.getCPtr(vect)), false);
70 return ret;
71 }
72
78
79 public new OdGeRuled scaleBy(double scaleFactor, OdGePoint3d basePoint) {
80 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint3d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeRuled scaleBy(double scaleFactor) {
86 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGeRuled() : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_0(), true) {
93 }
94
95 public OdGeRuled(OdGeCurve3d pProfileCurve1, OdGeCurve3d pProfileCurve2) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_1(OdGeCurve3d.getCPtr(pProfileCurve1), OdGeCurve3d.getCPtr(pProfileCurve2)), true) {
97 }
98
99 public OdGeRuled(OdGeCurve3d pProfileCurve1, OdGePoint3d pPoint2) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_2(OdGeCurve3d.getCPtr(pProfileCurve1), OdGePoint3d.getCPtr(pPoint2)), true) {
101 }
102
103 public OdGeRuled(OdGePoint3d pPoint1, OdGeCurve3d pProfileCurve2) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_3(OdGePoint3d.getCPtr(pPoint1), OdGeCurve3d.getCPtr(pProfileCurve2)), true) {
105 }
106
107 public OdGeRuled(OdGeRuled ruled) : this(GlobalsPINVOKE.new_OdGeRuled__SWIG_4(OdGeRuled.getCPtr(ruled)), true) {
109 }
110
111 public void set(OdGeCurve3d pProfileCurve1, OdGeCurve3d pProfileCurve2) {
112 GlobalsPINVOKE.OdGeRuled_set__SWIG_0(swigCPtr, OdGeCurve3d.getCPtr(pProfileCurve1), OdGeCurve3d.getCPtr(pProfileCurve2));
114 }
115
116 public void set(OdGeCurve3d pProfileCurve1, OdGePoint3d pPoint2) {
117 GlobalsPINVOKE.OdGeRuled_set__SWIG_1(swigCPtr, OdGeCurve3d.getCPtr(pProfileCurve1), OdGePoint3d.getCPtr(pPoint2));
119 }
120
121 public void set(OdGePoint3d pPoint1, OdGeCurve3d pProfileCurve2) {
122 GlobalsPINVOKE.OdGeRuled_set__SWIG_2(swigCPtr, OdGePoint3d.getCPtr(pPoint1), OdGeCurve3d.getCPtr(pProfileCurve2));
124 }
125
126 public OdGeRuled Assign(OdGeRuled extSurf) {
127 OdGeRuled ret = new OdGeRuled(GlobalsPINVOKE.OdGeRuled_Assign(swigCPtr, OdGeRuled.getCPtr(extSurf)), false);
129 return ret;
130 }
131
132 public OdResult getProfileCurve(byte iIndex, out OdGeCurve3d pProfileCurve) {
133IntPtr p_pProfileCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
134 try {
135 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeRuled_getProfileCurve(swigCPtr, iIndex /*SIMPLETYPE*/, out p_pProfileCurve);
137 return ret;
138 } finally {
139MemoryTransaction mTrans_pProfileCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
140 if(mTrans_pProfileCurve != null)
141 mTrans_pProfileCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pProfileCurve, true));
142 pProfileCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pProfileCurve, mTrans_pProfileCurve == null);
143 /*OUT_PARAM_OBJ POST*/
144 }
145 }
146
147 public OdResult getPoint(byte iIndex, OdGePoint3d point) {
148 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeRuled_getPoint(swigCPtr, iIndex /*SIMPLETYPE*/, OdGePoint3d.getCPtr(point));
150 return ret;
151 }
152
153 public new bool setEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV) {
154 bool ret = GlobalsPINVOKE.OdGeRuled_setEnvelope(swigCPtr, OdGeInterval.getCPtr(intrvlU), OdGeInterval.getCPtr(intrvlV));
156 return ret;
157 }
158
163
169
175
180 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
181
182}
183
184}
static global::System.Exception Retrieve()
static bool OdGeRuled_hasFirstProfilePoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeRuled_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
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 global::System.IntPtr OdGeRuled_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeRuled_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeRuled_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeRuled_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeRuled_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
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 global::System.IntPtr OdGeRuled_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeRuled_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeRuled_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
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)
static HandleRef getCPtr(OdGeInterval obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePlane obj)
Definition OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint3d obj)
Teigha.Core.OdGe.EntityId vb_type()
Definition OdGeRuled.cs:180
OdGeRuled(OdGeCurve3d pProfileCurve1, OdGePoint3d pPoint2)
Definition OdGeRuled.cs:99
new OdGeRuled rotateBy(double angle, OdGeVector3d vect)
Definition OdGeRuled.cs:67
OdResult getProfileCurve(byte iIndex, out OdGeCurve3d pProfileCurve)
Definition OdGeRuled.cs:132
new OdGeRuled mirror(OdGePlane plane)
Definition OdGeRuled.cs:73
OdResult getPoint(byte iIndex, OdGePoint3d point)
Definition OdGeRuled.cs:147
OdGeRuled Assign(OdGeRuled extSurf)
Definition OdGeRuled.cs:126
new OdGeRuled transformBy(OdGeMatrix3d xfm)
Definition OdGeRuled.cs:49
OdGeRuled(OdGeRuled ruled)
Definition OdGeRuled.cs:107
new OdGeRuled scaleBy(double scaleFactor, OdGePoint3d basePoint)
Definition OdGeRuled.cs:79
override void Dispose(bool disposing)
Definition OdGeRuled.cs:29
new void getEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV)
Definition OdGeRuled.cs:159
new OdGeRuled scaleBy(double scaleFactor)
Definition OdGeRuled.cs:85
new bool setEnvelope(OdGeInterval intrvlU, OdGeInterval intrvlV)
Definition OdGeRuled.cs:153
OdGeRuled(OdGeCurve3d pProfileCurve1, OdGeCurve3d pProfileCurve2)
Definition OdGeRuled.cs:95
static HandleRef getCPtr(OdGeRuled obj)
Definition OdGeRuled.cs:25
new OdGeRuled copy()
Definition OdGeRuled.cs:42
OdGeRuled(OdGePoint3d pPoint1, OdGeCurve3d pProfileCurve2)
Definition OdGeRuled.cs:103
new OdGeRuled rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint)
Definition OdGeRuled.cs:61
OdGeRuled(IntPtr cPtr, bool cMemoryOwn)
Definition OdGeRuled.cs:20
new OdGeRuled translateBy(OdGeVector3d translateVec)
Definition OdGeRuled.cs:55
static HandleRef getCPtr(OdGeVector3d obj)