Пример #1
0
        public new static vtkTexturedButtonRepresentation2D New()
        {
            vtkTexturedButtonRepresentation2D result = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkTexturedButtonRepresentation2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Пример #2
0
        public new static vtkTexturedButtonRepresentation2D SafeDownCast(vtkObjectBase o)
        {
            vtkTexturedButtonRepresentation2D vtkTexturedButtonRepresentation2D = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_SafeDownCast_20((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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