public void SetXBoundsFromTemplate(IPhysicalBoundaries val) { if (null == _xBoundaries || val.GetType() != _xBoundaries.GetType()) { if (ChildCopyToMember(ref _xBoundaries, val)) { _isCachedDataValid = false; EhSelfChanged(EventArgs.Empty); } } }
public void MergeYBoundsInto(IPhysicalBoundaries pb) { if (null == _yBoundaries || pb.GetType() != _yBoundaries.GetType()) { this.SetYBoundsFromTemplate(pb); } if (!this._isCachedDataValid) { _SupressBoundaryChangeEvents++; this.CalculateCachedData(); _SupressBoundaryChangeEvents--; } pb.Add(_yBoundaries); }
public void MergeZBoundsInto(IPhysicalBoundaries pb) { if (null == _zBoundaries || pb.GetType() != _zBoundaries.GetType()) { SetZBoundsFromTemplate(pb); } if (!_isCachedDataValidY) { using (var suspendToken = SuspendGetToken()) { CalculateCachedData(); } } pb.Add(_zBoundaries); }
public void CalculateCachedData(IPhysicalBoundaries xBounds, IPhysicalBoundaries yBounds) { if (_xBoundaries == null || _xBoundaries.GetType() != xBounds.GetType()) { this.SetXBoundsFromTemplate(xBounds); } if (_yBoundaries == null || _yBoundaries.GetType() != yBounds.GetType()) { this.SetYBoundsFromTemplate(yBounds); } CalculateCachedData(); }
/// <summary> /// This sets the y boundary object to a object of the same type as val. The inner data of the boundary, if present, /// are copied into the new y boundary object. /// </summary> /// <param name="val">The template boundary object.</param> protected void SetYBoundsFromTemplate(IPhysicalBoundaries val) { if (null == _yBoundaries || val.GetType() != _yBoundaries.GetType()) { if (null != _yBoundaries) { _yBoundaries.BoundaryChanged -= new BoundaryChangedHandler(this.EhYBoundariesChanged); } _yBoundaries = (IPhysicalBoundaries)val.Clone(); _yBoundaries.BoundaryChanged += new BoundaryChangedHandler(this.EhYBoundariesChanged); _isCachedDataValid = false; OnChanged(); } }
public void SetVBoundsFromTemplate(IPhysicalBoundaries val) { if (null == m_vBoundaries || val.GetType() != m_vBoundaries.GetType()) { if (null != m_vBoundaries) { m_vBoundaries.BoundaryChanged -= new BoundaryChangedHandler(this.OnVBoundariesChangedEventHandler); } m_vBoundaries = (NumericalBoundaries)val.Clone(); m_vBoundaries.BoundaryChanged += new BoundaryChangedHandler(this.OnVBoundariesChangedEventHandler); this.m_bCachedDataValid = false; OnChanged(); } }
public void CalculateCachedData(IPhysicalBoundaries xBounds, IPhysicalBoundaries yBounds) { if (this.IsDisposeInProgress) return; if (_xBoundaries == null || (xBounds != null && _xBoundaries.GetType() != xBounds.GetType())) { _isCachedDataValidX = false; this.SetXBoundsFromTemplate(xBounds); } if (_yBoundaries == null || (yBounds != null && _yBoundaries.GetType() != yBounds.GetType())) { _isCachedDataValidY = false; this.SetYBoundsFromTemplate(yBounds); } if (!_isCachedDataValidX || !_isCachedDataValidY) CalculateCachedData(); }
/// <summary> /// This sets the y boundary object to a object of the same type as val. The inner data of the boundary, if present, /// are copied into the new y boundary object. /// </summary> /// <param name="val">The template boundary object.</param> protected void SetYBoundsFromTemplate(IPhysicalBoundaries val) { if (null == _yBoundaries || val.GetType() != _yBoundaries.GetType()) { if (ChildCopyToMember(ref _yBoundaries, val)) { _isCachedDataValidY = false; EhSelfChanged(EventArgs.Empty); } } }
public void MergeYBoundsInto(IPhysicalBoundaries pb) { if (null == _yBoundaries || pb.GetType() != _yBoundaries.GetType()) this.SetYBoundsFromTemplate(pb); if (!this._isCachedDataValidY) { using (var suspendToken = SuspendGetToken()) { this.CalculateCachedData(); } } pb.Add(_yBoundaries); }
public void CalculateCachedData(IPhysicalBoundaries xBounds, IPhysicalBoundaries yBounds, IPhysicalBoundaries vBounds) { if (IsDisposeInProgress) { return; } if (_xBoundaries == null || (xBounds != null && _xBoundaries.GetType() != xBounds.GetType())) { _isCachedDataValidX = false; SetXBoundsFromTemplate(xBounds); } if (_yBoundaries == null || (yBounds != null && _yBoundaries.GetType() != yBounds.GetType())) { _isCachedDataValidY = false; SetYBoundsFromTemplate(yBounds); } if (_zBoundaries == null || (vBounds != null && _zBoundaries.GetType() != vBounds.GetType())) { _isCachedDataValidZ = false; SetZBoundsFromTemplate(yBounds); } if (!_isCachedDataValidX || !_isCachedDataValidY || !_isCachedDataValidZ) { CalculateCachedData(); } }
public void CalculateCachedData(IPhysicalBoundaries xBounds, IPhysicalBoundaries yBounds, IPhysicalBoundaries zBounds = null) { if (this.IsDisposeInProgress) return; if (_xBoundaries == null || (xBounds != null && _xBoundaries.GetType() != xBounds.GetType())) this.SetXBoundsFromTemplate(xBounds); if (_yBoundaries == null || (yBounds != null && _yBoundaries.GetType() != yBounds.GetType())) this.SetYBoundsFromTemplate(yBounds); if (_vBoundaries == null || (zBounds != null && _vBoundaries.GetType() != zBounds.GetType())) this.SetVBoundsFromTemplate(zBounds); CalculateCachedData(); }
public void SetVBoundsFromTemplate(IPhysicalBoundaries val) { if (null == _vBoundaries || val.GetType() != _vBoundaries.GetType()) { if (ChildCopyToMember(ref _vBoundaries, val)) { this._isCachedDataValid = false; EhSelfChanged(EventArgs.Empty); } } }
public void CalculateCachedData(IPhysicalBoundaries xBounds, IPhysicalBoundaries yBounds, IPhysicalBoundaries zBounds = null) { if (IsDisposeInProgress) { return; } if (_xBoundaries == null || (xBounds != null && _xBoundaries.GetType() != xBounds.GetType())) { SetXBoundsFromTemplate(xBounds); } if (_yBoundaries == null || (yBounds != null && _yBoundaries.GetType() != yBounds.GetType())) { SetYBoundsFromTemplate(yBounds); } if (_vBoundaries == null || (zBounds != null && _vBoundaries.GetType() != zBounds.GetType())) { SetVBoundsFromTemplate(zBounds); } CalculateCachedData(); }
public void CalculateCachedData(IPhysicalBoundaries xBounds, IPhysicalBoundaries yBounds) { if (_xBoundaries == null || _xBoundaries.GetType() != xBounds.GetType()) this.SetXBoundsFromTemplate(xBounds); if (_yBoundaries == null || _yBoundaries.GetType() != yBounds.GetType()) this.SetYBoundsFromTemplate(yBounds); CalculateCachedData(); }
/// <summary> /// This sets the y boundary object to a object of the same type as val. The inner data of the boundary, if present, /// are copied into the new y boundary object. /// </summary> /// <param name="val">The template boundary object.</param> protected void SetYBoundsFromTemplate(IPhysicalBoundaries val) { if(null==_yBoundaries || val.GetType() != _yBoundaries.GetType()) { if(null!=_yBoundaries) { _yBoundaries.BoundaryChanged -= new BoundaryChangedHandler(this.EhYBoundariesChanged); } _yBoundaries = (IPhysicalBoundaries)val.Clone(); _yBoundaries.BoundaryChanged += new BoundaryChangedHandler(this.EhYBoundariesChanged); _isCachedDataValid = false; OnChanged(); } }
public void MergeYBoundsInto(IPhysicalBoundaries pb) { if (null == _yBoundaries || pb.GetType() != _yBoundaries.GetType()) this.SetYBoundsFromTemplate(pb); if(!this._isCachedDataValid) { _SupressBoundaryChangeEvents++; this.CalculateCachedData(); _SupressBoundaryChangeEvents--; } pb.Add(_yBoundaries); }