Skip to content

ChartMorphRenderer

ClassChartGuruChartGuru
public sealed class ChartMorphRenderer

The single morph-aware piece of code in ChartGuru. Given a source and target chart type plus a normalised t, projects both ends of the transition to ChartGuru.MarkShapeBatches, matches their marks by (series, mark) identity, and dispatches each pair through ChartGuru.MorphRecipes.

The per-type renderers ([ChartGuru.ChartRenderer](/tools/chartguru/api/chartguru-chartrenderer/)'s Bars, Lines, Sectors partials) know nothing about morphing; everything semantic happens here. Adding a new cross-kind transition is a recipe edit; adding a new chart type is a projector edit.

public float RenderScale { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

ChartMorphRenderer(Chart, ChartTheme, ChartLayoutEngine, IMarkColorResolver, Material, Material, float)

Section titled “ChartMorphRenderer(Chart, ChartTheme, ChartLayoutEngine, IMarkColorResolver, Material, Material, float)”
public ChartMorphRenderer(Chart chart, ChartTheme theme, ChartLayoutEngine layout, IMarkColorResolver colors, Material plain, Material aa, float renderScale)

No description is available for this member.

Parameters

Name Type Description
chart ChartGuru.Chart
theme ChartGuru.ChartTheme
layout ChartGuru.ChartLayoutEngine
colors ChartGuru.IMarkColorResolver
plain UnityEngine.Material
aa UnityEngine.Material
renderScale System.Single

public void Render(Rect screenRect, ChartType source, ChartType target, float t)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
source ChartGuru.ChartType
target ChartGuru.ChartType
t System.Single

Render(Rect, ChartType, ChartType, float, ChartMorphStyle)

Section titled “Render(Rect, ChartType, ChartType, float, ChartMorphStyle)”
public void Render(Rect screenRect, ChartType source, ChartType target, float t, ChartMorphStyle style)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
source ChartGuru.ChartType
target ChartGuru.ChartType
t System.Single
style ChartGuru.ChartMorphStyle
public void RenderStatic(Rect screenRect, ChartType type)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
type ChartGuru.ChartType