Пример #1
0
		/// <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);
		}
Пример #2
0
		protected override void OnCachedResultingSizeChanged()
		{
			// first update out direct childs
			if (null != CoordinateSystem)
				_coordinateSystem = _coordinateSystem.WithLayerSize(this.Size);

			base.OnCachedResultingSizeChanged();
		}
Пример #3
0
		public XYZPlotLayer(HostLayer parentLayer, G3DCoordinateSystem coordinateSystem)
			: this(parentLayer, GetChildLayerDefaultLocation(), coordinateSystem)
		{
		}