/// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this control belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this._host._activities.Items.Add(this.visualization_Menu);
     //this._host._activities.Items.Insert(this._host._activities.Items.Count - 1, this.visualization_Menu);
 }
示例#2
0
 /// <summary>
 /// Sets the document to which this scene belongs to
 /// </summary>
 /// <param name="host">The host.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this.Thickness       = this._host.UnitConvertor.Convert(0.20d);
     this._pen.Thickness  = this.Thickness;
 }
示例#3
0
        /// <summary>
        /// Overload this method to implement and external command within Revit.
        /// </summary>
        /// <param name="commandData">An ExternalCommandData object which contains reference to Application and View
        /// needed by external command.</param>
        /// <param name="message">Error message can be returned by external command. This will be displayed only if the command status
        /// was "Failed".  There is a limit of 1023 characters for this message; strings longer than this will be truncated.</param>
        /// <param name="elements">Element set indicating problem elements to display in the failure dialog.  This will be used
        /// only if the command status was "Failed".</param>
        /// <returns>The result indicates if the execution fails, succeeds, or was canceled by user. If it does not
        /// succeed, Revit will undo any changes made by the external command.</returns>
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            RevitDocument = commandData.Application.ActiveUIDocument.Document;
            UIDocument uidoc = new UIDocument(RevitDocument);

            try
            {
                OSM_ENV_Setting floorSetting = new OSM_ENV_Setting(RevitDocument);
                floorSetting.ShowDialog();

                BIM_To_OSM_Base revit_to_osm = new Revit_To_OSM(RevitDocument, floorSetting.FloorPlan,
                                                                floorSetting.MinimumHeight, floorSetting.CurveApproximationLength, floorSetting.MinimumCurveLength, floorSetting.DoorIds, floorSetting.LengthUnitType);
                I_OSM_To_BIM osm_to_Revit = new OSM_To_Revit(floorSetting.LengthUnitType);

                OSMDocument mainDocument = new OSMDocument(revit_to_osm, osm_to_Revit);
                mainDocument.ShowDialog();
                mainDocument = null;
            }
            catch (Exception er)
            {
                string message2 = er.Report();
                MessageBox.Show(message2);
                return(Result.Failed);
            }
            return(Result.Succeeded);
        }
 /// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this instance belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this._host._createNewSpatialDataField.Items.Add(this.visualization_Menu);
     this._strok_thickness = UnitConversion.Convert(0.1d, Length_Unit_Types.FEET, this._host.BIM_To_OSM.UnitType);
 }
示例#5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SetSpatialDataFieldCost"/> class.
        /// </summary>
        /// <param name="host">The main document to which this control belongs.</param>
        /// <param name="function">The function or spatial data field.</param>
        public SetSpatialDataFieldCost(OSMDocument host, Function function)
        {
            InitializeComponent();
            this._host     = host;
            this._function = function;
            this._spatialDataFieldName.Text = this._function.Name;
            this._spatialDataField          = function as SpatialDataField;
            if (this._spatialDataField != null)
            {
                this._method.Items.Add(CostCalculationMethod.RawValue);
                this._method.Items.Add(CostCalculationMethod.WrittenFormula);
                this._method.Items.Add(CostCalculationMethod.Interpolation);
            }
            else
            {
                this._method.Items.Add(CostCalculationMethod.RawValue);
                this._method.Items.Add(CostCalculationMethod.WrittenFormula);
                this._method.Items.Add(CostCalculationMethod.Interpolation);
            }

            this._method.SelectedItem      = function.CostCalculationType;
            this._method.SelectionChanged += new SelectionChangedEventHandler(_method_SelectionChanged);
            this._include.IsChecked        = function.IncludeInActivityGeneration;
            this._vis.Click += new RoutedEventHandler(_vis_Click);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterSetting"/> class.
 /// </summary>
 /// <param name="host">The host.</param>
 /// <param name="insertmode">If set to <c>true</c> inserts the selected parameter.</param>
 /// <param name="newParameterName">New name of the parameter.</param>
 public ParameterSetting(OSMDocument host, bool insertmode, string newParameterName)
 {
     InitializeComponent();
     this.Loaded += Window_Loaded;
     this._host   = host;
     foreach (var item in this._host.Parameters.Keys)
     {
         this._parameterList.Items.Add(item);
     }
     this._close.Click                    += _close_Click;
     this._createAndAdd.Click             += _createAndAdd_Click;
     this._parameterList.SelectionChanged += _parameterList_SelectionChanged;
     this._update.Click                   += _update_Click;
     this._paramMax.TextChanged           += _updateEnabled;
     this._paramMin.TextChanged           += _updateEnabled;
     this._paramValue.TextChanged         += _updateEnabled;
     this._insert.Click                   += _insert_Click;
     this._delete.Click                   += new RoutedEventHandler(_delete_Click);
     this._name.Text = newParameterName;
     this._name.SelectAll();
     if (insertmode)
     {
         this._close.Visibility = System.Windows.Visibility.Collapsed;
     }
     else
     {
         this._insert.Visibility = System.Windows.Visibility.Collapsed;
     }
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="EventCapturingInterface"/> class.
        /// </summary>
        /// <param name="host">The main document to which this window belongs.</param>
        /// <param name="eventType">Type of the event.</param>
        public EventCapturingInterface(OSMDocument host, EvaluationEventType eventType)
        {
            InitializeComponent();
            this._host                          = host;
            this._eventType                     = eventType;
            this.Loaded                        += OccupancyEventCapturingInterface_Loaded;
            this._dataCtlr.Click               += _dataClr_Click;
            this._visibilityEvent.Click        += _visibilityEvent_Click;
            this._runBtm.Click                 += this._runBtm_Click;
            this._closeBtm.Click               += _closeBtm_Click;
            this._recordTrailBtn.Click         += _recordTrailBtn_Click;
            this._timeSamplingRate.TextChanged += _timeSamplingRate_TextChanged;
            this._timeStep.TextChanged         += _timeSamplingRate_TextChanged;
            this.loadRate();
            switch (eventType)
            {
            case EvaluationEventType.Optional:
                this._activityEngamementEvnts.Visibility = System.Windows.Visibility.Collapsed;
                break;

            case EvaluationEventType.Mandatory:
                this._dataCtlr2.Click += _dataCtlr2_Click;
                break;

            default:
                break;
            }
        }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenerateSequenceUI"/> class.
 /// </summary>
 /// <param name="host">The main document to which this window belongs.</param>
 /// <param name="sequence">The sequence.</param>
 public GenerateSequenceUI(OSMDocument host, Sequence sequence)
 {
     InitializeComponent();
     this._host     = host;
     this._sequence = sequence;
     foreach (var item in this._host.AllActivities.Values)
     {
         this._availablePoentialFields.Items.Add(item);
         //if (!this._sequence.ActivityNames.Contains(item.Name))
         //{
         //    this._availablePoentialFields.Items.Add(item);
         //}
     }
     for (int i = 0; i < this._sequence.ActivityCount; i++)
     {
         this._orderedActivities.Items.Add(this._host.AllActivities[this._sequence.ActivityNames[i]]);
     }
     this._sequenceName.Visibility         = System.Windows.Visibility.Collapsed;
     this._selectedSequenceName.Visibility = System.Windows.Visibility.Visible;
     this._selectedSequenceName.Text       = sequence.Name;
     this._activationTime.Text             = sequence.ActivationLambdaFactor.ToString();
     this._up.Click                              += new RoutedEventHandler(_up_Click);
     this._add.Click                             += this._add_Click;
     this._remove.Click                          += this._remove_Click;
     this._down.Click                            += new RoutedEventHandler(_down_Click);
     this._okay.Click                            += this._edit_Click;
     this._addVisualAwareness.Click              += _visibilityEvent_Click;
     this._existingSequences.ItemsSource          = this._host.AgentMandatoryScenario.Sequences;
     this._existingSequences.DisplayMemberPath    = "Name";
     this._okay.Content                           = "Finish";
     this._includeVisualAwarenessField.Unchecked += _includeVisualAwarenessField_Unchecked;
     this._includeVisualAwarenessField.IsChecked  = this._sequence.HasVisualAwarenessField;
 }
示例#9
0
 public EditMandatoryScenario(OSMDocument host)
 {
     InitializeComponent();
     this._host = host;
     foreach (var item in this._host.AllActivities.Values)
     {
         if (this._host.AgentMandatoryScenario.MainStations.Contains(item.Name))
         {
             this._selectedStations.Items.Add(item);
         }
         else
         {
             this._mainStations.Items.Add(item);
         }
     }
     this._add.Click                          += new RoutedEventHandler(_add_Click);
     this._remove.Click                       += new RoutedEventHandler(_remove_Click);
     this._okay.Click                         += new RoutedEventHandler(_okay_Click);
     this._addSequence.Click                  += new RoutedEventHandler(_addSequence_Click);
     this._existingSequences.ItemsSource       = this._host.AgentMandatoryScenario.Sequences;
     this._existingSequences.DisplayMemberPath = "Name";
     this._editSequence.Click                 += new RoutedEventHandler(_editSequence_Click);
     this._removeSequence.Click               += _removeSequence_Click;
     this.Activated           += EditMandatoryScenario_Activated;
     this._saveSequence.Click += _saveSequence_Click;
     this._loadSequence.Click += _loadSequence_Click;
 }
 /// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this control belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this._host._activities.Items.Add(this.visualizationMenu);
     this.maximum_gradient_stepSize = this._host.UnitConvertor.Convert(0.1);
 }
 /// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this class instance belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this._host.Menues.Items.Add(this.visualization_Menu);
     this._thickness = this._host.UnitConvertor.Convert(this._thickness);
 }
示例#12
0
 void _closeBtm_Click(object sender, RoutedEventArgs e)
 {
     this._closeBtm.Click -= _closeBtm_Click;
     BindingOperations.ClearBinding(this._export, GroupBox.IsEnabledProperty);
     BindingOperations.ClearBinding(this._edit, GroupBox.IsEnabledProperty);
     this._host = null;
     this.Close();
 }
示例#13
0
 /// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this control belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this._host._activities.Items.Add(this.Visualization_Menu);
     //Thickness = this._host.UnitConvertor.Convert(Thickness, 4);
     //this._host._activities.Items.Insert(this._host._activities.Items.Count - 1, this.Visualization_Menu);
 }
 /// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this control belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host             = host;
     this._stroke_thickness = UnitConversion.Convert(0.1, Length_Unit_Types.FEET, this._host.BIM_To_OSM.UnitType);
     this.RenderTransform   = this._host.RenderTransformation;
     this._host._activities.Items.Insert(0, this._editeActivity_Menu);
     this._host._activities.Items.Insert(0, this.visualization_Menu);
 }
 public SelectAnActivity(OSMDocument host)
 {
     InitializeComponent();
     this._host = host;
     this._activities.ItemsSource       = this._host.AllActivities.Values;
     this._activities.DisplayMemberPath = "Name";
     this._activities.SelectionChanged += _activities_SelectionChanged;
     this._okay.Click += _okay_Click;
 }
示例#16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimplifiedEspaceRouteSetting"/> class.
 /// </summary>
 /// <param name="host">The main document to which this window belongs.</param>
 public SimplifiedEspaceRouteSetting(OSMDocument host)
 {
     InitializeComponent();
     this._host                     = host;
     this._done.Click              += _done_Click;
     this._setCosts.Click          += _setCosts_Click;
     this.IsovistExternalDepth.Text = this._host.AgentIsovistExternalDepth.ToString();
     this.AngleIntercept.Text       = this._host.MaximumNumberOfDestinations.ToString();
 }
示例#17
0
 /// <summary>
 /// Sets the host.
 /// </summary>
 /// <param name="host">The main document to which this scene belongs.</param>
 public void SetHost(OSMDocument host)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this._host.MandatoryScenario.Items.Add(this._controlPanelMenu);
     this._host.MandatoryScenario.Items.Add(this._getWalkingTrailDataMenu);
     this._host.MandatoryScenario.Items.Add(this._captureEventMenu);
     this._host.MandatoryScenario.Items.Add(this._trainingMenu);
 }
        /// <summary>
        /// Sets the host.
        /// </summary>
        /// <param name="host">The main document to which this control belongs.</param>
        public void SetHost(OSMDocument host)
        {
            this._host = host;
            this._host.Menues.Items.Add(this.JustifiedGraphMenu);

            Node.FloorScene   = this;
            Node.Transform    = this._host.Transform;
            JGEdge.FloorScene = this;
            JGEdge.Transform  = this._host.Transform;
        }
示例#19
0
        //double _timeStep, _duration, _isovistRadius;
        //int _destinationCount;

        public OptionalScenarioTraining(OSMDocument host)
        {
            InitializeComponent();
            this._host = host;
            this._dataCtrlPanel.Click  += this._dataCtrlPanel_Click;
            this._paramCtrlPanel.Click += new RoutedEventHandler(_paramCtrlPanel_Click);
            this.AllDestinations        = new StateBase[this._host.trailVisualization.AgentWalkingTrail.InterpolatedStates.Length - 1];
            this._sb = new StringBuilder();
            this._run_close.Click += this._run_Click;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AgentRouteParameterSetting"/> class.
 /// </summary>
 /// <param name="host">The host.</param>
 public AgentRouteParameterSetting(OSMDocument host)
 {
     InitializeComponent();
     this._host = host;
     this.IsovistExternalDepth.Text = this._host.AgentIsovistExternalDepth.ToString();
     this.AngleIntercept.Text       = this._host.MaximumNumberOfDestinations.ToString();
     this._done.Click         += _done_Click1;
     this._setCosts.Click     += _setCosts_Click;
     this._cancelWindow.Click += _cancelWindow_Click;
     this.Loaded += Window_Loaded;
 }
 public EditActivitiesUI(OSMDocument host)
 {
     InitializeComponent();
     this._host = host;
     this._availableFields.ItemsSource       = this._host.AllActivities.Values;
     this._availableFields.DisplayMemberPath = "Name";
     this._save.Click       += this._save_Click;
     this._load.Click       += _load_Click;
     this.OKAY.Click        += OKAY_Click;
     this._setCosts.Click   += _setCosts_Click;
     this._parameters.Click += _parameters_Click;
 }
        public VisualizeSequence(OSMDocument host)
        {
            InitializeComponent();
            this._host = host;
            this._existingSequences.ItemsSource       = this._host.AgentMandatoryScenario.Sequences;
            this._existingSequences.DisplayMemberPath = "Name";
            this.Loaded       += VisualizeSequence_Loaded;
            this._close.Click += _close_Click;
            double step = Math.Min(this._host.UnitConvertor.Convert(0.1d), this._host.cellularFloor.CellSize / 4);

            this._stepSize.Text = step.ToString("0.000");
        }
 public void SetHost(OSMDocument host, string menueName)
 {
     this._host           = host;
     this.RenderTransform = this._host.RenderTransformation;
     this.setMenuName(menueName);
     this._host.ViewUtil.Items.Add(this.visualizationMenu);
     this.setGeometry(this._host.cellularFloor.BarrierBuffers);
     this.boarderBrush = new SolidColorBrush(Colors.Gold)
     {
         Opacity = .8
     };
     this.boarderThickness = this._host.UnitConvertor.Convert(0.25d);
     this.draw();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TextFormulaSet"/> class.
 /// </summary>
 /// <param name="host">The main document to which this class belongs.</param>
 /// <param name="spatialDataField">The spatial data field.</param>
 public TextFormulaSet(OSMDocument host, SpatialDataField spatialDataField)
 {
     InitializeComponent();
     this._host                  = host;
     this._min                   = spatialDataField.Min;
     this._max                   = spatialDataField.Max;
     this._test.Click           += _test_Click;
     this.main.TextChanged      += main_TextChanged;
     this.Loaded                += Window_Loaded;
     this._insetParameter.Click += new RoutedEventHandler(_insetParameter_Click);
     this.main.Text              = spatialDataField.TextFormula;
     this._spatialDataField      = spatialDataField;
     this.LinkedParameters       = new HashSet <Parameter>();
 }
        /// <summary>
        /// Sets the host.
        /// </summary>
        /// <param name="host">The main document to which this control belongs.</param>
        /// <param name="menueName">Name of the menu.</param>
        /// <param name="type">The type.</param>
        public void SetHost(OSMDocument host, string menueName, SceneType type)
        {
            this._host           = host;
            this.RenderTransform = this._host.RenderTransformation;
            this.setMenuName(menueName);
            this._host.ViewUtil.Items.Add(this.visualizationMenu);
            switch (type)
            {
            case SceneType.Grid:
                this.setGeometry(this._host.cellularFloor);
                this.boarderBrush = new SolidColorBrush(Colors.DarkRed)
                {
                    Opacity = .6
                };
                this.boarderThickness = .15;
                break;

            case SceneType.VisualBarriers:
                this.setGeometry(this._host.BIM_To_OSM.VisualBarriers);
                this.fillBrush = new SolidColorBrush(Colors.Black)
                {
                    Opacity = .8
                };
                this.boarderThickness = .1;
                break;

            case SceneType.PhysicalBarriers:
                this.setGeometry(this._host.BIM_To_OSM.PhysicalBarriers);
                this.fillBrush = new SolidColorBrush(Colors.Black)
                {
                    Opacity = .6
                };
                this.boarderThickness = .1;
                break;

            case SceneType.Field:
                this.setGeometry(this._host.BIM_To_OSM.FieldBarriers);
                this.fillBrush = new SolidColorBrush(Color.FromRgb(170, 161, 156))
                {
                    Opacity = 1.0
                };
                this.boarderThickness = .01;
                break;

            default:
                break;
            }
            this.draw();
        }
        /// <summary>
        /// Sets the main document to which this control belongs.
        /// </summary>
        /// <param name="host">The host.</param>
        public void SetHost(OSMDocument host)
        {
            this._host             = host;
            this.RenderTransform   = this._host.RenderTransformation;
            this._stroke_thickness = UnitConversion.Convert(0.1d, Length_Unit_Types.FEET, this._host.BIM_To_OSM.UnitType);
            this._host.Menues.Items.Insert(5, this._eventMenu);
            this._host._createNewSpatialDataField.Items.Add(this._generateData);

            var     bindConvector = new ValueToBoolConverter();
            Binding bind          = new Binding("VisualEventSettings");

            bind.Source    = this._host;
            bind.Converter = bindConvector;
            bind.Mode      = BindingMode.OneWay;
            this._reportVisibilityDetails.SetBinding(MenuItem.IsEnabledProperty, bind);
        }
示例#27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetTrail"/> class.
 /// </summary>
 /// <param name="host">The document to which this class belongs.</param>
 public SetTrail(OSMDocument host)
 {
     InitializeComponent();
     this._host = host;
     if (this._host.trailVisualization.AgentWalkingTrail != null)
     {
         this._smoothness.Value = this._host.trailVisualization.AgentWalkingTrail.Curvature;
         this._pointPerLengthUnite.SelectedValue = this._host.trailVisualization.AgentWalkingTrail.NumberOfPointsPerUniteOfLength;
         this._subdivision.SelectedValue         = this._host.trailVisualization.AgentWalkingTrail.NumberOfPointsPerUniteOfLength;
     }
     this.Loaded          += new RoutedEventHandler(CreateTrail_Loaded);
     this._closeBtm.Click += _closeBtm_Click;
     this._pointPerLengthUnite.SelectionChanged += _pointPerLengthUnite_SelectionChanged;
     this._smoothness.ValueChanged      += _smoothness_ValueChanged;
     this._subdivision.SelectionChanged += _subdivision_SelectionChanged;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="MandatoryScenarioTrainer"/> class.
        /// </summary>
        /// <param name="host">The host.</param>
        /// <param name="fixedTimeStep">The fixed time step.</param>
        /// <param name="duration">The duration.</param>
        /// <param name="activity">The activity.</param>
        public MandatoryScenarioTrainer(OSMDocument host, double fixedTimeStep, double duration, Activity activity)
        {
            this.Duration              = duration;
            this.FixedTimeStep         = fixedTimeStep / 1000.0d;
            this._random               = new Random(DateTime.Now.Millisecond);
            this._cellularFloor        = host.cellularFloor;
            this.BarrierRepulsionRange = host.Parameters[AgentParameters.GEN_BarrierRepulsionRange.ToString()].Value;
            this.RepulsionChangeRate   = host.Parameters[AgentParameters.GEN_MaximumRepulsion.ToString()].Value;
            this.BarrierFriction       = host.Parameters[AgentParameters.GEN_BarrierFriction.ToString()].Value;
            this.BodyElasticity        = host.Parameters[AgentParameters.GEN_AgentBodyElasticity.ToString()].Value;
            this.AccelerationMagnitude = host.Parameters[AgentParameters.GEN_AccelerationMagnitude.ToString()].Value;
            this.AngularVelocity       = host.Parameters[AgentParameters.GEN_AngularVelocity.ToString()].Value;

            this.BodySize          = host.Parameters[AgentParameters.GEN_BodySize.ToString()].Value;
            this.VelocityMagnitude = host.Parameters[AgentParameters.GEN_VelocityMagnitude.ToString()].Value;
            this.CurrentActivity   = activity;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MandatoryScenarioTraining"/> class.
 /// </summary>
 /// <param name="host">The main document to which this window belongs.</param>
 public MandatoryScenarioTraining(OSMDocument host)
 {
     InitializeComponent();
     this._host = host;
     this._dataCtrlPanel.Click  += this._dataCtrlPanel_Click;
     this._paramCtrlPanel.Click += new RoutedEventHandler(_paramCtrlPanel_Click);
     this.AllDestinations        = new StateBase[this._host.trailVisualization.AgentWalkingTrail.InterpolatedStates.Length - 1];
     this._sb = new StringBuilder();
     this._run_close.Click += _run_Click;
     if (this._host.FieldGenerator == null)
     {
         this._host.FieldGenerator = new Data.Visualization.SpatialDataCalculator(this._host, 5);
     }
     this._neighborhoodRangePotential.Text = this._host.FieldGenerator.Range.ToString();
     if (this._host.ViewBasedGaussianFilter == null)
     {
         this._host.ViewBasedGaussianFilter = new IsovistClippedGaussian(this._host.cellularFloor, 7);
     }
     this._gaussianRangeDefault.Text = this._host.ViewBasedGaussianFilter.Range.ToString();
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="SpatialDataControlPanel"/> class.
        /// </summary>
        /// <param name="host">The main document to which this window belongs.</param>
        /// <param name="types">The types of data to include.</param>
        public SpatialDataControlPanel(OSMDocument host, IncludedDataTypes types)
        {
            InitializeComponent();
            this._host = host;
            switch (types)
            {
            case IncludedDataTypes.SpatialData:
                this.onlySpatialData(this._host.cellularFloor.AllSpatialDataFields);
                break;

            case IncludedDataTypes.SpatialDataAndActivities:
                this.SpatialDataAndActivities();
                break;

            case IncludedDataTypes.All:
                this.anyData();
                break;
            }
            this._grid.SizeChanged += _grid_SizeChanged;
        }