Class SceneItem
- Namespace
- VisioForge.Core.SceneSwitching
- Assembly
- VisioForge.Core.dll
Represents a source placement within a scene. Each scene item references a registered source and defines how it should appear (position, size, opacity, z-order, audio settings).
public class SceneItemInheritance
Inherited Members
Constructors
SceneItem(Guid, SceneItemTransform)
Initializes a new instance of the VisioForge.Core.SceneSwitching.SceneItem class.
public SceneItem(Guid sourceId, SceneItemTransform transform)Parameters
sourceIdGuid-
The ID of the registered source.
transformSceneItemTransform-
The visual transform properties.
SceneItem(Guid, Rect, uint, double)
Initializes a new instance of the VisioForge.Core.SceneSwitching.SceneItem class with individual parameters.
public SceneItem(Guid sourceId, Rect rectangle, uint zOrder, double opacity = 1)Parameters
sourceIdGuid-
The ID of the registered source.
rectangleRect-
The position and size rectangle.
zOrderuint-
The z-order value.
opacitydouble-
The opacity value.
Properties
ID
Gets the unique identifier for this scene item.
public Guid ID { get; }Property Value
KeepAspectRatio
Gets or sets a value indicating whether to keep aspect ratio.
public bool KeepAspectRatio { get; set; }Property Value
Muted
Gets or sets a value indicating whether this source's audio is muted in this scene.
public bool Muted { get; set; }Property Value
Opacity
Gets or sets the opacity. Range [0.0..1.0]. 0.0 = fully transparent, 1.0 = fully opaque.
public double Opacity { get; set; }Property Value
Rectangle
Gets or sets the position and size rectangle within the compositor output.
public Rect Rectangle { get; set; }Property Value
SourceID
Gets the ID of the registered source this item references.
public Guid SourceID { get; }Property Value
SourceName
Gets the name of the referenced source (convenience accessor).
public string SourceName { get; }Property Value
Visible
Gets or sets a value indicating whether this item is visible in the scene.
public bool Visible { get; set; }Property Value
Volume
Gets or sets the audio volume for this source in this scene. Range [0.0..1.0].
public double Volume { get; set; }Property Value
ZOrder
Gets or sets the z-order (layer position). Higher values render on top.
public uint ZOrder { get; set; }Property Value
Methods
ToString()
Returns a string representation of this scene item.
public override string ToString()