Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbGripData.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 OdDbGripData : 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 OdDbGripData(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(OdDbGripData 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 OdDbGripData() : this(GlobalsPINVOKE.new_OdDbGripData__SWIG_0(), true) {
53 }
54
58
60 OdDbGripData ret = Teigha.Core.Helpers.odCreateObjectInternal<OdDbGripData>(typeof(OdDbGripData), GlobalsPINVOKE.OdDbGripData_Assign(swigCPtr, OdDbGripData.getCPtr(arg0)), false);
61
63 return ret;
64}
65
72
77
78 public IntPtr appData() {
79// test csout
80 /*SIMPLETYPE*/
81 IntPtr ret = GlobalsPINVOKE.OdDbGripData_appData(swigCPtr);
83 return ret;
84 }
85
86 public void setAppData(IntPtr pAppData) {
87 GlobalsPINVOKE.OdDbGripData_setAppData(swigCPtr, pAppData /*SIMPLETYPE*/);
89 }
90
92 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdDbGripData_appDataOdRxClass(swigCPtr),false); /*createInt 3_2*/
93
95 return ret;
96}
97
102
103 public Globals.GripOperationPtrDelegate hotGripFunc() {
104 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout start*/
105 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_hotGripFunc(swigCPtr);
106
108 Globals.GripOperationPtrDelegate outDelegate = null;
109 if (nativeCallback != IntPtr.Zero)
110 {
111 outDelegate = (OdDbGripData pThis,OdDbStub entId,int iContextFlags) =>
112 {
113 Globals.GripOperationPtrDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripOperationPtrDelegateNative)) as Globals.GripOperationPtrDelegateNative;
114 ;
115 try
116 {
117 return (cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<OdDbGripData>(pThis),OdMarshalHelper.ObjectToPtr<OdDbStub>(entId),iContextFlags));
118 }
119 finally
120 {
121 ;
122 }
123 };
124 }
125 return outDelegate;
126 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout end*/
127 }
128
129 public void setHotGripFunc(Globals.GripOperationPtrDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
130/*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin start*/
131 Globals.GripOperationPtrDelegateNative pf_inDelegate = null;
132 if (pf != null)
133 {
134 pf_inDelegate = (IntPtr pThis,IntPtr entId,int iContextFlags) =>
135 {
136 ;
137 try
138 {
139 return (pf(OdMarshalHelper.PtrToObject<OdDbGripData>(pThis),OdMarshalHelper.PtrToObject<OdDbStub>(entId),iContextFlags));
140 }
141 finally
142 {
143 ;
144 }
145 };
146 }
147 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
148 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
149 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin end*/
150 try {
151 GlobalsPINVOKE.OdDbGripData_setHotGripFunc(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csin*/ );
153 } finally {
154//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN post csin*/
155 }
156 }
157
158 public Globals.GripOperationPtrDelegate hoverFunc() {
159 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout start*/
160 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_hoverFunc(swigCPtr);
161
163 Globals.GripOperationPtrDelegate outDelegate = null;
164 if (nativeCallback != IntPtr.Zero)
165 {
166 outDelegate = (OdDbGripData pThis,OdDbStub entId,int iContextFlags) =>
167 {
168 Globals.GripOperationPtrDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripOperationPtrDelegateNative)) as Globals.GripOperationPtrDelegateNative;
169 ;
170 try
171 {
172 return (cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<OdDbGripData>(pThis),OdMarshalHelper.ObjectToPtr<OdDbStub>(entId),iContextFlags));
173 }
174 finally
175 {
176 ;
177 }
178 };
179 }
180 return outDelegate;
181 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout end*/
182 }
183
184 public void setHoverFunc(Globals.GripOperationPtrDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
185/*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin start*/
186 Globals.GripOperationPtrDelegateNative pf_inDelegate = null;
187 if (pf != null)
188 {
189 pf_inDelegate = (IntPtr pThis,IntPtr entId,int iContextFlags) =>
190 {
191 ;
192 try
193 {
194 return (pf(OdMarshalHelper.PtrToObject<OdDbGripData>(pThis),OdMarshalHelper.PtrToObject<OdDbStub>(entId),iContextFlags));
195 }
196 finally
197 {
198 ;
199 }
200 };
201 }
202 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
203 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
204 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin end*/
205 try {
206 GlobalsPINVOKE.OdDbGripData_setHoverFunc(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csin*/ );
208 } finally {
209//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN post csin*/
210 }
211 }
212
213 public Globals.GripWorldDrawPtrDelegate worldDraw() {
214 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout start*/
215 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_worldDraw(swigCPtr);
216
218 Globals.GripWorldDrawPtrDelegate outDelegate = null;
219 if (nativeCallback != IntPtr.Zero)
220 {
221 outDelegate = (OdDbGripData pThis,OdGiWorldDraw pWd,OdDbStub entId,DrawType type,OdGePoint3d imageGripPoint,double dGripSize) =>
222 {
223 Globals.GripWorldDrawPtrDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripWorldDrawPtrDelegateNative)) as Globals.GripWorldDrawPtrDelegateNative;
224 ;
225 try
226 {
227 return (cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<OdDbGripData>(pThis),OdMarshalHelper.ObjectToPtr<OdGiWorldDraw>(pWd),OdMarshalHelper.ObjectToPtr<OdDbStub>(entId),type,OdMarshalHelper.ObjectToPtr<OdGePoint3d>(imageGripPoint),dGripSize));
228 }
229 finally
230 {
231 ;
232 }
233 };
234 }
235 return outDelegate;
236 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout end*/
237 }
238
239 public void setWorldDraw(Globals.GripWorldDrawPtrDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
240/*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin start*/
241 Globals.GripWorldDrawPtrDelegateNative pf_inDelegate = null;
242 if (pf != null)
243 {
244 pf_inDelegate = (IntPtr pThis,IntPtr pWd,IntPtr entId,DrawType type,IntPtr imageGripPoint,double dGripSize) =>
245 {
246 ;
247 try
248 {
249 return (pf(OdMarshalHelper.PtrToObject<OdDbGripData>(pThis),OdMarshalHelper.PtrToObject<OdGiWorldDraw>(pWd),OdMarshalHelper.PtrToObject<OdDbStub>(entId),type,OdMarshalHelper.PtrToObject<OdGePoint3d>(imageGripPoint),dGripSize));
250 }
251 finally
252 {
253 ;
254 }
255 };
256 }
257 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
258 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
259 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin end*/
260 try {
261 GlobalsPINVOKE.OdDbGripData_setWorldDraw(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csin*/ );
263 } finally {
264//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN post csin*/
265 }
266 }
267
268 public Globals.GripViewportDrawPtrDelegate viewportDraw() {
269 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csout start*/
270 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_viewportDraw(swigCPtr);
271
273 Globals.GripViewportDrawPtrDelegate outDelegate = null;
274 if (nativeCallback != IntPtr.Zero)
275 {
276 outDelegate = (OdDbGripData pThis,OdGiViewportDraw pWd,OdDbStub entId,DrawType type,OdGePoint3d imageGripPoint,int gripSize) =>
277 {
278 Globals.GripViewportDrawPtrDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripViewportDrawPtrDelegateNative)) as Globals.GripViewportDrawPtrDelegateNative;
279 ;
280 cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<OdDbGripData>(pThis),OdMarshalHelper.ObjectToPtr<OdGiViewportDraw>(pWd),OdMarshalHelper.ObjectToPtr<OdDbStub>(entId),type,OdMarshalHelper.ObjectToPtr<OdGePoint3d>(imageGripPoint),gripSize);
281 ;
282 };
283 }
284 return outDelegate;
285 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csout end*/
286 }
287
288 public void setViewportDraw(Globals.GripViewportDrawPtrDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
289/*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin start*/
290 Globals.GripViewportDrawPtrDelegateNative pf_inDelegate = null;
291 if (pf != null)
292 {
293 pf_inDelegate = (IntPtr pThis,IntPtr pWd,IntPtr entId,DrawType type,IntPtr imageGripPoint,int gripSize) =>
294 {
295 ;
296 try
297 {
298 pf(OdMarshalHelper.PtrToObject<OdDbGripData>(pThis),OdMarshalHelper.PtrToObject<OdGiViewportDraw>(pWd),OdMarshalHelper.PtrToObject<OdDbStub>(entId),type,OdMarshalHelper.PtrToObject<OdGePoint3d>(imageGripPoint),gripSize);
299 }
300 finally
301 {
302 ;
303 }
304 };
305 }
306 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
307 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
308 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin end*/
309 try {
310 GlobalsPINVOKE.OdDbGripData_setViewportDraw(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csin*/ );
312 } finally {
313//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN post csin*/
314 }
315 }
316
317 public Globals.GripOpStatusPtrDelegate gripOpStatFunc() {
318 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csout start*/
319 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_gripOpStatFunc(swigCPtr);
320
322 Globals.GripOpStatusPtrDelegate outDelegate = null;
323 if (nativeCallback != IntPtr.Zero)
324 {
325 outDelegate = (OdDbGripData pThis,OdDbStub entId,GripStatus status) =>
326 {
327 Globals.GripOpStatusPtrDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripOpStatusPtrDelegateNative)) as Globals.GripOpStatusPtrDelegateNative;
328 ;
329 cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<OdDbGripData>(pThis),OdMarshalHelper.ObjectToPtr<OdDbStub>(entId),status);
330 ;
331 };
332 }
333 return outDelegate;
334 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csout end*/
335 }
336
337 public void setGripOpStatFunc(Globals.GripOpStatusPtrDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
338/*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin start*/
339 Globals.GripOpStatusPtrDelegateNative pf_inDelegate = null;
340 if (pf != null)
341 {
342 pf_inDelegate = (IntPtr pThis,IntPtr entId,GripStatus status) =>
343 {
344 ;
345 try
346 {
347 pf(OdMarshalHelper.PtrToObject<OdDbGripData>(pThis),OdMarshalHelper.PtrToObject<OdDbStub>(entId),status);
348 }
349 finally
350 {
351 ;
352 }
353 };
354 }
355 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
356 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
357 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin end*/
358 try {
359 GlobalsPINVOKE.OdDbGripData_setGripOpStatFunc(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csin*/ );
361 } finally {
362//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN post csin*/
363 }
364 }
365
366 public Globals.GripToolTipPtrDelegate toolTipFunc() {
367 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout start*/
368 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_toolTipFunc(swigCPtr);
369
371 Globals.GripToolTipPtrDelegate outDelegate = null;
372 if (nativeCallback != IntPtr.Zero)
373 {
374 outDelegate = (OdDbGripData pThis) =>
375 {
376 Globals.GripToolTipPtrDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripToolTipPtrDelegateNative)) as Globals.GripToolTipPtrDelegateNative;
377 ;
378 try
379 {
380 return Marshal.PtrToStringUni(cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<OdDbGripData>(pThis)));
381 }
382 finally
383 {
384 ;
385 }
386 };
387 }
388 return outDelegate;
389 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout end*/
390 }
391
392 public void setToolTipFunc(Globals.GripToolTipPtrDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
393/*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin start*/
394 Globals.GripToolTipPtrDelegateNative pf_inDelegate = null;
395 if (pf != null)
396 {
397 pf_inDelegate = (IntPtr pThis) =>
398 {
399 ;
400 try
401 {
402 return Marshal.StringToCoTaskMemUni(pf(OdMarshalHelper.PtrToObject<OdDbGripData>(pThis)));
403 }
404 finally
405 {
406 ;
407 }
408 };
409 }
410 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
411 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
412 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin end*/
413 try {
414 GlobalsPINVOKE.OdDbGripData_setToolTipFunc(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csin*/ );
416 } finally {
417//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN post csin*/
418 }
419 }
420
422 global::System.IntPtr cPtr = GlobalsPINVOKE.OdDbGripData_alternateBasePoint(swigCPtr);
423 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
425 return ret;
426 }
427
432
433 public uint bitFlags() {
434 uint ret = GlobalsPINVOKE.OdDbGripData_bitFlags(swigCPtr);
436 return ret;
437 }
438
443
449
454
460
465
471
476
482
487
488 public bool triggerGrip() {
489 bool ret = GlobalsPINVOKE.OdDbGripData_triggerGrip(swigCPtr);
491 return ret;
492 }
493
498
499 public bool forcedPickOn() {
500 bool ret = GlobalsPINVOKE.OdDbGripData_forcedPickOn(swigCPtr);
502 return ret;
503 }
504
509
515
520
526
531
537
542
543 public Globals.GripRtClkHandlerDelegate rtClk() {
544 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout start*/
545 IntPtr nativeCallback = GlobalsPINVOKE.OdDbGripData_rtClk(swigCPtr);
546
548 Globals.GripRtClkHandlerDelegate outDelegate = null;
549 if (nativeCallback != IntPtr.Zero)
550 {
551 outDelegate = (OdDbGripDataArray hotGrips,OdDbStubPtrArray ents,ref String menuName,ref IntPtr menu,ref Globals.ContextMenuItemIndexPtrDelegate cb) =>
552 {
553 Globals.GripRtClkHandlerDelegateNative cPtr_NativeDelegate = Marshal.GetDelegateForFunctionPointer(nativeCallback, typeof(Globals.GripRtClkHandlerDelegateNative)) as Globals.GripRtClkHandlerDelegateNative;
554 IntPtr hotGrips_nativeTemp = OdDbGripDataArray.getCPtr(hotGrips).Handle;
555 IntPtr ents_nativeTemp = OdMarshalHelper.ObjectToPtr<OdDbStubPtrArray>(ents);
556 IntPtr menuName_nativeTemp = OdString2StringConvHelper.StringToOdString(menuName);
557 Globals.ContextMenuItemIndexPtrDelegate cb_csharpTemp = cb;
558 Globals.ContextMenuItemIndexPtrDelegateNative cb_nativeTemp = null;
559 if (cb_csharpTemp != null)
560 cb_nativeTemp = (UInt32 itemIndex) => { cb_csharpTemp(itemIndex); };
561 Globals.ContextMenuItemIndexPtrDelegateNative cb_native_old = cb_nativeTemp;
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577 try
578 {
579 return (cPtr_NativeDelegate(hotGrips_nativeTemp,ents_nativeTemp,menuName_nativeTemp,ref menu,ref cb_nativeTemp));
580 }
581 finally
582 {
583 menuName = OdString2StringConvHelper.OdStringToString(menuName_nativeTemp);
584 if (cb_native_old != cb_nativeTemp)
585 {
586 if (cb_nativeTemp != null)
587 cb = (UInt32 itemIndex) => { cb_nativeTemp(itemIndex); };
588 else
589 cb = null;
590 }
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606 }
607 };
608 }
609 return outDelegate;
610 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csout end*/
611 }
612
613 public void setRtClk(Globals.GripRtClkHandlerDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ pf) {
614/*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin start*/
615 Globals.GripRtClkHandlerDelegateNative pf_inDelegate = null;
616 if (pf != null)
617 {
618 pf_inDelegate = (IntPtr hotGrips,IntPtr ents,IntPtr menuName,ref IntPtr menu,ref Globals.ContextMenuItemIndexPtrDelegateNative cb) =>
619 {
620 OdDbGripDataArray hotGrips_csharpTemp = new OdDbGripDataArray(hotGrips,false);
621 OdDbStubPtrArray ents_csharpTemp = OdMarshalHelper.PtrToObject<OdDbStubPtrArray>(ents);
622 String menuName_csharpTemp = OdString2StringConvHelper.OdStringToString(menuName);
623 String menuName_csharpTemp_old = menuName_csharpTemp;
624 Globals.ContextMenuItemIndexPtrDelegateNative cb_nativeTemp = cb;
625 Globals.ContextMenuItemIndexPtrDelegate cb_csharpTemp = null;
626 if (cb_nativeTemp != null)
627 cb_csharpTemp = (UInt32 itemIndex) => { cb_nativeTemp(itemIndex); };
628 Globals.ContextMenuItemIndexPtrDelegate cb_csharp_old = cb_csharpTemp;
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646 try
647 {
648 return (pf(hotGrips_csharpTemp,ents_csharpTemp,ref menuName_csharpTemp,ref menu,ref cb_csharpTemp));
649 }
650 finally
651 {
652 if (menuName_csharpTemp_old != menuName_csharpTemp)
653 OdString2StringConvHelper.AssignStringToOdString(menuName, menuName_csharpTemp);
654 if (cb_csharp_old != cb_csharpTemp)
655 {
656 if (cb_csharpTemp != null)
657 cb = (UInt32 itemIndex) => { cb_csharpTemp(itemIndex); };
658 else
659 cb = null;
660 }
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678 }
679 };
680 }
681 IntPtr pf_ptr = (pf == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pf_inDelegate);
682 Teigha.Core.DelegateHolder.Add(pf_inDelegate);
683 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin end*/
684 try {
685 GlobalsPINVOKE.OdDbGripData_setRtClk(swigCPtr, pf_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csin*/ );
687 } finally {
688//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN post csin*/
689 }
690 }
691
692 protected static string getRealClassName(IntPtr ptr) {
693 string ret = GlobalsPINVOKE.OdDbGripData_getRealClassName(ptr /*SIMPLETYPE*/);
695 return ret;
696 }
697
698}
699
700}
delegate OdResult GripOperationPtrDelegate(OdDbGripData pThis, OdDbStub entId, int iContextFlags)
delegate void GripOpStatusPtrDelegate(OdDbGripData pThis, OdDbStub entId, GripStatus status)
delegate void GripViewportDrawPtrDelegate(OdDbGripData pThis, OdGiViewportDraw pWd, OdDbStub entId, DrawType type, OdGePoint3d imageGripPoint, int gripSize)
delegate void GripViewportDrawPtrDelegateNative(IntPtr pThis, IntPtr pWd, IntPtr entId, DrawType type, IntPtr imageGripPoint, int gripSize)
delegate OdResult GripOperationPtrDelegateNative(IntPtr pThis, IntPtr entId, int iContextFlags)
delegate void GripOpStatusPtrDelegateNative(IntPtr pThis, IntPtr entId, GripStatus status)
delegate IntPtr GripToolTipPtrDelegateNative(IntPtr pThis)
delegate bool GripWorldDrawPtrDelegate(OdDbGripData pThis, OdGiWorldDraw pWd, OdDbStub entId, DrawType type, OdGePoint3d imageGripPoint, double dGripSize)
delegate OdResult GripRtClkHandlerDelegate(OdDbGripDataArray hotGrips, OdDbStubPtrArray ents, ref String menuName, ref IntPtr menu, ref Globals.ContextMenuItemIndexPtrDelegate cb)
delegate OdResult GripRtClkHandlerDelegateNative(IntPtr hotGrips, IntPtr ents, IntPtr menuName, ref IntPtr menu, ref Globals.ContextMenuItemIndexPtrDelegateNative cb)
delegate string GripToolTipPtrDelegate(OdDbGripData pThis)
delegate bool GripWorldDrawPtrDelegateNative(IntPtr pThis, IntPtr pWd, IntPtr entId, DrawType type, IntPtr imageGripPoint, double dGripSize)
static global::System.Exception Retrieve()
static void OdDbGripData_disableRubberBandLine(HandleRef jarg1, bool jarg2)
static void OdDbGripData_setTriggerGrip(HandleRef jarg1, bool jarg2)
static void OdDbGripData_setForcedPickOn(HandleRef jarg1, bool jarg2)
static void OdDbGripData_setHoverFunc(HandleRef jarg1, IntPtr jarg2)
static IntPtr OdDbGripData_worldDraw(HandleRef jarg1)
static bool OdDbGripData_skipWhenShared(HandleRef jarg1)
static void OdDbGripData_setViewportDraw(HandleRef jarg1, IntPtr jarg2)
static bool OdDbGripData_drawAtDragImageGripPoint(HandleRef jarg1)
static void OdDbGripData_setGizmosEnabled(HandleRef jarg1, bool jarg2)
static bool OdDbGripData_gripIsPerViewport(HandleRef jarg1)
static global::System.IntPtr OdDbGripData_alternateBasePoint(HandleRef jarg1)
static IntPtr OdDbGripData_Assign(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbGripData_appData(HandleRef jarg1)
static void OdDbGripData_setGripIsPerViewport(HandleRef jarg1, bool jarg2)
static bool OdDbGripData_forcedPickOn(HandleRef jarg1)
static void OdDbGripData_setWorldDraw(HandleRef jarg1, IntPtr jarg2)
static void OdDbGripData_setHotGripFunc(HandleRef jarg1, IntPtr jarg2)
static void OdDbGripData_setGripPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbGripData_setSkipWhenShared(HandleRef jarg1, bool jarg2)
static void OdDbGripData_setAppData(HandleRef jarg1, IntPtr jarg2)
static void delete_OdDbGripData(HandleRef jarg1)
static void OdDbGripData_setToolTipFunc(HandleRef jarg1, IntPtr jarg2)
static void OdDbGripData_setDrawAtDragImageGripPoint(HandleRef jarg1, bool jarg2)
static IntPtr OdDbGripData_hoverFunc(HandleRef jarg1)
static void OdDbGripData_setAlternateBasePoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbGripData_gripPoint(HandleRef jarg1)
static IntPtr OdDbGripData_rtClk(HandleRef jarg1)
static bool OdDbGripData_areModeKeywordsDisabled(HandleRef jarg1)
static IntPtr OdDbGripData_gripOpStatFunc(HandleRef jarg1)
static IntPtr OdDbGripData_appDataOdRxClass(HandleRef jarg1)
static string OdDbGripData_getRealClassName(IntPtr jarg1)
static bool OdDbGripData_mapGripHotToRtClk(HandleRef jarg1)
static uint OdDbGripData_bitFlags(HandleRef jarg1)
static bool OdDbGripData_isRubberBandLineDisabled(HandleRef jarg1)
static bool OdDbGripData_triggerGrip(HandleRef jarg1)
static IntPtr OdDbGripData_hotGripFunc(HandleRef jarg1)
static void OdDbGripData_setAppDataOdRxClass(HandleRef jarg1, HandleRef jarg2)
static void OdDbGripData_setGripOpStatFunc(HandleRef jarg1, IntPtr jarg2)
static void OdDbGripData_disableModeKeywords(HandleRef jarg1, bool jarg2)
static void OdDbGripData_setBitFlags(HandleRef jarg1, uint jarg2)
static IntPtr OdDbGripData_viewportDraw(HandleRef jarg1)
static bool OdDbGripData_gizmosEnabled(HandleRef jarg1)
static void OdDbGripData_setRtClk(HandleRef jarg1, IntPtr jarg2)
static IntPtr OdDbGripData_toolTipFunc(HandleRef jarg1)
static void OdDbGripData_setMapGripHotToRtClk(HandleRef jarg1, bool jarg2)
static HandleRef getCPtr(OdDbGripDataArray obj)
OdDbGripData(OdDbGripData arg0)
Globals.GripOpStatusPtrDelegate gripOpStatFunc()
void disableRubberBandLine(bool disable)
void disableModeKeywords(bool disable)
void setWorldDraw(Globals.GripWorldDrawPtrDelegate pf)
virtual void Dispose(bool disposing)
void setHoverFunc(Globals.GripOperationPtrDelegate pf)
void setGripPoint(OdGePoint3d pt)
Globals.GripToolTipPtrDelegate toolTipFunc()
void setAppData(IntPtr pAppData)
void setHotGripFunc(Globals.GripOperationPtrDelegate pf)
void setAlternateBasePoint(OdGePoint3d altBasePt)
Globals.GripViewportDrawPtrDelegate viewportDraw()
void setGizmosEnabled(bool on)
void setTriggerGrip(bool trigger)
void setAppDataOdRxClass(OdRxClass pClass)
static HandleRef getCPtr(OdDbGripData obj)
void setGripOpStatFunc(Globals.GripOpStatusPtrDelegate pf)
Globals.GripOperationPtrDelegate hotGripFunc()
void setBitFlags(uint flags)
Globals.GripOperationPtrDelegate hoverFunc()
void setMapGripHotToRtClk(bool on)
OdDbGripData Assign(OdDbGripData arg0)
OdDbGripData(IntPtr cPtr, bool cMemoryOwn)
Globals.GripRtClkHandlerDelegate rtClk()
void setDrawAtDragImageGripPoint(bool atDragPoint)
void setViewportDraw(Globals.GripViewportDrawPtrDelegate pf)
void setRtClk(Globals.GripRtClkHandlerDelegate pf)
Globals.GripWorldDrawPtrDelegate worldDraw()
void setGripIsPerViewport(bool on)
static string getRealClassName(IntPtr ptr)
void setSkipWhenShared(bool skip)
void setToolTipFunc(Globals.GripToolTipPtrDelegate pf)
void setForcedPickOn(bool on)
OdGePoint3d alternateBasePoint()
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
static void AssignStringToOdString(IntPtr pOdString, string str)