示例#1
0
        public ILMarkerWrapper(ILMarker source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, BuildName(name, editor.Panel, source, "Marker"), label)
        {
            this.source = source;

            fill = new ILTrianglesWrapper(source.Fill, editor, Path, ILMarker.DefaultFillTag, "Fill");
            border = new ILLinesWrapper(source.Border, editor, Path, ILMarker.DefaultBorderTag, "Border");
        }
        public ILPlotCubeScaleGroupWrapper(ILPlotCubeScaleGroup source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, BuildName(name, editor.Panel, source, ILPlotCubeScaleGroup.DefaultTag),
                   String.IsNullOrEmpty(label) ? GetPlotCubeScaleGroupLabel(source, editor.Panel) : label)
        {
            this.source = source;

            axes = new ILAxisCollectionWrapper(source.First<ILAxisCollection>(ILPlotCubeScaleGroup.AxesTag), editor, Path, ILPlotCubeScaleGroup.AxesTag);
            lines = new ILLinesWrapper(source.First<ILLines>(ILPlotCubeScaleGroup.LinesTag), editor, Path, ILPlotCubeScaleGroup.LinesTag);
        }
        public ILTickCollectionWrapper(ILTickCollection source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, BuildName(name, editor.Panel, source, ILPlotCube.DefaultTag), label)
        {
            // ILTickCollection needs to be accessed from SceneSyncRoot (instead of Scene)
            this.source = GetSyncNode(source);

            lines = new ILLinesWrapper(this.source.Lines, editor, Path, ILTickCollection.TickLinesTag, "TickLines");
            ticks = new ReadOnlyCollection<ILTickWrapper>(((IEnumerable<ILTick>) source).Select(tick => new ILTickWrapper(tick, editor, Path)).ToList());
        }
示例#4
0
        public ILLinePlotWrapper(ILLinePlot source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, BuildName(name, editor.Panel, source, ILLinePlot.LinePlotTag),
                   String.IsNullOrEmpty(label) ? GetLinePlotLabelFromLegend(source, editor.Panel) : label)
        {
            this.source = source;

            line = new ILLinesWrapper(source.Line, editor, Path, ILLinePlot.LineTag, "Line");
            marker = new ILMarkerWrapper(source.Marker, editor, Path, ILLinePlot.MarkerTag, "Marker");
            positions = new ReadOnlyCollection<float>(source.Positions.ToList());
        }
示例#5
0
        public ILSurfaceWrapper(ILSurface source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, BuildName(name, editor.Panel, source, ILLinePlot.LinePlotTag),
                   String.IsNullOrEmpty(label) ? GetSurfaceLabelFromLegend(source, editor.Panel) : label)
        {
            this.source = source;

            fill = new ILTrianglesWrapper(source.Fill, editor, Path, ILSurface.FillTag, "Fill");
            wireframe = new ILLinesWrapper(source.Wireframe, editor, Path, ILSurface.WireframeTag, "Wireframe");
            positions = new ReadOnlyCollection<float>(source.Positions.ToList());
        }
示例#6
0
        public ILAxisWrapper(ILAxis source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, String.IsNullOrEmpty(name) ? source.AxisName.ToString().Replace(" ", String.Empty) : name,
                   String.IsNullOrEmpty(label) ? source.AxisName.ToString() : label)
        {
            this.source = source;

            this.label = new ILLabelWrapper(source.Label, editor, Path, ILAxis.LabelTag, "AxisLabel");
            scaleLabel = new ILLabelWrapper(source.ScaleLabel, editor, Path, ILAxis.ScaleLabelTag, "ScaleLabel");
            ticks = new ILTickCollectionWrapper(source.Ticks, editor, Path, "TicksCollection");
            gridMajor = new ILLinesWrapper(source.GridMajor, editor, Path, ILAxis.GridMajorLinesTag, "GridMajor");
            gridMinor = new ILLinesWrapper(source.GridMinor, editor, Path, ILAxis.GridMinorLinesTag, "GridMinor");
        }