public sealed class CompositorViewA graphics compositor, open for editing: the graph, the selected node, and the frame.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Doc 06's "the frame is data the user edits", with a canvas over it. The graph itself is NodeGraphView's — every gesture there is already an undoable command, and nothing about a compositor changes that — so what is here is the two things a compositor needs beside it: the settings of whatever is selected, and what compiling says.
⚠ The settings panel is not the inspector, and the reason is where the values live. An InspectorView edits members of an object; a node's settings live on the graph, in Values and Texts keyed by port name, because that is what survives a save and an undo. So the rows are built from Fields and write through SetPortValueCommand and SetPortTextCommand — which is what keeps typing a target name one undo entry rather than one a keystroke.
The panel is CompositorView.vxml; this file is the accessibility modifier and the factory. The emitter's partial carries no modifier and this type is handed out by CreateView.
Fields and properties (10)
protected override string TagNameprotected override bool AcceptsFocusWhether the focus can rest on this kind of control at all.
public NodeGraphView GraphViewThe canvas.
public UiElement SideThe column beside it.
public UiElement SettingsWhere the selected node's settings go.
public KeyValueList FieldsThe rows themselves.
public UiElement CaptionThe line above the rows.
public Button BuildThe button that compiles the graph.
public UiElement DiagnosticsWhat compiling said.
public int RowCountHow many settings rows are showing.
Methods (5)
protected override void OnCreated()protected override void OnRemoved()public void Show(CompositorDocument compositor)Shows a compositor.
public int Compile()Compiles the graph and lists what it said.
public void Restate()Rebuilds the settings panel for whatever is selected.
Used by (3)
- ChromeDumpTestsVixen.Editor.AssetEditors.Tests
- CompositorEditorFactoryVixen.Editor.AssetEditors
- CompositorSettingsTestsVixen.Editor.AssetEditors.Tests