コード例 #1
0
        public new static vtkEncodedGradientShader New()
        {
            vtkEncodedGradientShader result = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkEncodedGradientShader.vtkEncodedGradientShader_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkEncodedGradientShader)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
コード例 #2
0
        public virtual vtkEncodedGradientShader GetGradientShader()
        {
            vtkEncodedGradientShader vtkEncodedGradientShader = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkVolumeTextureMapper.vtkVolumeTextureMapper_GetGradientShader_15(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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