Summary
Represents a scene graph used by the
DeferredRenderer
.
- Namespace
- Avalonia
.Rendering .SceneGraph - Interfaces
-
- IDisposable
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IDisposable"]
Type["Scene"]
class Type type-node
Syntax
public class Scene : IDisposable
Constructors
Name | Summary |
---|---|
Scene |
Initializes a new instance of the Scene class.
|
Properties
Name | Value | Summary |
---|---|---|
Generation | int |
Gets a value identifying the scene's generation. This is incremented each time the scene is cloned.
|
Layers | SceneLayers |
Gets the layers for the scene.
|
Rendered | Task | |
Root | IVisualNode |
Gets the root node of the scene graph.
|
Scaling | double |
Gets or sets the scene scaling.
|
Size | Size |
Gets or sets the size of the scene in device independent pixels.
|
Methods
Name | Value | Summary |
---|---|---|
Add |
void |
Adds a node to the scene index.
|
CloneScene |
Scene |
Clones the scene.
|
Dispose |
void | |
FindNode |
IVisualNode |
Tries to find a node in the scene graph representing the specified visual.
|
HitTest |
IEnumerable |
Gets the visuals at a point in the scene.
|
HitTestFirst |
IVisual |
Gets the visual at a point in the scene.
|
MarkAsRendered |
void | |
Remove |
void |
Removes a node from the scene index.
|