Class ToolSceneNode
Namespace: ValveResourceFormat.Renderer.Editor.ToolRender
Assembly: Renderer.dll
Tool shapes that are part of the scene, such as what an entity's helpers draw while it is not selected. They are culled and shown with the layer they are on, drawn in the tools pass, and picked with the scene.
public sealed class ToolSceneNode : SceneNodeInheritance
object ← SceneNode ← ToolSceneNode
Inherited Members
SceneNode.Tint, SceneNode.Alpha, SceneNode.TintAlpha, SceneNode.Transform, SceneNode.LayerName, SceneNode.LayerEnabled, SceneNode.Visible, SceneNode.BoundingBox, SceneNode.LocalBoundingBox, SceneNode.Name, SceneNode.Id, SceneNode.IsPointMarker, SceneNode.Flags, SceneNode.AdditionalFlags, SceneNode.RenderPasses, SceneNode.UpdateBuffers(Camera), SceneNode.Scene, SceneNode.KeepsMarkerSize, SceneNode.Parent, SceneNode.Children, SceneNode.ParentAttachment, SceneNode.LocalTransform, SceneNode.SetParent(SceneNode?, string?, Matrix4x4?), SceneNode.GetChildFrame(string?), SceneNode.UpdateHierarchy(Scene.UpdateContext), SceneNode.ShaderEnvMapVisibility, SceneNode.LightingOrigin, SceneNode.OverlayRenderOrder, SceneNode.CubeMapPrecomputedHandshake, SceneNode.LightProbeVolumePrecomputedHandshake, SceneNode.LightProbeBinding, SceneNode.EnvMapBinding, SceneNode.EntityData, SceneNode.EntityInstance, SceneNode.Update(Scene.UpdateContext), SceneNode.Simulation, SceneNode.Render(Scene.RenderContext), SceneNode.GetSupportedRenderModes(), SceneNode.SetRenderMode(string), SceneNode.Delete(), SceneNode.GetCameraDistance(Camera)
Constructors
ToolSceneNode(Scene)
Initializes a node with no shapes yet.
public ToolSceneNode(Scene scene)Parameters
scene Scene
The scene the node belongs to.
Properties
Geometry
Gets the shapes, in the space of the node.
public ToolGeometry Geometry { get; }Property Value
IsHiddenWhileSelected
Gets or sets whether the shapes are not drawn because what they belong to is selected, and is drawn the way it is while selected instead.
public bool IsHiddenWhileSelected { get; set; }Property Value
bool
Methods
Delete()
Releases resources held by this node.
public override void Delete()Draw(Action<ToolRenderContext>)
Draws shapes into the node, and fits its bounds to everything it holds.
public void Draw(Action<ToolRenderContext> draw)Parameters
draw Action<ToolRenderContext>
Draws the shapes, in the space of the node.
Render(RenderContext)
Called each frame to render this node.
public override void Render(Scene.RenderContext context)Parameters
context Scene.RenderContext
The current render context.

