static public void Init( out DefaultColors c ) { c.m_activeObject = new btVector3( 1, 1, 1,1 ); c.m_deactivatedObject = new btVector3( 0, 1, 0, 1 ); c.m_wantsDeactivationObject = new btVector3( 0, 1, 1, 1 ); c.m_disabledDeactivationObject = new btVector3( 1, 0, 0, 1 ); c.m_disabledSimulationObject = new btVector3( 1, 1, 0, 1 ); c.m_aabb = new btVector3( 1, 0, 0, 1 ); c.m_contactPoint = new btVector3( 1, 1, 0, 1 ); }
/// <summary> /// Synchronize properties in the internal Plot model /// </summary> private void SynchronizeProperties() { var m = internalModel; m.PlotType = PlotType; m.PlotMargins = PlotMargins.ToOxyThickness(); m.Padding = Padding.ToOxyThickness(); m.TitlePadding = TitlePadding; m.Culture = Culture; m.DefaultColors = DefaultColors.Select(c => c.ToOxyColor()).ToArray(); m.DefaultFont = DefaultFont; m.DefaultFontSize = DefaultFontSize; m.Title = Title; m.TitleColor = TitleColor.ToOxyColor(); m.TitleFont = TitleFont; m.TitleFontSize = TitleFontSize; m.TitleFontWeight = (int)TitleFontWeight; m.TitleToolTip = TitleToolTip; m.Subtitle = Subtitle; m.SubtitleColor = SubtitleColor.ToOxyColor(); m.SubtitleFont = SubtitleFont; m.SubtitleFontSize = SubtitleFontSize; m.SubtitleFontWeight = (int)SubtitleFontWeight; m.TextColor = TextColor.ToOxyColor(); m.SelectionColor = SelectionColor.ToOxyColor(); m.RenderingDecorator = RenderingDecorator; m.AxisTierDistance = AxisTierDistance; m.IsLegendVisible = IsLegendVisible; m.PlotAreaBackground = PlotAreaBackground.ToOxyColor(); m.PlotAreaBorderColor = PlotAreaBorderColor.ToOxyColor(); m.PlotAreaBorderThickness = PlotAreaBorderThickness.ToOxyThickness(); }
///the default implementation for setDefaultColors has no effect. A derived class can implement it and store the colors. public virtual void setDefaultColors( DefaultColors c ) { }
/// <summary> /// Synchronize properties in the internal Plot model /// </summary> private void SynchronizeProperties() { var m = internalModel; m.PlotType = PlotType; m.PlotMargins = PlotMargins.ToOxyThickness(); m.Padding = Padding.ToOxyThickness(); m.TitlePadding = TitlePadding; m.Culture = Culture; m.DefaultColors = DefaultColors.Select(c => c.ToOxyColor()).ToArray(); m.DefaultFont = DefaultFont; m.DefaultFontSize = DefaultFontSize; m.Title = Title; m.TitleColor = TitleColor.ToOxyColor(); m.TitleFont = TitleFont; m.TitleFontSize = TitleFontSize; m.TitleFontWeight = (int)TitleFontWeight; m.TitleToolTip = TitleToolTip; m.Subtitle = Subtitle; m.SubtitleColor = SubtitleColor.ToOxyColor(); m.SubtitleFont = SubtitleFont; m.SubtitleFontSize = SubtitleFontSize; m.SubtitleFontWeight = (int)SubtitleFontWeight; m.TextColor = TextColor.ToOxyColor(); m.SelectionColor = SelectionColor.ToOxyColor(); m.RenderingDecorator = RenderingDecorator; m.AxisTierDistance = AxisTierDistance; m.IsLegendVisible = IsLegendVisible; m.LegendTextColor = LegendTextColor.ToOxyColor(); m.LegendTitle = LegendTitle; m.LegendTitleColor = LegendTitleColor.ToOxyColor(); m.LegendTitleFont = LegendTitleFont; m.LegendTitleFontSize = LegendTitleFontSize; m.LegendTitleFontWeight = (int)LegendTitleFontWeight; m.LegendFont = LegendFont; m.LegendFontSize = LegendFontSize; m.LegendFontWeight = (int)LegendFontWeight; m.LegendSymbolLength = LegendSymbolLength; m.LegendSymbolMargin = LegendSymbolMargin; m.LegendPadding = LegendPadding; m.LegendColumnSpacing = LegendColumnSpacing; m.LegendItemSpacing = LegendItemSpacing; m.LegendLineSpacing = LegendLineSpacing; m.LegendMargin = LegendMargin; m.LegendMaxHeight = LegendMaxHeight; m.LegendMaxWidth = LegendMaxWidth; m.LegendBackground = LegendBackground.ToOxyColor(); m.LegendBorder = LegendBorder.ToOxyColor(); m.LegendBorderThickness = LegendBorderThickness; m.LegendPlacement = LegendPlacement; m.LegendPosition = LegendPosition; m.LegendOrientation = LegendOrientation; m.LegendItemOrder = LegendItemOrder; m.LegendItemAlignment = LegendItemAlignment.ToHorizontalAlignment(); m.LegendSymbolPlacement = LegendSymbolPlacement; m.PlotAreaBackground = PlotAreaBackground.ToOxyColor(); m.PlotAreaBorderColor = PlotAreaBorderColor.ToOxyColor(); m.PlotAreaBorderThickness = PlotAreaBorderThickness.ToOxyThickness(); }
public static bool IsValidColor(string color) { return(HexColor.IsMatch(color) || DefaultColors.Contains(color)); }