Пример #1
0
    public BC_3DPoint GetEndPoint()
    {
        global::System.IntPtr cPtr = BIMcollab_LinePINVOKE.BC_Line_GetEndPoint(swigCPtr);
        BC_3DPoint            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BC_3DPoint(cPtr, false);

        return(ret);
    }
Пример #2
0
 public BC_Line(BC_3DPoint startPoint, BC_3DPoint endPoint) : this(BIMcollab_LinePINVOKE.new_BC_Line(BC_3DPoint.getCPtr(startPoint), BC_3DPoint.getCPtr(endPoint)), true)
 {
     if (BIMcollab_LinePINVOKE.SWIGPendingException.Pending)
     {
         throw BIMcollab_LinePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public override void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 BIMcollab_LinePINVOKE.delete_BC_Line(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
         base.Dispose();
     }
 }
Пример #4
0
 internal BC_Line(global::System.IntPtr cPtr, bool cMemoryOwn) : base(BIMcollab_LinePINVOKE.BC_Line_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }