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