예제 #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);
        }
        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);
        }