示例#1
0
        void CreateFramgmentMark_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Mark;
        }
示例#2
0
        void FragmentRegisterView_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews;

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews;
        }
示例#3
0
        void FragmentUniformity_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            UnsubscribeMouseEvents();
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Uniformity;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Uniformity;

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Uniformity;

            //subscribe to left mouse click event on view0
            m_View0FragmentAdorner.AdornedElement.MouseLeftButtonDown +=
                new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView0_MouseLeftButtonDown);
        }
示例#4
0
        void FragmentMark_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            UnsubscribeMouseEvents();
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;

            if (m_FragmentObjectMarkComplete)
            {
                //subscribe to left mouse click event on view0
                m_View0FragmentAdorner.AdornedElement.MouseLeftButtonDown +=
                    new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView0_MouseLeftButtonDown);
            }
            else
            {
                m_View1FragmentAdorner.AdornedElement.MouseLeftButtonDown +=
                    new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView1_MouseLeftButtonDown);
            }

            m_View0FragmentAdorner.FragmentLayerEnabled = true;

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Mark;
        }
示例#5
0
        void CreateFramgmentMark_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Mark;
        }
示例#6
0
 void FragmentRegisterView_MenuItem_Click(object sender, RoutedEventArgs e)
 {            
     //set Fragment mode to mark on both views
     m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews;
     m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews;
     
     m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.RegisterViews;
 }        
示例#7
0
        void FragmentUniformity_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            UnsubscribeMouseEvents();
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Uniformity;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Uniformity;

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Uniformity;

            //subscribe to left mouse click event on view0
            m_View0FragmentAdorner.AdornedElement.MouseLeftButtonDown +=
                new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView0_MouseLeftButtonDown);
        }
示例#8
0
        void FragmentMark_MenuItem_Click(object sender, RoutedEventArgs e)
        {
            UnsubscribeMouseEvents();
            //set Fragment mode to mark on both views
            m_View0FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;
            m_View1FragmentAdorner.MarkMode = FragmentAdorner.FragmentMarkMode.Mark;            

            if (m_FragmentObjectMarkComplete)
            {
                //subscribe to left mouse click event on view0
                m_View0FragmentAdorner.AdornedElement.MouseLeftButtonDown +=
                    new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView0_MouseLeftButtonDown);
                
            }
            else
            {
                m_View1FragmentAdorner.AdornedElement.MouseLeftButtonDown +=
                    new System.Windows.Input.MouseButtonEventHandler(fragmentAdornerView1_MouseLeftButtonDown);
            }

            m_View0FragmentAdorner.FragmentLayerEnabled = true;            

            m_CurrentMarkMode = FragmentAdorner.FragmentMarkMode.Mark;

        }