Пример #1
0
        private void CreateBufferControls()
        {
            m_BufferManager = new BufferPluginManager();

            m_Buffers = m_BufferManager.GetInstances();

            foreach (BufferInstance buffer in m_Buffers)
            {
                BufferParameter filterParam = new BufferParameter(XrayImage_Panel, m_History);
                try
                {
                    buffer.Instance.Initialize(filterParam);

                    Buffer_ToolBar.Items.Add(buffer.Instance.ToolBarItem);

                    Button button = buffer.Instance.ToolBarItem as Button;
                    if (button != null)
                    {
                        button.Click += new RoutedEventHandler(BufferButton_Clicked);
                    }
                }
                catch
                {
                    //TODO: Error Logs
                }
            }
        }
Пример #2
0
        public void Initialize(Object passedObj)
        {
            BufferParameter bufferParam = passedObj as BufferParameter;

            if (bufferParam != null)
            {
                _Effect   = bufferParam.dockPanel.Effect as XrayImageEffect;
                m_History = bufferParam.History;
            }
        }
Пример #3
0
 public void GetBufferParameteriv(BufferTarget target, BufferParameter pname, int[] riparams)
 {
     glGetBufferParameteriv_IIaI((int)target, (int)pname, riparams);
 }
Пример #4
0
 public T GetBufferParameter <T>(BufferType target, BufferParameter pname) => this.CallMethod <T>(GET_BUFFER_PARAMETER, target, pname);