public vtkXMLMaterial GetMaterial()
        {
            vtkXMLMaterial vtkXMLMaterial = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkXMLMaterialReader.vtkXMLMaterialReader_GetMaterial_02(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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