Esempio n. 1
0
        /// <summary>
        /// Creates a new Contour.
        /// </summary>
        public void newContour()
        {
            BaseContour c = new BaseContour();

            currentContour = c;
            contours.Add(c);
        }
Esempio n. 2
0
 /// <summary>
 /// Clears the current working contour.
 /// </summary>
 public void clearCurrent()
 {
     if (currentContour != null)
     {
         contours.Remove(currentContour);
         currentContour = null;
         DrawHandler.Instance.clearFishLines();
         ImageHandler.Instance.refreshImage();
     }
 }
Esempio n. 3
0
        public SelectBone()
        {
            InitializeComponent();

            foreach (var item in BaseContour.getBoneTypes(MainView.Instance.getBoneType()))
            {
                comboBox1.Items.Add(item);
            }

            List <BaseContour> list = ContourHandler.Instance.getContours();

            foreach (BaseContour c in list)
            {
                if (c.getDone())
                {
                    comboBox1.Items.Remove(c.getName());
                }
            }

            comboBox1.SelectedItem = comboBox1.Items[0];
        }
Esempio n. 4
0
 /// <summary>
 /// Removes all known contours and clears the current contour.
 /// </summary>
 public void clearAll()
 {
     contours.Clear();
     currentContour = null;
 }
Esempio n. 5
0
 /// <summary>
 ///  Set the current working contour to a new one.
 /// </summary>
 /// <param name="c">The new working contour.</param>
 public void setCurrent(BaseContour c)
 {
     currentContour = c;
 }
Esempio n. 6
0
        private BaseContour currentContour;             // The contour currently working on

        private ContourHandler()
        {
            contours       = new List <BaseContour>();
            currentContour = null;
        }