Show / Hide Table of Contents

Class ScenePicker

Implements the scene picker.

Inheritance
System.Object
Visitor<SceneNode, SceneComponent>
ViseratorBase<PickResult, SceneNode, SceneComponent>
Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>
ScenePicker
Implements
System.Collections.Generic.IEnumerator<PickResult>
System.Collections.IEnumerator
System.IDisposable
Inherited Members
Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>.State
Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>.Init(IEnumerable<SceneNode>)
Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>.InitState()
Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>.PushState()
Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>.PopState()
ViseratorBase<PickResult, SceneNode, SceneComponent>.Init(IEnumerable<SceneNode>)
ViseratorBase<PickResult, SceneNode, SceneComponent>.MoveNext()
ViseratorBase<PickResult, SceneNode, SceneComponent>.Reset()
ViseratorBase<PickResult, SceneNode, SceneComponent>.Current
ViseratorBase<PickResult, SceneNode, SceneComponent>.IEnumerator.Current
ViseratorBase<PickResult, SceneNode, SceneComponent>.YieldItem(PickResult)
ViseratorBase<PickResult, SceneNode, SceneComponent>.Viserate()
ViseratorBase<PickResult, SceneNode, SceneComponent>.Dispose()
ViseratorBase<PickResult, SceneNode, SceneComponent>.Dispose(Boolean)
Visitor<SceneNode, SceneComponent>.IgnoreInactiveComponents
Visitor<SceneNode, SceneComponent>.Traverse(SceneNode)
Visitor<SceneNode, SceneComponent>.Traverse(IEnumerable<SceneNode>)
Visitor<SceneNode, SceneComponent>.InitState()
Visitor<SceneNode, SceneComponent>.PushState()
Visitor<SceneNode, SceneComponent>.PopState()
Visitor<SceneNode, SceneComponent>.CurrentNode
Visitor<SceneNode, SceneComponent>.CurrentComponent
Visitor<SceneNode, SceneComponent>.YieldOnCurrentNode
Visitor<SceneNode, SceneComponent>.YieldOnCurrentComponent
Visitor<SceneNode, SceneComponent>.YieldEnumeration
Visitor<SceneNode, SceneComponent>.EnumInit(IEnumerator<SceneNode>)
Visitor<SceneNode, SceneComponent>.EnumMoveNext()
Visitor<SceneNode, SceneComponent>.EnumMoveNextNoComponent()
Visitor<SceneNode, SceneComponent>.VisitorModules
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class ScenePicker : Viserator<PickResult, ScenePicker.PickerState, SceneNode, SceneComponent>, IEnumerator<PickResult>, IEnumerator, IDisposable

Constructors

ScenePicker(SceneContainer)

The constructor to initialize a new ScenePicker.

Declaration
public ScenePicker(SceneContainer scene)
Parameters
Type Name Description
SceneContainer scene

The SceneContainer to pick from.

Properties

PickPosClip

The pick position on the screen.

Declaration
public float2 PickPosClip { get; set; }
Property Value
Type Description
float2

Projection

The current projection matrix.

Declaration
public float4x4 Projection { get; }
Property Value
Type Description
float4x4

View

The current view matrix.

Declaration
public float4x4 View { get; }
Property Value
Type Description
float4x4

Methods

InitState()

This method is called when traversal starts to initialize the traversal state.

Declaration
protected override void InitState()
Overrides
Fusee.Xene.Viserator<Fusee.Engine.Core.PickResult, Fusee.Engine.Core.ScenePicker.PickerState, Fusee.Engine.Core.Scene.SceneNode, Fusee.Engine.Core.Scene.SceneComponent>.InitState()

Pick(RenderContext, float2)

Returns a collection of objects that fall in the area of the pick position and that can be iterated over.

Declaration
public IEnumerable<PickResult> Pick(RenderContext rc, float2 pickPos)
Parameters
Type Name Description
RenderContext rc
float2 pickPos

The pick position.

Returns
Type Description
System.Collections.Generic.IEnumerable<PickResult>

PickMesh(Mesh)

Creates pick results from a given mesh if it is within the pick position.

Declaration
public void PickMesh(Mesh mesh)
Parameters
Type Name Description
Mesh mesh

The given Mesh.

RenderCanvasTransform(CanvasTransform)

Sets the state of the model matrices and UiRects.

Declaration
public void RenderCanvasTransform(CanvasTransform ctc)
Parameters
Type Name Description
CanvasTransform ctc

The CanvasTransformComponent.

RenderRectTransform(RectTransform)

If a RectTransformComponent is visited the model matrix and MinMaxRect get updated in the RendererState.

Declaration
public void RenderRectTransform(RectTransform rtc)
Parameters
Type Name Description
RectTransform rtc

The XFormComponent.

RenderTransform(Transform)

If a TransformComponent is visited the model matrix of the RenderContext and RendererState is updated. It additionally updates the view matrix of the RenderContext.

Declaration
public void RenderTransform(Transform transform)
Parameters
Type Name Description
Transform transform

The TransformComponent.

RenderXForm(XForm)

If a XFormComponent is visited the model matrix gets updated in the RendererState and set in the RenderContext.

Declaration
public void RenderXForm(XForm xfc)
Parameters
Type Name Description
XForm xfc

The XFormComponent.

RenderXFormText(XFormText)

If a XFormTextComponent is visited the model matrix gets updated in the RendererState and set in the RenderContext.

Declaration
public void RenderXFormText(XFormText xfc)
Parameters
Type Name Description
XFormText xfc

The XFormTextComponent.

Implements

System.Collections.Generic.IEnumerator<T>
System.Collections.IEnumerator
System.IDisposable
Generated by DocFX
GitHub Repo
Back to top