public new static vtkContourRepresentation SafeDownCast(vtkObjectBase o)
        {
            vtkContourRepresentation vtkContourRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkContourRepresentation.vtkContourRepresentation_SafeDownCast_53((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkContourRepresentation = (vtkContourRepresentation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkContourRepresentation.Register(null);
                }
            }
            return(vtkContourRepresentation);
        }
Exemple #2
0
        public vtkContourRepresentation GetContourRepresentation()
        {
            vtkContourRepresentation vtkContourRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkContourWidget.vtkContourWidget_GetContourRepresentation_11(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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