public StructurePointDetailViewModel(Structure structure, PlotDataPoint point) { var location = Length.FromNanometers(point.X); var layer = structure.GetLayer(location); TitleText = layer.Name; LocationText = location.NanometersToString("{00:F3} nm"); EFieldText = structure.GetElectricField(location).MegavoltsPerCentimeterToString("{00:F3} MV/cm"); PotentialText = structure.GetPotential(location).ToString("{00:F3} V"); }
public Material GetMaterialAtPoint(PlotDataPoint point) { return(TestBench.Structure.GetLayer(Length.FromNanometers(point.X))); }