/* * function MaxEpochInterval: Double; override; * * * procedure SetICSonic3D (const Value :Byte ); override; * procedure SetInAvoidZoneState(const Value: TICInAvoidZoneState); override; * procedure SetAgeOfCorrection(const Value: Byte); override; */ /// <summary> /// Updates the bounding box surrounding the area of the project worked on with the current /// design name selected on the machine. /// </summary> protected void UpdateCurrentDesignExtent() { int DesignIndex = SiteModel.SiteModelDesigns.IndexOf(_Design); if (DesignIndex != -1) { SiteModel.SiteModelDesigns[DesignIndex].Extents = DesignExtent; } // Clear the design extent being maintained in the processor. DesignExtent.SetInverted(); }
protected void SelectCurrentDesignExtent() { int DesignIndex = SiteModel.SiteModelDesigns.IndexOf(_Design); if (DesignIndex == -1) { // This may be because there is no selected design name, or that the // entry for this named design is not in the list. If the former, just clear the // design extents. If the latter, create a new design extents entry // Clear the design extent being maintained in the processor. DesignExtent.SetInverted(); if (_Design != string.Empty) { SiteModel.SiteModelDesigns.CreateNew(_Design, DesignExtent); } } else { DesignExtent = SiteModel.SiteModelDesigns[DesignIndex].Extents; } }