Vixen
02b45cc4
csharp
public sealed class VariationHarnessView

The variation matrix: every configuration against every goal, worst cell first.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The report is the deliverable, and the drill-down is what makes it a tool. A grid of numbers saying a clip is wrong somewhere is not actionable. Selecting a cell raises CellSelected with the configuration rebuilt and the moment attached, so the application can put that body, that prop and that frame on screen.

⚠ A goal that never resolved is drawn differently from one that missed, rather than as a zero. It is the most common way a variation actually breaks and it sorts to the top.

⚠ The panel runs a plan and does not own the running. Pressing Run asks TryRun, which is synchronous and answers why it could not start rather than throwing — a plan whose clip has not been imported yet is an ordinary state. A host that wants a run on a background task, with progress and a cancellation, calls VariationHarness itself and uses Show to show the answer.

Fields and properties (9)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Bar

    The bar across the top.

  • public UiElement Verdict

    What the run was and whether it passed.

  • public Button Run

    Runs the plan. Only useful when the panel is showing a document.

  • public Button Worst

    Jumps to the worst cell without hunting for it.

  • public UiElement Matrix

    The grid.

  • public UiElement Fields

    What the selected cell is.

  • public HarnessCell? Selected

    Which cell is selected, or .

Events (1)

Methods (6)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(HarnessPlan ran, VariationReport result)

    Shows a report.

  • public void Show(HarnessDocument declared)

    Shows a declared plan, which can then be run from the bar.

  • public void Reload(HarnessDocument declared)

    Rebuilds from the document.

  • public void Reload()

    Rebuilds the grid from the report.

  • public void Select(in HarnessCell cell)

    Selects a cell and tells whoever is listening.

Used by (2)

  • HarnessEditorFactoryVixen.Editor.AssetEditors
  • HarnessViewTestsVixen.Editor.AssetEditors.Tests