コード例 #1
0
        public new static vtkDataRepresentation SafeDownCast(vtkObjectBase o)
        {
            vtkDataRepresentation vtkDataRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkDataRepresentation.vtkDataRepresentation_SafeDownCast_24((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkDataRepresentation = (vtkDataRepresentation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkDataRepresentation.Register(null);
                }
            }
            return(vtkDataRepresentation);
        }
コード例 #2
0
        public vtkDataRepresentation SetRepresentationFromInput(vtkDataObject input)
        {
            vtkDataRepresentation vtkDataRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkView.vtkView_SetRepresentationFromInput_19(base.GetCppThis(), (input == null) ? default(HandleRef) : input.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkDataRepresentation = (vtkDataRepresentation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkDataRepresentation.Register(null);
                }
            }
            return(vtkDataRepresentation);
        }
コード例 #3
0
        public vtkDataRepresentation AddRepresentationFromInputConnection(vtkAlgorithmOutput conn)
        {
            vtkDataRepresentation vtkDataRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkView.vtkView_AddRepresentationFromInputConnection_03(base.GetCppThis(), (conn == null) ? default(HandleRef) : conn.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkDataRepresentation = (vtkDataRepresentation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkDataRepresentation.Register(null);
                }
            }
            return(vtkDataRepresentation);
        }
コード例 #4
0
        public vtkDataRepresentation GetRepresentation(int index)
        {
            vtkDataRepresentation vtkDataRepresentation = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkView.vtkView_GetRepresentation_07(base.GetCppThis(), index, ref mteStatus, ref mteIndex, ref rawRefCount);

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