コード例 #1
0
ファイル: vtkGlyph2D.cs プロジェクト: Monkeybin11/Kitware.VTK
        public new vtkGlyph2D NewInstance()
        {
            vtkGlyph2D result      = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkGlyph2D.vtkGlyph2D_NewInstance_04(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkGlyph2D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
コード例 #2
0
ファイル: vtkGlyph2D.cs プロジェクト: Monkeybin11/Kitware.VTK
        public new static vtkGlyph2D SafeDownCast(vtkObjectBase o)
        {
            vtkGlyph2D vtkGlyph2D  = null;
            uint       mteStatus   = 0u;
            uint       mteIndex    = 4294967295u;
            uint       rawRefCount = 0u;
            IntPtr     intPtr      = vtkGlyph2D.vtkGlyph2D_SafeDownCast_05((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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