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

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

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