예제 #1
0
        public vtkAngleRepresentation GetAngleRepresentation()
        {
            vtkAngleRepresentation vtkAngleRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkAngleWidget.vtkAngleWidget_GetAngleRepresentation_02(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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