Пример #1
0
        public vtkScalarBarRepresentation GetScalarBarRepresentation()
        {
            vtkScalarBarRepresentation vtkScalarBarRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkScalarBarWidget.vtkScalarBarWidget_GetScalarBarRepresentation_04(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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