Class SceneComponent
Inheritance
System.Object
SceneComponent
Implements
System.IDisposable
Assembly: AxEngine.dll
Syntax
public class SceneComponent : ActorComponent, IDisposable
Constructors
|
Improve this Doc
View Source
SceneComponent()
Declaration
|
Improve this Doc
View Source
SceneComponent(SceneComponent[])
Declaration
public SceneComponent(params SceneComponent[] childs)
Parameters
Fields
|
Improve this Doc
View Source
TranslationMatrix
Declaration
public Matrix4 TranslationMatrix
Field Value
Type |
Description |
OpenToolkit.Mathematics.Matrix4 |
|
Properties
|
Improve this Doc
View Source
Actor
Declaration
public override Actor Actor { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Components
Declaration
public ICollection<SceneComponent> Components { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<SceneComponent> |
|
|
Improve this Doc
View Source
IsAbsoluteRotation
Declaration
public bool IsAbsoluteRotation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsAbsoluteScale
Declaration
public bool IsAbsoluteScale { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsAbsoluteTranslation
Declaration
public bool IsAbsoluteTranslation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Level
Declaration
public int Level { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LocalBounds
Declaration
public virtual Box3 LocalBounds { get; protected set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Box3 |
|
|
Improve this Doc
View Source
Parent
Declaration
public SceneComponent Parent { get; }
Property Value
|
Improve this Doc
View Source
ParentComponents
Declaration
public IReadOnlyList<SceneComponent> ParentComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<SceneComponent> |
|
|
Improve this Doc
View Source
RelativeRotation
Declaration
public Quaternion RelativeRotation { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Quaternion |
|
|
Improve this Doc
View Source
RelativeScale
Declaration
public Vector3 RelativeScale { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector3 |
|
|
Improve this Doc
View Source
RelativeTranslation
Declaration
public Vector3 RelativeTranslation { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector3 |
|
|
Improve this Doc
View Source
RootComponent
Declaration
public SceneComponent RootComponent { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Transform Transform { get; set; }
Property Value
|
Improve this Doc
View Source
Visible
Declaration
public bool Visible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
WorldBounds
Declaration
public virtual Box3 WorldBounds { get; protected set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Box3 |
|
Methods
|
Improve this Doc
View Source
AddComponent(SceneComponent)
Declaration
public void AddComponent(SceneComponent child)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual Transform CalculateTransform()
Returns
|
Improve this Doc
View Source
CanAttach(SceneComponent)
Declaration
public bool CanAttach(SceneComponent child)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Detach()
Declaration
public override void Detach()
Overrides
|
Improve this Doc
View Source
GetComponent<T>()
Declaration
public T GetComponent<T>()
where T : ActorComponent
Returns
Type Parameters
|
Improve this Doc
View Source
LocalToWorld()
Declaration
public Matrix4 LocalToWorld()
Returns
Type |
Description |
OpenToolkit.Mathematics.Matrix4 |
|
|
Improve this Doc
View Source
OnAttached()
Declaration
protected virtual void OnAttached()
|
Improve this Doc
View Source
OnDetached()
Declaration
protected virtual void OnDetached()
|
Improve this Doc
View Source
Declaration
public virtual void OnMouseClick(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
Declaration
public virtual void OnMouseDown(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
OnMouseMove(MouseMoveArgs)
Declaration
public virtual void OnMouseMove(MouseMoveArgs e)
Parameters
|
Improve this Doc
View Source
Declaration
public virtual void OnMouseUp(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
Declaration
public virtual void OnScreenMouseDown(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
OnScreenMouseMove(MouseMoveArgs)
Declaration
public virtual void OnScreenMouseMove(MouseMoveArgs e)
Parameters
|
Improve this Doc
View Source
Declaration
public virtual void OnScreenMouseUp(MouseButtonArgs e)
Parameters
|
Improve this Doc
View Source
OnScreenResize(ScreenResizeEventArgs)
Declaration
public virtual void OnScreenResize(ScreenResizeEventArgs e)
Parameters
|
Improve this Doc
View Source
RemoveComponent(SceneComponent)
Declaration
public void RemoveComponent(SceneComponent child)
Parameters
|
Improve this Doc
View Source
UpdateWorldBounds()
Declaration
public void UpdateWorldBounds()
|
Improve this Doc
View Source
Declaration
public void UpdateWorldBounds(Matrix4 localToWorld)
Parameters
Type |
Name |
Description |
OpenToolkit.Mathematics.Matrix4 |
localToWorld |
|
|
Improve this Doc
View Source
Visit<T>(Action<T>, Func<T, Boolean>)
Declaration
public override void Visit<T>(Action<T> action, Func<T, bool> visitChilds = null)
where T : SceneObject
Parameters
Type |
Name |
Description |
System.Action<T> |
action |
|
System.Func<T, System.Boolean> |
visitChilds |
|
Type Parameters
Overrides
Aximo.Engine.SceneObject.Visit<T>(System.Action<T>, System.Func<T, System.Boolean>)
Events
|
Improve this Doc
View Source
Click
Declaration
public event Action<MouseButtonArgs> Click
Event Type
|
Improve this Doc
View Source
MouseDown
Declaration
public event Action<MouseButtonArgs> MouseDown
Event Type
|
Improve this Doc
View Source
MouseMove
Declaration
public event Action<MouseMoveArgs> MouseMove
Event Type
|
Improve this Doc
View Source
MouseUp
Declaration
public event Action<MouseButtonArgs> MouseUp
Event Type
Implements
System.IDisposable