Ejemplo n.º 1
0
 public SensorVisual3D(IpSensor _sensor)
     : base(_sensor)
 {
     //this.Sensor = _sensor;
     //this.Fov = _sensor.Fov;
     this.Sensor.PropertyChanged += (object s, PropertyChangedEventArgs e) =>
     {
         this.UpdateModel();
     };
     // todo: to be tested
     //var rangeBinding = new Binding("MaxRange");
     //rangeBinding.Source = this.Sensor;
     //BindingOperations.SetBinding(this, SensorVisual3D.MaxRangeProperty, rangeBinding);
 }
Ejemplo n.º 2
0
        public SensorVisual3D()
            : base(new IpAoaSensor(string.Empty))
        {
            this.Sensor = new IpAoaSensor(string.Empty)
            {
                Fov = new SphericalRange3D()
                {
                    AzimuthRange   = 0.5,
                    ElevationRange = 0.5,
                    Direction      = new Vector3D(1, 0, 0)
                },

                Position = new Point3D(0, 0, 0),
                MaxRange = 5,
            };
            this.Position = this.Sensor.Position;
            this.Sensor.PropertyChanged += (object s, PropertyChangedEventArgs e) =>
            {
                this.UpdateModel();
            };
        }