示例#1
0
 public void InitModel(Planet3D p)
 {
     Planet      = p;
     SolarSystem = p.SolarSystem;
     UpdateTransform();
     UpdateOrbit();
 }
示例#2
0
 public void InitModel(SolarSystem3D ss)
 {
     SolarSystem = ss;
     UpdateTransform();
     UpdateOrbit();
     foreach (var s in Satellites)
     {
         s.InitModel(this);
         Children.Add(s);
     }
 }
示例#3
0
        public Window1()
        {
            InitializeComponent();

            view1.Camera.Position      = new Point3D(0, 400, 500);
            view1.Camera.LookDirection = new Vector3D(0, -400, -500);
            SolarSystem = view1.Children[2] as SolarSystem3D;
            DataContext = SolarSystem;

            Loaded += new RoutedEventHandler(Window1_Loaded);
        }
示例#4
0
        public Window1()
        {
            InitializeComponent();

            view1.Camera.Position = new Point3D(0, 400, 500);
            view1.Camera.LookDirection = new Vector3D(0, -400, -500);
            SolarSystem = view1.Children[2] as SolarSystem3D;
            DataContext = SolarSystem;

            Loaded += new RoutedEventHandler(Window1_Loaded);
        }
示例#5
0
 public void InitModel(SolarSystem3D ss)
 {
     SolarSystem = ss;
     UpdateTransform();
     UpdateOrbit();
     foreach (var s in Satellites)
     {
         s.InitModel(this);
         Children.Add(s);
     }
 }
示例#6
0
 public void InitModel(Planet3D p)
 {
     Planet = p;
     SolarSystem = p.SolarSystem;
     UpdateTransform();
     UpdateOrbit();
 }