Exemplo n.º 1
0
        public Solver(Moon moon, Camera camera, Orbit orbit)
        {
            _moon   = moon;
            _camera = camera;
            _orbit  = orbit;

            observers = new List <IObserver>();
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                Dataset dom = Gdal.Open(pathDOM.Text, Access.GA_ReadOnly);
                Dataset dem = Gdal.Open(pathDEM.Text, Access.GA_ReadOnly);

                liuyuzhen.Moon moon = new Moon(dem, dom);
                int            idx  = comboBox1.SelectedIndex;
                switch (idx)
                {
                case 0:
                {
                    moon.setDEMInterpolate(liuyuzhen.Interpolate.NEAREST);
                    moon.setDOMInterpolate(liuyuzhen.Interpolate.NEAREST);
                    break;
                }

                case 1:
                {
                    moon.setDEMInterpolate(liuyuzhen.Interpolate.LINEAR);
                    moon.setDOMInterpolate(liuyuzhen.Interpolate.LINEAR);
                    break;
                }
                }

                _frm.setMoon(moon);

                Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                pathDOM.Clear();
                pathDEM.Clear();
            }
        }
Exemplo n.º 3
0
 public void setMoon(liuyuzhen.Moon moon)
 {
     _moon       = moon;
     _moonSet    = true;
     label1.Text = "Moon set";
 }