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.
Fields and properties (8)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected 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 SettingsThe selected node's settings.
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()Builds whatever this element is made of, once, as it joins a document.
public void Show(CompositorDocument compositor)Shows a compositor.
protected override void OnRemoved()public int Compile()Compiles the graph and lists what it said.
public void Restate()Rebuilds the settings panel for whatever is selected.
Used by (1)
- CompositorEditorFactoryVixen.Editor.AssetEditors