/// <summary> /// Creates a layer at the provided <paramref name="location"/>. /// </summary> /// <param name="parentLayer">The parent layer of the newly created layer.</param> /// <param name="location">The position of the layer on the printable area in points (1/72 inch).</param> /// <param name="coordinateSystem">The coordinate system to use for the layer.</param> public XYZPlotLayer(HostLayer parentLayer, IItemLocation location, G3DCoordinateSystem coordinateSystem) : base(parentLayer, location) { this.CoordinateSystem = coordinateSystem; this.AxisStyles = new AxisStyleCollection(); this.Scales = new ScaleCollection(3); this.GridPlanes = new GridPlaneCollection(); this.GridPlanes.Add(new GridPlane(CSPlaneID.Front)); this.PlotItems = new PlotItemCollection(this); }
protected override void OnCachedResultingSizeChanged() { // first update out direct childs if (null != CoordinateSystem) _coordinateSystem = _coordinateSystem.WithLayerSize(this.Size); base.OnCachedResultingSizeChanged(); }
public XYZPlotLayer(HostLayer parentLayer, G3DCoordinateSystem coordinateSystem) : this(parentLayer, GetChildLayerDefaultLocation(), coordinateSystem) { }