当前位置: 首页>>代码示例>>C#>>正文


C# History.SetFirstStep方法代码示例

本文整理汇总了C#中History.SetFirstStep方法的典型用法代码示例。如果您正苦于以下问题:C# History.SetFirstStep方法的具体用法?C# History.SetFirstStep怎么用?C# History.SetFirstStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在History的用法示例。


在下文中一共展示了History.SetFirstStep方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Initialize

        public void Initialize(Object passedObj)
        {
            FilterParameter filterParam = passedObj as FilterParameter;
            if (filterParam != null)
            {
                dockPanel = filterParam.dockPanel;
                Width = filterParam.Width;
                Height = filterParam.Height;
                m_History = filterParam.History;

                HistoryFilter filter = new HistoryFilter();
                filter.name = m_Name;
                filter.parameter = m_PopUpItem.Value.ToString();
                m_History.SetFirstStep(filter);
            }
        }
开发者ID:BdGL3,项目名称:CXPortal,代码行数:16,代码来源:Filter.cs

示例2: Setup

        public void Setup (ViewObject content, History history, SysConfiguration sysConfig)
        {
            if (!IsSetup)
            {
                m_ViewObject = content;

                m_History = history;
                m_History.CurrentHistoryChangedEvent += new CurrentHistoryChanged(ApplyHistory);

                if (m_ViewObject.HighEnergy != null)
                {
                    m_SourceObject = m_ViewObject.HighEnergy;
                    HEImage.Source = new BitmapImage(new Uri(@"/L3.Cargo.Workstation.Plugins.XRayImageBase;component/Resources/Icons/HEOn.png", UriKind.Relative));
                    LEImage.Source = new BitmapImage(new Uri(@"/L3.Cargo.Workstation.Plugins.XRayImageBase;component/Resources/Icons/LEOff.png", UriKind.Relative));
                }
                else if (m_ViewObject.LowEnergy != null)
                {
                    m_SourceObject = m_ViewObject.LowEnergy;
                    HEImage.Source = new BitmapImage(new Uri(@"/L3.Cargo.Workstation.Plugins.XRayImageBase;component/Resources/Icons/HEOff.png", UriKind.Relative));
                    LEImage.Source = new BitmapImage(new Uri(@"/L3.Cargo.Workstation.Plugins.XRayImageBase;component/Resources/Icons/LEOn.png", UriKind.Relative));
                }
                else
                {
                    throw new Exception();
                }

                if (m_ViewObject.LowEnergy == null ||
                    m_ViewObject.HighEnergy == null)
                {
                    XRayDualEnergy_ToolBar.Visibility = Visibility.Collapsed;
                }
                else
                {
                    HistoryDualEnergy dualEnergy = new HistoryDualEnergy();
                    dualEnergy.name = "HighEnergy";
                    m_History.SetFirstStep(dualEnergy);
                }

                if (sysConfig != null)
                {
                    m_sysConfig = sysConfig;
                    CreateUserMacroControls();
                    Macro_Toolbar.Visibility = Visibility.Visible;
                }

                CreateBufferControls();

                CreateFilterControls();

                CreateColorMappingControls();

                MainImage.Source = m_SourceObject.Source;
                MainImage.Height = m_SourceObject.Height;
                MainImage.Width = m_SourceObject.Width;
                
                HistoryBuffer buffer = new HistoryBuffer();
                buffer.name = "Original Gray Scale";

                m_History.SetFirstStep(buffer);

                HistoryList.DataContext = m_History.Step;

                IsApplyHistoryFromSetup = true;

                m_History.ApplyStep();

                IsApplyHistoryFromSetup = false;

                IsSetup = true;
            }
        }
开发者ID:BdGL3,项目名称:CXPortal,代码行数:71,代码来源:XRayView.xaml.cs

示例3: Setup

        public void Setup (XrayImageEffect effect, Image image, History history, float[] data)
        {
            _Effect = effect;

            m_History = history;
            m_History.CurrentHistoryChangedEvent += new CurrentHistoryChanged(ApplyHistory);

            HistoryHistogram histogram = new HistoryHistogram();
            histogram.effecttype = "Gray";
            histogram.start = rangeSlider.RangeStart;
            histogram.end = rangeSlider.RangeStop;
            m_History.SetFirstStep(histogram);

            SetDataPoints(image, data);

            m_History.ApplyStep();
        }
开发者ID:BdGL3,项目名称:CXPortal,代码行数:17,代码来源:Histogram.xaml.cs


注:本文中的History.SetFirstStep方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。