18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
44 : this(
TD_DbPINVOKE.new_OdDbDimensionRecomputePE(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
52 SwigDirectorConnect();
53 DelegateHolder.OnHoldSwigDirectorDelegates(
this);
67 MemoryManager mMan = MemoryManager.GetMemoryManager();
68 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
108 MemoryManager mMan = MemoryManager.GetMemoryManager();
109 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
138IntPtr tmp_formattedMeasurement = Marshal.StringToCoTaskMemUni(formattedMeasurement);
139 IntPtr saved_formattedMeasurement = tmp_formattedMeasurement;
144if (tmp_formattedMeasurement != saved_formattedMeasurement) formattedMeasurement = Marshal.PtrToStringUni(tmp_formattedMeasurement);
154 private void SwigDirectorConnect() {
155 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
157 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
159 if (SwigDerivedClassHasMethod(
"copyFrom", swigMethodTypes2))
161 if (SwigDerivedClassHasMethod(
"recomputeDimMeasurement", swigMethodTypes3))
163 if (SwigDerivedClassHasMethod(
"recomputeDimBlock", swigMethodTypes4))
165 if (SwigDerivedClassHasMethod(
"formatMeasurement", swigMethodTypes5))
170 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
171 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance,
null, methodTypes,
null);
173 return hasDerivedMethod;
176 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
185 private IntPtr SwigDirectorMethodisA() {
192 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
198 private void SwigDirectorMethodrecomputeDimMeasurement(IntPtr pDimension) {
200 (OdDbDimension)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDimension),pDimension,
false)
204 private void SwigDirectorMethodrecomputeDimBlock(IntPtr pDimension, IntPtr ctx) {
206 (OdDbDimension)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDimension),pDimension,
false)
208 (OdDbDimensionObjectContextData)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDimensionObjectContextData),ctx,
false)
212 private void SwigDirectorMethodformatMeasurement(IntPtr pDimension, IntPtr formattedMeasurement,
double measurementValue, [MarshalAs(UnmanagedType.LPWStr)]
String dimensionText) {
213 string tmp_formattedMeasurement = Marshal.PtrToStringUni(formattedMeasurement);
214 string saved_formattedMeasurement = tmp_formattedMeasurement;
217 (OdDbDimension)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDimension),pDimension,
false)
218, ref tmp_formattedMeasurement, measurementValue, dimensionText);
220 if (tmp_formattedMeasurement != saved_formattedMeasurement) formattedMeasurement = Marshal.StringToCoTaskMemUni(tmp_formattedMeasurement);
238 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
239 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
240 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(
OdRxObject) };
241 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { typeof(OdDbDimension) };
242 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { typeof(OdDbDimension), typeof(OdDbDimensionObjectContextData) };
243 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { typeof(OdDbDimension), typeof(
string).MakeByRefType(), typeof(
double), typeof(
String) };
static HandleRef getCPtr(OdDbDimensionObjectContextData obj)
static void OdDbDimensionRecomputePE_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbDimensionRecomputePE.SwigDelegateOdDbDimensionRecomputePE_0 delegate0, OdDbDimensionRecomputePE.SwigDelegateOdDbDimensionRecomputePE_1 delegate1, OdDbDimensionRecomputePE.SwigDelegateOdDbDimensionRecomputePE_2 delegate2, OdDbDimensionRecomputePE.SwigDelegateOdDbDimensionRecomputePE_3 delegate3, OdDbDimensionRecomputePE.SwigDelegateOdDbDimensionRecomputePE_4 delegate4, OdDbDimensionRecomputePE.SwigDelegateOdDbDimensionRecomputePE_5 delegate5)