コード例 #1
0
        public new static vtkCameraInterpolator SafeDownCast(vtkObjectBase o)
        {
            vtkCameraInterpolator vtkCameraInterpolator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkCameraInterpolator.vtkCameraInterpolator_SafeDownCast_22((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCameraInterpolator = (vtkCameraInterpolator)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCameraInterpolator.Register(null);
                }
            }
            return(vtkCameraInterpolator);
        }
コード例 #2
0
        public virtual vtkCameraInterpolator GetInterpolator()
        {
            vtkCameraInterpolator vtkCameraInterpolator = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkCameraRepresentation.vtkCameraRepresentation_GetInterpolator_06(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCameraInterpolator = (vtkCameraInterpolator)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCameraInterpolator.Register(null);
                }
            }
            return(vtkCameraInterpolator);
        }