14using System.Runtime.InteropServices;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
24 swigCPtr =
new HandleRef(
this, cPtr);
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
37 global::System.GC.SuppressFinalize(
this);
40 protected virtual void Dispose(
bool disposing) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
47 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
58 TD_Db.DimDataSetValueFuncPtrDelegateNative setDimFunc_inDelegate =
null;
59 if (setDimFunc !=
null)
61 setDimFunc_inDelegate = (IntPtr pThis,IntPtr pEnt,
double newValue,IntPtr offset) =>
66 return (setDimFunc(OdMarshalHelper.PtrToObject<
OdDbDimData>(pThis),OdMarshalHelper.PtrToObject<
OdDbEntity>(pEnt),newValue,OdMarshalHelper.PtrToObject<
OdGeVector3d>(offset)));
74 IntPtr setDimFunc_ptr = (setDimFunc ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(setDimFunc_inDelegate);
75 Teigha.
Core.DelegateHolder.Add(setDimFunc_inDelegate);
78 TD_Db.DimDataSetCustomStringFuncPtrDelegateNative setCustomStringFunc_inDelegate =
null;
81 setCustomStringFunc_inDelegate = (IntPtr pThis,IntPtr pEnt,IntPtr sCustomString,IntPtr offset) =>
94 IntPtr setCustomStringFunc_ptr = (
setCustomStringFunc ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(setCustomStringFunc_inDelegate);
95 Teigha.
Core.DelegateHolder.Add(setCustomStringFunc_inDelegate);
98 return TD_DbPINVOKE.new_OdDbDimData__SWIG_1(OdDbDimension.getCPtr(pDim), setDimFunc_ptr ,
bitFlags,
appData , setCustomStringFunc_ptr );
111 TD_Db.DimDataSetValueFuncPtrDelegateNative setDimFunc_inDelegate =
null;
112 if (setDimFunc !=
null)
114 setDimFunc_inDelegate = (IntPtr pThis,IntPtr pEnt,
double newValue,IntPtr offset) =>
119 return (setDimFunc(OdMarshalHelper.PtrToObject<
OdDbDimData>(pThis),OdMarshalHelper.PtrToObject<
OdDbEntity>(pEnt),newValue,OdMarshalHelper.PtrToObject<
OdGeVector3d>(offset)));
127 IntPtr setDimFunc_ptr = (setDimFunc ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(setDimFunc_inDelegate);
128 Teigha.
Core.DelegateHolder.Add(setDimFunc_inDelegate);
131 return TD_DbPINVOKE.new_OdDbDimData__SWIG_2(OdDbDimension.getCPtr(pDim), setDimFunc_ptr ,
bitFlags,
appData );
143 TD_Db.DimDataSetValueFuncPtrDelegateNative setDimFunc_inDelegate =
null;
144 if (setDimFunc !=
null)
146 setDimFunc_inDelegate = (IntPtr pThis,IntPtr pEnt,
double newValue,IntPtr offset) =>
151 return (setDimFunc(OdMarshalHelper.PtrToObject<
OdDbDimData>(pThis),OdMarshalHelper.PtrToObject<
OdDbEntity>(pEnt),newValue,OdMarshalHelper.PtrToObject<
OdGeVector3d>(offset)));
159 IntPtr setDimFunc_ptr = (setDimFunc ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(setDimFunc_inDelegate);
160 Teigha.
Core.DelegateHolder.Add(setDimFunc_inDelegate);
163 return TD_DbPINVOKE.new_OdDbDimData__SWIG_3(OdDbDimension.getCPtr(pDim), setDimFunc_ptr ,
bitFlags);
175 TD_Db.DimDataSetValueFuncPtrDelegateNative setDimFunc_inDelegate =
null;
176 if (setDimFunc !=
null)
178 setDimFunc_inDelegate = (IntPtr pThis,IntPtr pEnt,
double newValue,IntPtr offset) =>
183 return (setDimFunc(OdMarshalHelper.PtrToObject<
OdDbDimData>(pThis),OdMarshalHelper.PtrToObject<
OdDbEntity>(pEnt),newValue,OdMarshalHelper.PtrToObject<
OdGeVector3d>(offset)));
191 IntPtr setDimFunc_ptr = (setDimFunc ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(setDimFunc_inDelegate);
192 Teigha.
Core.DelegateHolder.Add(setDimFunc_inDelegate);
195 return TD_DbPINVOKE.new_OdDbDimData__SWIG_4(OdDbDimension.getCPtr(pDim), setDimFunc_ptr );
220 MemoryManager mMan = MemoryManager.GetMemoryManager();
221 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
245 MemoryManager mMan = MemoryManager.GetMemoryManager();
246 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
342 TD_Db.DimDataSetValueFuncPtrDelegate outDelegate =
null;
343 if (nativeCallback != IntPtr.Zero)
351 return (cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<
OdDbDimData>(pThis),OdMarshalHelper.ObjectToPtr<
OdDbEntity>(pEnt),newValue,OdMarshalHelper.ObjectToPtr<
OdGeVector3d>(offset)));
365 TD_Db.DimDataSetValueFuncPtrDelegateNative funcPtr_inDelegate =
null;
368 funcPtr_inDelegate = (IntPtr pThis,IntPtr pEnt,
double newValue,IntPtr offset) =>
373 return (funcPtr(OdMarshalHelper.PtrToObject<
OdDbDimData>(pThis),OdMarshalHelper.PtrToObject<
OdDbEntity>(pEnt),newValue,OdMarshalHelper.PtrToObject<
OdGeVector3d>(offset)));
381 IntPtr funcPtr_ptr = (funcPtr ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(funcPtr_inDelegate);
382 Teigha.
Core.DelegateHolder.Add(funcPtr_inDelegate);
397 TD_Db.DimDataSetCustomStringFuncPtrDelegate outDelegate =
null;
398 if (nativeCallback != IntPtr.Zero)
420 TD_Db.DimDataSetCustomStringFuncPtrDelegateNative funcPtr_inDelegate =
null;
423 funcPtr_inDelegate = (IntPtr pThis,IntPtr pEnt,IntPtr sCustomString,IntPtr offset) =>
436 IntPtr funcPtr_ptr = (funcPtr ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(funcPtr_inDelegate);
437 Teigha.
Core.DelegateHolder.Add(funcPtr_inDelegate);
536 kDimEditable = 0x0001,
537 kDimInvisible = 0x0002,
539 kDimHideIfValueIsZero = 0x0008,
540 kDimEmptyData = 0x0010,
541 kDimResultantLength = 0x0020,
542 kDimDeltaLength = 0x0040,
543 kDimResultantAngle = 0x0080,
544 kDimDeltaAngle = 0x0100,
546 kDimCustomValue = 0x0400,
547 kDimConstrained = 0x0800,
548 kDimCustomString = 0x1000
static IntPtr StringToOdString(string str)
static string OdStringToString(IntPtr str)
void setConstrain(bool bValue)
OdDbDimData Assign(OdDbDimData arg0)
bool isDimResultantAngle()
OdDbDimData(OdDbDimension pDim, TD_Db.DimDataSetValueFuncPtrDelegate setDimFunc, uint bitFlags)
OdDbDimData(OdDbDimension pDim, TD_Db.DimDataSetValueFuncPtrDelegate setDimFunc)
OdDbDimData(OdDbDimension pDim, TD_Db.DimDataSetValueFuncPtrDelegate setDimFunc, uint bitFlags, IntPtr appData)
void setCustomStringFunc(TD_Db.DimDataSetCustomStringFuncPtrDelegate funcPtr)
bool isDimResultantLength()
void setDimDeltaLength(bool bValue)
OdDbDimData(OdDbDimension pDim, TD_Db.DimDataSetValueFuncPtrDelegate setDimFunc, uint bitFlags, IntPtr appData, TD_Db.DimDataSetCustomStringFuncPtrDelegate setCustomStringFunc)
void setAppData(IntPtr appData)
void setDimResultantLength(bool bValue)
void setDimValueFunc(TD_Db.DimDataSetValueFuncPtrDelegate funcPtr)
void setBitFlags(uint flags)
void setCustomString(bool bValue)
void setDimension(OdDbDimension pDim)
void setDimEditable(bool editable)
OdDbDimData(OdDbDimension pDim)
TD_Db.DimDataSetValueFuncPtrDelegate dimValueFunc()
void setCustomDimValue(bool custom)
void setDimInvisible(bool invisible)
OdDbDimension dimension()
virtual void Dispose(bool disposing)
void setDimDeltaAngle(bool bValue)
OdDbDimData(OdDbDimData arg0)
void setDimResultantAngle(bool bValue)
void setDimHideIfValueIsZero(bool hide)
static HandleRef getCPtr(OdDbDimData obj)
void setDimRadius(bool bValue)
bool isDimHideIfValueIsZero()
OdDbDimData(IntPtr cPtr, bool cMemoryOwn)
void setDimFocal(bool focal)
void setOwnerId(OdDbObjectId objId)
TD_Db.DimDataSetCustomStringFuncPtrDelegate customStringFunc()
static HandleRef getCPtr(OdDbDimension obj)
static HandleRef getCPtr(OdDbObjectId obj)
delegate OdGeVector3dValue DimDataSetValueFuncPtrDelegateNative(IntPtr pThis, IntPtr pEnt, double newValue, IntPtr offset)
delegate OdGeVector3dValue DimDataSetValueFuncPtrDelegate(OdDbDimData pThis, OdDbEntity pEnt, double newValue, OdGeVector3d offset)
delegate OdGeVector3dValue DimDataSetCustomStringFuncPtrDelegateNative(IntPtr pThis, IntPtr pEnt, IntPtr sCustomString, IntPtr offset)
delegate OdGeVector3dValue DimDataSetCustomStringFuncPtrDelegate(OdDbDimData pThis, OdDbEntity pEnt, string sCustomString, OdGeVector3d offset)
static global::System.Exception Retrieve()
static void OdDbDimData_setBitFlags(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static void OdDbDimData_setDimDeltaLength(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static IntPtr OdDbDimData_dimension(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimDeltaAngle(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimResultantLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isCustomDimValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbDimData_setDimRadius(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbDimData_isCustomString(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimHideIfValueIsZero(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isConstrained(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimRadius(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDbDimData_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbDimData_isDimResultantAngle(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbDimData_setDimension(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdDbDimData_setCustomStringFunc(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static IntPtr OdDbDimData_appData(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdDbDimData(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimDeltaLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimInvisible(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbDimData_setDimHideIfValueIsZero(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbDimData_setAppData(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void OdDbDimData_setDimFocal(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbDimData_ownerId(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint OdDbDimData_bitFlags(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDbDimData_dimValueFunc(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbDimData_setDimInvisible(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbDimData_setDimValueFunc(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void OdDbDimData_setDimResultantAngle(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbDimData_setDimDeltaAngle(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbDimData_setConstrain(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbDimData_isDimFocal(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbDimData_setCustomDimValue(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbDimData_setOwnerId(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDimData_setCustomString(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbDimData_setDimResultantLength(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static IntPtr OdDbDimData_customStringFunc(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbDimData_isDimEditable(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbDimData_setDimEditable(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)