Example #1
0
        public new static vtkLineWidget2 New()
        {
            vtkLineWidget2 result      = null;
            uint           mteStatus   = 0u;
            uint           mteIndex    = 4294967295u;
            uint           rawRefCount = 0u;
            IntPtr         intPtr      = vtkLineWidget2.vtkLineWidget2_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkLineWidget2)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Example #2
0
        public new static vtkLineWidget2 SafeDownCast(vtkObjectBase o)
        {
            vtkLineWidget2 vtkLineWidget = null;
            uint           mteStatus     = 0u;
            uint           mteIndex      = 4294967295u;
            uint           rawRefCount   = 0u;
            IntPtr         intPtr        = vtkLineWidget2.vtkLineWidget2_SafeDownCast_07((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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